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

github.com/de-souza/hugo-flex.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/partials/title.html')
-rw-r--r--layouts/partials/title.html7
1 files changed, 7 insertions, 0 deletions
diff --git a/layouts/partials/title.html b/layouts/partials/title.html
new file mode 100644
index 0000000..e0bc325
--- /dev/null
+++ b/layouts/partials/title.html
@@ -0,0 +1,7 @@
+<title>
+ {{- if eq .Title site.Title -}}
+ {{ site.Title }}
+ {{- else -}}
+ {{ with .Title }}{{ . }} | {{ end }}{{ site.Title }}
+ {{- end -}}
+</title>