small fixes

This commit is contained in:
teldra 2022-04-04 12:50:21 +02:00
parent afe0a15b58
commit 7bde25e5d9
2 changed files with 6 additions and 4 deletions

View File

@ -14,7 +14,7 @@
{{- define "main" -}}
{{ $s := .Site.Params }}
{{- $paginator := slice -}}
{{- $paginator = .Paginate .Data.Pages.ByDate.Reverse -}}
{{- $paginator = .Paginate .Data.Pages.ByDate.Reverse -}}
{{ if eq $paginator.PageNumber 1 }}
{{ if ne .Content "" }}
<article>

View File

@ -3,7 +3,9 @@ Orga
{{ end }}
{{ define "main" }}
{{ range .Pages }}
<a href="{{ .Permalink }}">{{ .Name }}</a><br>
{{ end }}
<article>
{{ range .Pages }}
<a href="{{ .Permalink }}">{{ .Name }}</a><br>
{{ end }}
</article>
{{ end }}