From eaec70ed4b7a268feb4a616c9a96ece640aa305e Mon Sep 17 00:00:00 2001 From: Dmitry Kolosov Date: Tue, 21 Jan 2020 21:57:57 +0300 Subject: [PATCH] Fix #8: add disqus support --- README.md | 1 + layouts/_default/single.html | 3 +++ 2 files changed, 4 insertions(+) diff --git a/README.md b/README.md index 3847c22..31ea7b2 100644 --- a/README.md +++ b/README.md @@ -31,6 +31,7 @@ title: "Anubis" author: "" theme: "anubis" paginate: 10 +disqusShortname: yourdiscussshortname menu: main: diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 020ba52..65257c3 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -20,5 +20,8 @@ {{ .Content }} + {{ if .Site.DisqusShortname }} + {{ template "_internal/disqus.html" . }} + {{ end }} {{ end }} \ No newline at end of file