From 39e6f6142da3d755f7e553cdcf9fa462561b1934 Mon Sep 17 00:00:00 2001 From: George Cushen Date: Tue, 8 Feb 2022 21:22:17 +0000 Subject: [PATCH] refactor: site.params.comments -> site.Params.features.comment BREAKING CHANGE See #2601 --- wowchemy/layouts/partials/comments.html | 2 +- wowchemy/layouts/partials/comments/commento.html | 2 +- wowchemy/layouts/partials/comments/disqus.html | 4 ++-- wowchemy/layouts/partials/page_metadata.html | 4 ++-- wowchemy/layouts/partials/site_js.html | 6 +++--- 5 files changed, 9 insertions(+), 9 deletions(-) diff --git a/wowchemy/layouts/partials/comments.html b/wowchemy/layouts/partials/comments.html index 84ed8fd2..6118c163 100644 --- a/wowchemy/layouts/partials/comments.html +++ b/wowchemy/layouts/partials/comments.html @@ -1,4 +1,4 @@ -{{ $provider := trim (site.Params.comments.provider | lower) " " }} +{{ $provider := trim (site.Params.features.comment.provider | lower) " " }} {{ if $provider }} {{ $provider_tpl := printf "partials/comments/%s.html" $provider }} diff --git a/wowchemy/layouts/partials/comments/commento.html b/wowchemy/layouts/partials/comments/commento.html index cacf3a54..1c9e2d06 100644 --- a/wowchemy/layouts/partials/comments/commento.html +++ b/wowchemy/layouts/partials/comments/commento.html @@ -1,3 +1,3 @@
-{{ $url := (printf "%s/js/commento.js" (site.Params.comments.commento.url | default "https://cdn.commento.io")) }} +{{ $url := (printf "%s/js/commento.js" (site.Params.features.comment.commento.url | default "https://cdn.commento.io")) }} diff --git a/wowchemy/layouts/partials/comments/disqus.html b/wowchemy/layouts/partials/comments/disqus.html index cea5211b..2fe6f1f3 100644 --- a/wowchemy/layouts/partials/comments/disqus.html +++ b/wowchemy/layouts/partials/comments/disqus.html @@ -1,4 +1,4 @@ -{{ if site.Params.comments.disqus.shortname }} +{{ if site.Params.features.comment.disqus.shortname }}
+ {{ $comments_provider := trim (site.Params.features.comment.provider | lower) " " }} + {{ if eq $comments_provider "disqus" | and (site.Params.features.comment.disqus.show_count | default true) }} + {{end}} {{ $js_search_params := dict }}