From 29037091d66cdfe829f65ecbeb7314a279346de3 Mon Sep 17 00:00:00 2001 From: Akhyar Amarullah Date: Thu, 19 Dec 2019 23:38:51 +0700 Subject: [PATCH] Fix staticman v2/v3 comments (#2351) According to the most recent docs, `branch` and `endpoint` should be inside `site.comments.staticman` config. --- _includes/comments.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/_includes/comments.html b/_includes/comments.html index 40b0359..6562f12 100644 --- a/_includes/comments.html +++ b/_includes/comments.html @@ -12,7 +12,7 @@
{% when "staticman_v2" %}
- {% if site.repository and site.staticman.branch %} + {% if site.repository and site.comments.staticman.branch %}
{% if site.data.comments[page.slug] %} @@ -35,7 +35,7 @@

{{ site.data.ui-text[site.locale].comments_label | default: "Leave a Comment" }}

{{ site.data.ui-text[site.locale].comment_form_info | default: "Your email address will not be published. Required fields are marked" }} *

-
+
{{ site.data.ui-text[site.locale].loading_label | default: "Loading..." }} -- 2.43.0