Files
paige-hugo/layouts/partials/paige-title.html
2022-12-14 00:46:33 -08:00

18 lines
418 B
HTML

{{ $title := .Title }}
{{ $class := "display-5" }}
{{ if .IsHome }}
{{ $class = "display-1" }}
{{ if not $title }}
{{ $title = .Site.Title }}
{{ end }}
{{ end }}
{{ if and $title (not .Params.paigeshowfullpages) }}
<h1 class="{{ $class }} fw-bold text-center">
{{ with .Params.link }}
<a href="{{ . }}">{{ $title | markdownify }}</a>
{{ else }}
{{ $title | markdownify }}
{{ end }}
</h1>
{{ end }}