all repos — site @ 5340a0d17302871ca1d088964771fef881c8983b

source for my site, found at icyphox.sh

templates: swap post links to /
Anirudh Oppiliappan x@icyphox.sh
Sun, 19 Jan 2025 22:03:38 +0200
commit

5340a0d17302871ca1d088964771fef881c8983b

parent

ee0e6b2c116b513dc566a4a57a50e0a48407ff98

3 files changed, 4 insertions(+), 4 deletions(-)

jump to
M pages/_redirectspages/_redirects

@@ -1,3 +1,3 @@

+/blog/ /blog/ 200 /blog/* /:splat -!/blog/ /blog/ 200
M templates/blog.htmltemplates/blog.html

@@ -23,7 +23,7 @@ {{ $posts := .Extra }}

{{ range $posts }} <li> <div class="post"> - <a href=/blog/{{ .Meta.slug }}>{{ .Meta.title }}</a> + <a href=/{{ .Meta.slug }}>{{ .Meta.title }}</a> {{ if .Meta.draft }} (<span class="draft">draft</span>) {{ end }}
M templates/index.htmltemplates/index.html

@@ -26,7 +26,7 @@ {{ $posts := .Extra.blog }}

{{ range slice $posts 0 3 }} <li> <div class="post"> - <a href=/blog/{{ .Meta.slug }}>{{ .Meta.title }}</a> + <a href=/{{ .Meta.slug }}>{{ .Meta.title }}</a> {{ if .Meta.draft }} (<span class="draft">draft</span>) {{ end }}

@@ -38,7 +38,7 @@ <div class="index-date">{{ $date.Format "02 Jan, 2006" }}</div>

</li> {{ end }} </ul> - <a style="border-bottom: unset;" href="/blog"><span>more &RightArrow;</span></a> + <a style="border-bottom: unset;" href="/blog/"><span>more &RightArrow;</span></a> </section> </article> </main>