Explorar o código

fix: comment provider not found (#2165)

Hugo v0.80.0 `Exists` function requires file extension unlike Hugo's Partial statement
Arho Huttunen %!s(int64=4) %!d(string=hai) anos
pai
achega
3cf9f6cdee
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      wowchemy/layouts/partials/comments.html

+ 1 - 1
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 }}