Skip to content

Commit

Permalink
Fix See all posts button link
Browse files Browse the repository at this point in the history
Fix for 404 errors in see all posts if the default URL is not root. Add a baseURL variable to the link in the button.
  • Loading branch information
Rayjun0525 committed May 5, 2023
1 parent 3ac7e5c commit 452f899
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion layouts/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ <h3 class="posts-item-note" aria-label="Recent Posts">Recent Posts</h3>
{{ end }}
{{ if gt (len $posts) 5 }}
<p>
<a href="{{ .Site.Home.Permalink }}/posts/">See all posts</a>
<a href="{{ .Site.Home.Permalink }}posts/">See all posts</a>
</p>
{{ end }}
</main>
Expand Down

0 comments on commit 452f899

Please sign in to comment.