From 67c7103921d74a8e2b4788e28f043524236526c8 Mon Sep 17 00:00:00 2001 From: key-amb Date: Sat, 7 Jan 2017 14:52:10 +0900 Subject: Fix for Hugo v0.18 / .Site.Params "mainMenu" is not accessible now See #18 --- layouts/index.html | 6 +++--- layouts/partials/header.html | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/layouts/index.html b/layouts/index.html index f85fbd3..d02cee9 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -7,7 +7,7 @@

{{ .Site.Title }}

-

{{ if isset .Site.Params "description" }}{{ .Site.Params.description }}{{ else }}You can customize this text by params "description" in your config.toml.{{ end }}

+

{{ if .Site.Params.description }}{{ .Site.Params.description }}{{ else }}You can customize this text by params "description" in your config.toml.{{ end }}

@@ -41,7 +41,7 @@ -{{ if isset .Site.Params "withSitePosts" }} +{{ if .Site.Params.withSitePosts }}
@@ -51,4 +51,4 @@ -{{ partial "footer.html" . }} \ No newline at end of file +{{ partial "footer.html" . }} diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 058fe09..6b3e609 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -9,7 +9,7 @@ {{ .Title }}{{ if eq $isHomePage false }} - {{ .Site.Title }}{{ end }} - + @@ -33,14 +33,14 @@