aboutsummaryrefslogtreecommitdiff
path: root/themes/default/layouts/partials/site-title.html
diff options
context:
space:
mode:
Diffstat (limited to 'themes/default/layouts/partials/site-title.html')
-rw-r--r--themes/default/layouts/partials/site-title.html15
1 files changed, 15 insertions, 0 deletions
diff --git a/themes/default/layouts/partials/site-title.html b/themes/default/layouts/partials/site-title.html
new file mode 100644
index 0000000..ed09ec3
--- /dev/null
+++ b/themes/default/layouts/partials/site-title.html
@@ -0,0 +1,15 @@
+{{ $author := index .Site.Data.authors ((or .Params.author .Site.Author.default.user) | default "default") }}
+
+{{- if not (eq .Title $.Site.Title) -}}
+ {{- with or .Title .Summary -}}
+ {{ . }} —
+ {{ end }}
+{{- end -}}
+
+{{- with $.Site.Title -}}
+ {{ if $.IsHome -}}
+ {{ . }}
+ {{- else -}}
+ {{ $author.blogtitle }}
+ {{- end -}}
+{{- end -}}