From 755d1ffe7a22d8ad83485240ff78cf25d501602f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Erik=20Pedersen?= Date: Mon, 6 Aug 2018 23:11:12 +0200 Subject: tpl/tmplimpl: Add MIME type to embedded JS So they get minified correctly. See #5042 --- tpl/tplimpl/embedded/templates.autogen.go | 8 ++++---- tpl/tplimpl/embedded/templates/disqus.html | 2 +- tpl/tplimpl/embedded/templates/google_analytics.html | 2 +- tpl/tplimpl/embedded/templates/google_analytics_async.html | 2 +- tpl/tplimpl/embedded/templates/shortcodes/gist.html | 2 +- 5 files changed, 8 insertions(+), 8 deletions(-) (limited to 'tpl') diff --git a/tpl/tplimpl/embedded/templates.autogen.go b/tpl/tplimpl/embedded/templates.autogen.go index 35559b8c3..0ecb4dad0 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 aebcd1447..178d84caf 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 -- cgit v1.2.3