site.lyte.dev/layouts/index.html
Daniel Flanagan b4d021b22a Combine tips with blog
Still should 301 the old URLs or something
2024-03-26 07:59:50 -05:00

19 lines
375 B
HTML

{{ define "main" }}
{{ .Content }}
<details open>
<summary>
<h2 id="latest-posts">
Latest <a href="/blog">Blog</a> Posts (<a target="_blank" href="/blog/index.xml">RSS</a>)
</h2>
</summary>
{{ range (where .Site.RegularPages "Section" "blog") }}
{{ .Render "li" }}
{{ else }}
<p>Looks like there's nothing here!... yet!</p>
{{ end }}
</details>
{{ end }}