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

github.com/vickylaixy/hugo-theme-introduction.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHanzei <hanzei@mailbox.org>2018-07-22 08:03:30 +0300
committerHanzei <hanzei@mailbox.org>2018-07-22 08:03:30 +0300
commitb2bfdb95cf25dc6f8eff96b490e0e4db91eb26bb (patch)
tree4dbf4ab53c932a72c04dba63b29ed5285ec098bd /layouts
parent68d795ed4d8dcbe160409a48f80382fbcbbaa613 (diff)
Fix np
Diffstat (limited to 'layouts')
-rw-r--r--layouts/blog/single.html4
1 files changed, 3 insertions, 1 deletions
diff --git a/layouts/blog/single.html b/layouts/blog/single.html
index ef3c794..ce801e2 100644
--- a/layouts/blog/single.html
+++ b/layouts/blog/single.html
@@ -1,5 +1,7 @@
{{ define "title" }}
- <h1 class="bold-title is-1">{{ (.Site.GetPage "section" "/blog").Title }}</h1>
+{{ with .Site.GetPage "section" "/blog" }}
+ <h1 class="bold-title is-1">{{ .Title }}</h1>
+{{ end }}
{{ end }}
{{ define "main" }}