Disable voting during development
This commit is contained in:
parent
0e7bd2d0ca
commit
7ab58cd056
1 changed files with 2 additions and 0 deletions
|
@ -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 }}
|
Loading…
Add table
Reference in a new issue