Forráskód Böngészése

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`.
Julian Pawlowski 6 éve
szülő
commit
835d3d76c0

+ 1 - 1
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]

+ 2 - 0
layouts/project/single.html

@@ -13,6 +13,8 @@
     {{ partial "tags.html" . }}
     {{ partial "page_author.html" . }}
 
+    {{ partial "comments" . }}
+
     {{ $page := . }}
     {{ $project := .File.ContentBaseName }}
 

+ 2 - 0
layouts/publication/single.html

@@ -53,6 +53,8 @@
     {{ partial "tags.html" . }}
     {{ partial "page_author.html" . }}
 
+    {{ partial "comments" . }}
+
   </div>
 </div>
 

+ 2 - 0
layouts/talk/single.html

@@ -66,6 +66,8 @@
     {{ partial "tags.html" . }}
     {{ partial "page_author.html" . }}
 
+    {{ partial "comments" . }}
+
   </div>
 </div>