Remove default home page title
parent
56f26a6317
commit
aa7f962514
@ -1,17 +1,13 @@
|
|||||||
{{ $title := .Title }}
|
|
||||||
{{ $class := "display-5" }}
|
{{ $class := "display-5" }}
|
||||||
{{ if .IsHome }}
|
{{ if .IsHome }}
|
||||||
{{ $class = "display-1" }}
|
{{ $class = "display-1" }}
|
||||||
{{ if not $title }}
|
|
||||||
{{ $title = .Site.Title }}
|
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ if .Title }}
|
||||||
{{ if $title }}
|
|
||||||
<h1 class="{{ $class }} fw-bold text-center">
|
<h1 class="{{ $class }} fw-bold text-center">
|
||||||
{{ with .Params.link }}
|
{{ with .Params.link }}
|
||||||
<a href="{{ . }}">{{ $title | markdownify }}</a>
|
<a href="{{ . }}">{{ .Title | markdownify }}</a>
|
||||||
{{ else }}
|
{{ else }}
|
||||||
{{ $title | markdownify }}
|
{{ .Title | markdownify }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</h1>
|
</h1>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
Loading…
Reference in New Issue