add trailing slash to posts links

This commit is contained in:
2025-07-26 14:53:46 -04:00
parent 02b5b94779
commit bc8bcfe9b3
2 changed files with 2 additions and 2 deletions

View File

@@ -35,7 +35,7 @@
<ul> <ul>
<li> <li>
<h2><a href="/2024-01-15-test-post">Test Post: Getting Started with Elixir</a></h2> <h2><a href="/2024-01-15-test-post/">Test Post: Getting Started with Elixir</a></h2>
<time datetime="2024-01-15T00:00:00Z"></time> <time datetime="2024-01-15T00:00:00Z"></time>

View File

@@ -14,7 +14,7 @@ defmodule MonoTab.IndexLayout do
<ul> <ul>
<%= for post <- @posts do %> <%= for post <- @posts do %>
<li> <li>
<h2><a href={post.permalink}>{post.title}</a></h2> <h2><a href={"#{post.permalink}/"}>{post.title}</a></h2>
<%= if post[:date] do %> <%= if post[:date] do %>
<time datetime={post[:date]}>{format_date(post[:date])}</time> <time datetime={post[:date]}>{format_date(post[:date])}</time>
<% end %> <% end %>