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

github.com/wd/hugo-fabric.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2017-04-16 14:06:43 +0300
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2017-04-16 14:06:43 +0300
commit6416d231bb8425a24f62d80c836a7f3bab99bb91 (patch)
treec924837bbb4eee1b5e59b960c3f467f9ad92cca6 /layouts/partials/header.html
parentc0cba50f7f23301edf38b27cedd8902392333f08 (diff)
Add some conditionals
To get a demo running on the themes site without all the params set.
Diffstat (limited to 'layouts/partials/header.html')
-rw-r--r--layouts/partials/header.html4
1 files changed, 3 insertions, 1 deletions
diff --git a/layouts/partials/header.html b/layouts/partials/header.html
index 78bf8a4..88094db 100644
--- a/layouts/partials/header.html
+++ b/layouts/partials/header.html
@@ -8,6 +8,8 @@
<span class="subtitle">{{ if $theme.subtitle }}{{ $theme.subtitle }}{{ end }}</span>
<br>
-{{ partial "social.html" (dict "theme" $theme) }}
+{{ with $theme }}
+{{ partial "social.html" (dict "theme" .) }}
+{{ end }}
{{ partial "navigation.html" . }}