From 835d3d76c087e0b1f6bd5708f1850e5c8e46ee5f Mon Sep 17 00:00:00 2001 From: Julian Pawlowski Date: Sat, 27 Jul 2019 22:03:50 +0200 Subject: [PATCH] feat: support commenting for project, publication, and talk pages (#1240) To use, set `commentable = {page = true, post = true, docs = true, project = true, publication = true, talk = true}` under the Comments section in `params.toml`. --- exampleSite/config/_default/params.toml | 2 +- layouts/project/single.html | 2 ++ layouts/publication/single.html | 2 ++ layouts/talk/single.html | 2 ++ 4 files changed, 7 insertions(+), 1 deletion(-) diff --git a/exampleSite/config/_default/params.toml b/exampleSite/config/_default/params.toml index dff89c14..167729e3 100644 --- a/exampleSite/config/_default/params.toml +++ b/exampleSite/config/_default/params.toml @@ -159,7 +159,7 @@ sharing = true engine = 0 # Which page types are commentable? - commentable = {page = true, post = true, docs = true} + commentable = {page = true, post = true, docs = true, project = true, publication = true, talk = true} # Configuration of Disqus. [comments.disqus] diff --git a/layouts/project/single.html b/layouts/project/single.html index c74e9e9a..a06de1d7 100644 --- a/layouts/project/single.html +++ b/layouts/project/single.html @@ -13,6 +13,8 @@ {{ partial "tags.html" . }} {{ partial "page_author.html" . }} + {{ partial "comments" . }} + {{ $page := . }} {{ $project := .File.ContentBaseName }} diff --git a/layouts/publication/single.html b/layouts/publication/single.html index b1550516..14fe724f 100644 --- a/layouts/publication/single.html +++ b/layouts/publication/single.html @@ -53,6 +53,8 @@ {{ partial "tags.html" . }} {{ partial "page_author.html" . }} + {{ partial "comments" . }} + diff --git a/layouts/talk/single.html b/layouts/talk/single.html index fccb9861..622975df 100644 --- a/layouts/talk/single.html +++ b/layouts/talk/single.html @@ -66,6 +66,8 @@ {{ partial "tags.html" . }} {{ partial "page_author.html" . }} + {{ partial "comments" . }} +