add trailing slash to posts links
This commit is contained in:
@@ -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>
|
||||||
|
|
||||||
|
@@ -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 %>
|
||||||
|
Reference in New Issue
Block a user