mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-31 22:41:53 +02:00
tpl/tmplimpl: Add MIME type to embedded JS
So they get minified correctly. See #5042
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
{{- $pc := .Page.Site.Config.Privacy.Disqus -}}
|
||||
{{- if not $pc.Disable -}}
|
||||
{{ if .Site.DisqusShortname }}<div id="disqus_thread"></div>
|
||||
<script>
|
||||
<script type="application/javascript">
|
||||
var disqus_config = function () {
|
||||
{{with .GetParam "disqus_identifier" }}this.page.identifier = '{{ . }}';{{end}}
|
||||
{{with .GetParam "disqus_title" }}this.page.title = '{{ . }}';{{end}}
|
||||
|
Reference in New Issue
Block a user