This repository has been archived on 2023-02-05. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
sakura-hugo-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 }}