Skip to content

Commit

Permalink
feat: add new param displayFooter
Browse files Browse the repository at this point in the history
  • Loading branch information
reuixiy committed Aug 8, 2020
1 parent a7c47aa commit 2d17152
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
2 changes: 2 additions & 0 deletions config-examples/en/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -1202,6 +1202,8 @@ uglyURLs = false

enableFooter = true

displayFooter = true

displayFooterInHome = true

displayCopyrightSymbol = true
Expand Down
3 changes: 3 additions & 0 deletions config-examples/zh-cn/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -1166,6 +1166,9 @@ uglyURLs = false
# 是否开启
enableFooter = true

# 是否显示
displayFooter = true

# 是否在首页显示
displayFooterInHome = true

Expand Down
2 changes: 1 addition & 1 deletion layouts/partials/footer.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{ if or (and .IsHome .Site.Params.displayFooterInHome) (and (not .IsHome) .Site.Params.enableFooter) }}
{{ if or (and .IsHome .Site.Params.displayFooterInHome) (and (not .IsHome) (.Site.Params.displayFooter | default .Site.Params.enableFooter)) }}
<footer id="footer" class="footer">
<div class="footer-inner">
<div class="site-info">
Expand Down

0 comments on commit 2d17152

Please sign in to comment.