diff --git a/config-examples/en-us/config.toml b/config-examples/en-us/config.toml index 2d0da0df..bd6e36de 100644 --- a/config-examples/en-us/config.toml +++ b/config-examples/en-us/config.toml @@ -1179,9 +1179,8 @@ uglyURLs = false # Footer enableFooter = true - # Note: homepage layout `poetry`, - # `footage`, and 404 page have - # no footer + + displayFooterInHome = true displayCopyrightSymbol = true diff --git a/config-examples/zh-cn/config.toml b/config-examples/zh-cn/config.toml index e50e4d5a..48d69652 100644 --- a/config-examples/zh-cn/config.toml +++ b/config-examples/zh-cn/config.toml @@ -1146,8 +1146,9 @@ uglyURLs = false # 是否开启 enableFooter = true - # 说明:「诗意人生」和「视频片段」首页布局 - # 的首页没有页脚 + + # 是否在首页显示 + displayFooterInHome = true # 是否显示版权符号(©) displayCopyrightSymbol = true diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index 547ac16f..cedc82b5 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -1,5 +1,5 @@ {{- $Deliver := . -}} -{{ if and .Site.Params.enableFooter (not (and .IsHome (in (slice "poetry" "footage") .Site.Params.homeLayout))) }} +{{ if or (and .IsHome .Site.Params.displayFooterInHome) (and (not .IsHome) .Site.Params.enableFooter) }} -{{ end }} \ No newline at end of file +{{ end }}