diff --git a/layouts/_default/section.html b/layouts/_default/section.html index a2fef0b..1955337 100644 --- a/layouts/_default/section.html +++ b/layouts/_default/section.html @@ -10,6 +10,7 @@ post-container"> {{ .Content }} + {{ partial "comments.html" . }} diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 274ca20..386cf9a 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -76,6 +76,7 @@ {{ end }} + {{ partial "comments.html" . }} diff --git a/layouts/partials/comments.html b/layouts/partials/comments.html new file mode 100644 index 0000000..a3760f3 --- /dev/null +++ b/layouts/partials/comments.html @@ -0,0 +1,19 @@ +{{ if .Site.Params.disqus_proxy }} +
+ + +{{ else if .Site.DisqusShortname }} + +{{ template "_internal/disqus.html" . }} +{{ else if .Site.Params.Commento }} + +{{ end }} diff --git a/layouts/partials/head.html b/layouts/partials/head.html index cea0c9a..56184a2 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -91,6 +91,11 @@ + {{ with .Site.Params.Commento }} + + + {{ end }} + {{ range .Site.Params.custom_js }}