mirror of
https://github.com/Vimux/Binario.git
synced 2024-11-11 01:38:28 +00:00
fc5680d3df
The second part of the fix, fixes the comments.html. The `.Site.IsServer` no longer works since Hugo v0.132.0. Use `hugo.IsServer` since Hugo v0.120.0.
Related 8b4c646cb0
See #94
11 lines
No EOL
354 B
HTML
11 lines
No EOL
354 B
HTML
{{- $server := "" }}
|
|
{{- if ge (int (index (split hugo.Version ".") 1)) "120" }}
|
|
{{- $server = hugo.IsServer }}
|
|
{{- else }}
|
|
{{- $server = .Site.IsServer }}
|
|
{{- end }}
|
|
{{- if and (.Site.Config.Services.Disqus.Shortname) (.Param "comments") (not $server) }}
|
|
<section class="comments block">
|
|
{{ template "_internal/disqus.html" . }}
|
|
</section>
|
|
{{- end }} |