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