blog-theme/layouts/partials/header.html

10 lines
284 B
HTML

{{- $pagination := "" }}
{{- if .IsHome }}
{{ $pagination = .Paginate (where .Site.RegularPages "Params.hidden" "!=" true) }}
{{- end }}
{{ if and .IsHome (eq $pagination.PageNumber 1) }}
{{ .Site.Params.HomepageHeader | safeHTML }}
{{ else }}
<a href="/">&laquo; Home</a>
{{ end }}