You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
paige-hugo/layouts/partials/paige_title_content.html

18 lines
390 B
HTML

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