{{ if eq (getenv "HUGO_ENV") "production" | and .IsPage | and (ne .Params.comment false) -}} {{- if .Site.DisqusShortname -}}
comments powered by Disqus {{- end -}} {{- if .Site.Params.gitalk.owner -}} {{ if eq (getenv "HUGO_ENV") "production" | and .Site.Params.cdn.gitalk_css }} {{ .Site.Params.cdn.gitalk_css | safeHTML }} {{ else }} {{- $res := resources.Get "css/lib/gitalk/gitalk.css" | resources.Minify -}} {{ end }} {{ if eq (getenv "HUGO_ENV") "production" | and .Site.Params.cdn.gitalk_js }} {{ .Site.Params.cdn.gitalk_js | safeHTML }} {{ else }} {{- $res := resources.Get "js/lib/gitalk/gitalk.min.js" | resources.Minify -}} {{ end }} {{- end -}} {{- if .Site.Params.valine.enable -}} {{ if eq (getenv "HUGO_ENV") "production" | and .Site.Params.cdn.valine_js }} {{ .Site.Params.cdn.valine_js | safeHTML }} {{ else }} {{- $res := resources.Get "js/lib/valine/Valine.min.js" | resources.Minify -}} {{ end }} {{- end -}} {{- end }}