mirror of
https://github.com/Noettore/cocoa-eh-hugo-theme.git
synced 2025-10-15 11:46:41 +02:00
Add site title everywhere
This commit is contained in:
@@ -3,10 +3,10 @@
|
|||||||
<base href="{{ .Site.BaseURL }}">
|
<base href="{{ .Site.BaseURL }}">
|
||||||
<title>
|
<title>
|
||||||
{{ $url := replace .Permalink ( printf "%s" .Site.BaseURL) "" }}
|
{{ $url := replace .Permalink ( printf "%s" .Site.BaseURL) "" }}
|
||||||
{{ if eq $url "/" }}
|
{{ if eq $url "" }}
|
||||||
{{ .Site.Title }}
|
{{ .Site.Title }}
|
||||||
{{ else }}
|
{{ else }}
|
||||||
{{ if .Params.heading }} {{ .Params.heading }} {{ else }} {{ .Title }} {{ end }}
|
{{ if .Params.heading }} {{ .Params.heading }} {{ else }} {{ .Site.Title }} - {{ .Title }} {{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</title>
|
</title>
|
||||||
<link rel="canonical" href="{{ .Permalink }}">
|
<link rel="canonical" href="{{ .Permalink }}">
|
||||||
|
Reference in New Issue
Block a user