aboutsummaryrefslogtreecommitdiff
path: root/layouts/partials
diff options
context:
space:
mode:
authorolOwOlo <26087907+olOwOlo@users.noreply.github.com>2017-09-16 17:49:53 +0800
committerolOwOlo <26087907+olOwOlo@users.noreply.github.com>2017-09-16 17:49:53 +0800
commitfba1d6b9c5bc72745368f63c67c027dd0070cb6b (patch)
tree621c698665bf72c0a841fb8f87f320a49c702d85 /layouts/partials
parent2b282fc57ccab11ad41c857450f4e87e42e47f38 (diff)
feat: config logo title
Diffstat (limited to 'layouts/partials')
-rw-r--r--layouts/partials/header.html8
-rw-r--r--layouts/partials/slideout.html8
2 files changed, 14 insertions, 2 deletions
diff --git a/layouts/partials/header.html b/layouts/partials/header.html
index d81055e..57cf431 100644
--- a/layouts/partials/header.html
+++ b/layouts/partials/header.html
@@ -1,5 +1,11 @@
<div class="logo-wrapper">
- <a href="{{ "/" | relURL }}" class="logo">{{ .Site.Title }}</a>
+ <a href="{{ "/" | relURL }}" class="logo">
+ {{- if .Site.Params.logoTitle -}}
+ {{ .Site.Params.logoTitle }}
+ {{- else -}}
+ {{ .Site.Title }}
+ {{- end -}}
+ </a>
</div>
<nav class="site-navbar">
diff --git a/layouts/partials/slideout.html b/layouts/partials/slideout.html
index 21de3cb..e8cebd3 100644
--- a/layouts/partials/slideout.html
+++ b/layouts/partials/slideout.html
@@ -1,6 +1,12 @@
<div id="mobile-navbar" class="mobile-navbar">
<div class="mobile-header-logo">
- <a href="{{ "/" | relURL }}" class="logo">{{ .Site.Title }}</a>
+ <a href="{{ "/" | relURL }}" class="logo">
+ {{- if .Site.Params.logoTitle -}}
+ {{ .Site.Params.logoTitle }}
+ {{- else -}}
+ {{ .Site.Title }}
+ {{- end -}}
+ </a>
</div>
<div class="mobile-navbar-icon">
<span></span>