From 2d771dc0bd5a00cb5e41911944c76c7564631be3 Mon Sep 17 00:00:00 2001 From: Akhyar Amarullah Date: Thu, 19 Dec 2019 12:35:23 +0700 Subject: [PATCH] Fix staticman v2/v3 comments 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 40b035977efd..6562f128cc07 100644 --- a/_includes/comments.html +++ b/_includes/comments.html @@ -12,7 +12,7 @@

{{ comments_label }}

{% 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_titl

{{ 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..." }}