mirror of
https://github.com/gcushen/hugo-academic.git
synced 2025-07-26 03:00:50 +02:00
fix: comment provider not found (#2165)
Hugo v0.80.0 `Exists` function requires file extension unlike Hugo's Partial statement
This commit is contained in:
parent
7b235ea453
commit
3cf9f6cdee
1 changed files with 1 additions and 1 deletions
|
@ -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 }}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue