my website at https://anirudh.fi
4
fork

Configure Feed

Select the types of activity you want to include in your feed.

templates: swap post links to /

+4 -4
+1 -1
pages/_redirects
··· 1 + /blog/ /blog/ 200 1 2 /blog/* /:splat 2 - !/blog/ /blog/ 200 3 3
+1 -1
templates/blog.html
··· 23 23 {{ range $posts }} 24 24 <li> 25 25 <div class="post"> 26 - <a href=/blog/{{ .Meta.slug }}>{{ .Meta.title }}</a> 26 + <a href=/{{ .Meta.slug }}>{{ .Meta.title }}</a> 27 27 {{ if .Meta.draft }} 28 28 (<span class="draft">draft</span>) 29 29 {{ end }}
+2 -2
templates/index.html
··· 26 26 {{ range slice $posts 0 3 }} 27 27 <li> 28 28 <div class="post"> 29 - <a href=/blog/{{ .Meta.slug }}>{{ .Meta.title }}</a> 29 + <a href=/{{ .Meta.slug }}>{{ .Meta.title }}</a> 30 30 {{ if .Meta.draft }} 31 31 (<span class="draft">draft</span>) 32 32 {{ end }} ··· 38 38 </li> 39 39 {{ end }} 40 40 </ul> 41 - <a style="border-bottom: unset;" href="/blog"><span>more &RightArrow;</span></a> 41 + <a style="border-bottom: unset;" href="/blog/"><span>more &RightArrow;</span></a> 42 42 </section> 43 43 </article> 44 44 </main>