Files
paige-hugo/layouts/partials/paige-title.html
2022-12-16 20:11:22 -08:00

14 lines
301 B
HTML

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