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:
Geo 2022-03-24 15:38:01 +00:00
commit 5c26e66f6d
2 changed files with 2 additions and 1 deletions

View file

@ -19,6 +19,7 @@ cascade:
commentable: true
show_related: true
show_breadcrumb: true
share: true
header:
navbar:
enable: false

View file

@ -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 }}