From: Bjørn Erik Pedersen Date: Mon, 6 Aug 2018 21:11:12 +0000 (+0200) Subject: tpl/tmplimpl: Add MIME type to embedded JS X-Git-Tag: v0.47~33 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=755d1ffe7a22d8ad83485240ff78cf25d501602f;p=brevno-suite%2Fhugo tpl/tmplimpl: Add MIME type to embedded JS So they get minified correctly. See #5042 --- diff --git a/tpl/tplimpl/embedded/templates.autogen.go b/tpl/tplimpl/embedded/templates.autogen.go index 35559b8c..0ecb4dad 100644 --- a/tpl/tplimpl/embedded/templates.autogen.go +++ b/tpl/tplimpl/embedded/templates.autogen.go @@ -79,7 +79,7 @@ var EmbeddedTemplates = [][2]string{ {`disqus.html`, `{{- $pc := .Page.Site.Config.Privacy.Disqus -}} {{- if not $pc.Disable -}} {{ if .Site.DisqusShortname }}
-`}, + {`shortcodes/gist.html`, ``}, {`shortcodes/highlight.html`, `{{ if len .Params | eq 2 }}{{ highlight (trim .Inner "\n\r") (.Get 0) (.Get 1) }}{{ else }}{{ highlight (trim .Inner "\n\r") (.Get 0) "" }}{{ end }}`}, {`shortcodes/instagram.html`, `{{- $pc := .Page.Site.Config.Privacy.Instagram -}} {{- if not $pc.Disable -}} diff --git a/tpl/tplimpl/embedded/templates/disqus.html b/tpl/tplimpl/embedded/templates/disqus.html index aebcd144..178d84ca 100644 --- a/tpl/tplimpl/embedded/templates/disqus.html +++ b/tpl/tplimpl/embedded/templates/disqus.html @@ -1,7 +1,7 @@ {{- $pc := .Page.Site.Config.Privacy.Disqus -}} {{- if not $pc.Disable -}} {{ if .Site.DisqusShortname }}
- \ No newline at end of file + \ No newline at end of file