Disable voting during development

This commit is contained in:
Joshua Goins 2023-03-28 17:39:17 -04:00
parent 0e7bd2d0ca
commit 7ab58cd056

View file

@ -4,6 +4,7 @@
<p style="text-align: center" id="num-votes">...</p>
</div>
{{ if hugo.IsProduction }}
{{ $site := resources.Get "js/voting.js" }}
{{ if hugo.IsProduction }}
{{ $site = $site | minify | fingerprint | resources.PostProcess }}
@ -14,3 +15,4 @@
<script type="text/javascript">
refresh({{ .Slug }})
</script>
{{ end }}