From 3cf9f6cdeef0373b6e46855dddb4db3ae29439cf Mon Sep 17 00:00:00 2001 From: Arho Huttunen Date: Tue, 16 Feb 2021 00:41:17 +0200 Subject: [PATCH] fix: comment provider not found (#2165) Hugo v0.80.0 `Exists` function requires file extension unlike Hugo's Partial statement --- wowchemy/layouts/partials/comments.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wowchemy/layouts/partials/comments.html b/wowchemy/layouts/partials/comments.html index 453a605f..87cac006 100644 --- a/wowchemy/layouts/partials/comments.html +++ b/wowchemy/layouts/partials/comments.html @@ -1,7 +1,7 @@ {{ $provider := trim (site.Params.comments.provider | lower) " " }} {{ if $provider }} - {{ $provider_tpl := printf "partials/comments/%s" $provider }} + {{ $provider_tpl := printf "partials/comments/%s.html" $provider }} {{ $provider_exists := templates.Exists $provider_tpl }} {{ if not $provider_exists }} {{ errorf "The '%s' comment provider was not found." $provider }}