diff options
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/index.gmi | 6 | ||||
-rw-r--r-- | layouts/index.html | 2 |
2 files changed, 7 insertions, 1 deletions
diff --git a/layouts/index.gmi b/layouts/index.gmi index a15154c..05250fd 100644 --- a/layouts/index.gmi +++ b/layouts/index.gmi @@ -11,7 +11,9 @@ => {{ .URL }} {{ emojify ":link:" | safeHTML }} {{ .Name | safeHTML -}} {{ end -}} -{{ end }} +{{ end -}} + +{{ if .Site.RegularPages }} ## {{ i18n "journalEntries" -}} @@ -20,4 +22,6 @@ {{ partial "metadata.gmi" . -}} {{ end -}} +{{ end -}} + {{ end }}
\ No newline at end of file diff --git a/layouts/index.html b/layouts/index.html index f2e757c..6f231df 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -12,9 +12,11 @@ </ul> </nav> {{ end -}} + {{ if .Site.RegularPages -}} <h2>{{ i18n "journalEntries" }}</h2> {{ range (where .Site.RegularPages.ByTitle "Section" "entry").ByPublishDate.Reverse -}} {{ partial "metadata.html" . }} {{ end -}} + {{ end -}} </main> {{- end }}
\ No newline at end of file |