update example site with trailing-url-less urls

This commit is contained in:
Gered 2023-07-10 14:17:18 -04:00
parent 0b8423a64f
commit 31fd5d444b
4 changed files with 7 additions and 7 deletions

View file

@ -2,10 +2,10 @@ pages:
- file_path: about.md - file_path: about.md
title: About This Site title: About This Site
url: /about/ url: /about
- file_path: joke.md - file_path: joke.md
title: Joke title: Joke
url: /joke/ url: /joke
alternate_urls: alternate_urls:
- /trying-to-be-funny/ - /trying-to-be-funny

View file

@ -13,7 +13,7 @@
<a href="{{ post.url }}">{{ post.title }}</a> <a href="{{ post.url }}">{{ post.title }}</a>
<span class="tags"> <span class="tags">
{%- for tag in post.tags -%} {%- for tag in post.tags -%}
<span><a href="/tag/{{ tag }}/">{{ tag }}</a></span> <span><a href="/tag/{{ tag }}">{{ tag }}</a></span>
{%- endfor -%} {%- endfor -%}
</span> </span>
</td> </td>

View file

@ -17,8 +17,8 @@
<h2>My Site</h2> <h2>My Site</h2>
<nav> <nav>
<a href="/">Home</a> | <a href="/">Home</a> |
<a href="/archive/">Archive</a> | <a href="/archive">Archive</a> |
<a href="/about/">About</a> <a href="/about">About</a>
</nav> </nav>
</header> </header>
<main> <main>

View file

@ -5,7 +5,7 @@
{{ post.date | date(format="%B %e, %Y") }} &mdash; {{ post.date | date(format="%B %e, %Y") }} &mdash;
<span class="tags"> <span class="tags">
{%- for tag in post.tags -%} {%- for tag in post.tags -%}
<span><a href="/tag/{{ tag }}/">{{ tag }}</a></span> <span><a href="/tag/{{ tag }}">{{ tag }}</a></span>
{%- endfor -%} {%- endfor -%}
</span> </span>
</div> </div>