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