site.lyte.dev/layouts/index.html
2022-11-22 14:58:48 -06:00

16 lines
303 B
HTML

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