{{- if eq (getenv "HUGO_ENV") "production" | and .IsPage | and (ne .Params.comment false) -}} {{- if .Site.Params.disqus.shortname -}}
comments powered by Disqus {{- end -}} {{- if .Site.Params.gitalk.owner -}} {{- if .Site.Params.cdn.gitalk_css -}} {{- .Site.Params.cdn.gitalk_css | safeHTML -}} {{- else -}} {{- $res := resources.Get "css/lib/gitalk/gitalk.css" | resources.Minify -}} {{- end -}} {{- if .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 .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 -}} {{- if .Site.Params.facebook.enable -}} {{- end -}} {{- end -}}