mirror of
https://github.com/tiennm99/HugoBlox-kit.git
synced 2026-10-14 04:15:40 +00:00
feat: migrate social sharing config to Hugo Cascade
Just add `share: false` to page front matter or via Hugo Cascades to disable the page sharer at the bottom of pages. See https://discord.com/channels/722225264733716590/742863504515793149/956507676806877235 See #2601
This commit is contained in:
1 parent
15e9e631f8
commit
5c26e66f6d
2 files changed
+2
-1
No files matched your search
@@ -19,6 +19,7 @@ cascade:
|
||||
commentable: true
|
||||
show_related: true
|
||||
show_breadcrumb: true
|
||||
share: true
|
||||
header:
|
||||
navbar:
|
||||
enable: false
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{{ if and site.Params.sharing (ne .Params.share false) }}
|
||||
{{ if ne .Params.share false }}
|
||||
<div class="share-box">
|
||||
<ul class="share">
|
||||
{{ range where site.Data.page_sharer.buttons "enable" true }}
|
||||
|
||||
Reference in new issue
Block a user