Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mattstratton/castanet.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/partials/head.html')
-rw-r--r--layouts/partials/head.html10
1 files changed, 5 insertions, 5 deletions
diff --git a/layouts/partials/head.html b/layouts/partials/head.html
index 3d5bd30..69a5054 100644
--- a/layouts/partials/head.html
+++ b/layouts/partials/head.html
@@ -1,12 +1,12 @@
{{ partial "meta.html" . }}
{{ partial "seo.html" . }}
<title>
-{{ $url := replace .Permalink ( printf "%s" .Site.BaseURL) "" }}
-{{ if eq $url "/" }}
+{{- $url := replace .Permalink ( printf "%s" .Site.BaseURL) "" -}}
+{{- if eq $url "/" -}}
{{ .Site.Title }}
-{{ else }}
- {{ if .Params.Heading }} {{ .Params.Heading }} {{ else }} {{ .Title }} {{ end }}
-{{ end }}
+{{- else -}}
+ {{ if .Params.Heading }}{{ .Params.Heading }}{{ else }}{{ .Title }}{{ end }}
+{{- end -}}
</title>
<link rel="canonical" href="{{ .Permalink }}">
{{ partial "head_includes.html" . }}