Index "/" renders contents of blog.

This commit is contained in:
jpk 2023-03-27 08:40:16 +02:00
parent 4f4faa8176
commit a500c114e3
1 changed files with 2 additions and 12 deletions

View File

@ -1,13 +1,3 @@
{{ define "main" }}
<div class="boxed">
<p>
<ul>
{{ with .Site.GetPage "/blog" }}
{{ range .Pages.ByPublishDate.Reverse }}
<li>[ {{ .PublishDate | time.Format "2006-01-01" }} ] <a href="{{ .RelPermalink }}">{{ .Title }}</a></li>
{{ end }}
{{ end }}
</ul>
</p>
</div>
{{ with .Site.GetPage "/blog" }}
{{ .Render }}
{{ end }}