mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2025-01-19 03:10:24 +00:00
theme: avoid duplicate title on home page if no file is provided #580
This commit is contained in:
parent
de625fe57b
commit
2835ef004a
1 changed files with 1 additions and 1 deletions
|
@ -1,4 +1,4 @@
|
||||||
{{- if or .IsHome (not .Title) }}
|
{{- if not .Title }}
|
||||||
{{- $title := .Site.Title }}
|
{{- $title := .Site.Title }}
|
||||||
{{- partial "heading-pre.html" . }}<h1 id="{{ $title | anchorize }}">{{ $title }}</h1>{{ partial "heading-post.html" . }}
|
{{- partial "heading-pre.html" . }}<h1 id="{{ $title | anchorize }}">{{ $title }}</h1>{{ partial "heading-post.html" . }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
Loading…
Reference in a new issue