From 5c26e66f6d4179588b38ec88564f10247ba73a95 Mon Sep 17 00:00:00 2001 From: Geo Date: Thu, 24 Mar 2022 15:38:01 +0000 Subject: [PATCH] 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 --- starters/blog/config/_default/config.yaml | 1 + wowchemy/layouts/partials/components/page_sharer.html | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/starters/blog/config/_default/config.yaml b/starters/blog/config/_default/config.yaml index d0f7dc21..ea4867ac 100644 --- a/starters/blog/config/_default/config.yaml +++ b/starters/blog/config/_default/config.yaml @@ -19,6 +19,7 @@ cascade: commentable: true show_related: true show_breadcrumb: true + share: true header: navbar: enable: false diff --git a/wowchemy/layouts/partials/components/page_sharer.html b/wowchemy/layouts/partials/components/page_sharer.html index c73fc27a..c0359491 100644 --- a/wowchemy/layouts/partials/components/page_sharer.html +++ b/wowchemy/layouts/partials/components/page_sharer.html @@ -1,4 +1,4 @@ -{{ if and site.Params.sharing (ne .Params.share false) }} +{{ if ne .Params.share false }}