Remove default home page title

This commit is contained in:
Will Faught
2022-12-16 20:11:22 -08:00
parent 56f26a6317
commit aa7f962514
2 changed files with 4 additions and 7 deletions

View File

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