From b70909edbd3a7ee7026e2cbf14f11e8320426139 Mon Sep 17 00:00:00 2001 From: Vincent Tam Date: Wed, 31 Jul 2019 22:37:47 +0200 Subject: Added Isso to config.toml --- exampleSite/config.toml | 1 + layouts/_default/single.html | 11 ++++------- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/exampleSite/config.toml b/exampleSite/config.toml index d6a9c4e..8f23c0e 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -8,6 +8,7 @@ theme = "huginn" avatar = "img/avatar.png" sitesubtitle = "Blog subtitle" footer = "Powered by [Hugo](https://gohugo.io), theme [Huginn](https://framagit.org/staticman-gitlab-pages/hugo-theme-huginn)" + # isso_server = "" # URL of Isso server # [Params.staticman] # endpoint = "" # URL of your own API deployment (without trailing slash), default: "https://staticman-frama.herokuapp.com" diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 588db47..a208692 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -72,15 +72,12 @@ {{ partial "staticman-comments.html" . }} {{ end }} - {{ if .Site.Params.comments }} - + {{ with .Site.Params.isso_server }} +
{{ end }} - {{ end }} - {{- define "scripts" -}} +{{ end }} +{{- define "scripts" -}} {{- with .Resources.Match "images/lightbox/*.*" -}}