diff options
author | Joe Mooring <joe.mooring@veriphor.com> | 2023-11-25 12:43:52 -0800 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2023-11-27 10:45:53 +0100 |
commit | 8d32ca223def4031aa26f98e8efc1a8b4e7b7546 (patch) | |
tree | 1def7c637abb775899e0f61cdec3de46ae3e5b06 /tpl/tplimpl | |
parent | 5887230b7d8bac2c5429f8cb51af1e75e3cdf085 (diff) |
tpl/tplimpl: Remove superfluous type attr on script elements
Closes #6379
Diffstat (limited to 'tpl/tplimpl')
4 files changed, 4 insertions, 4 deletions
diff --git a/tpl/tplimpl/embedded/templates/disqus.html b/tpl/tplimpl/embedded/templates/disqus.html index d90a52586..19fcb7fda 100644 --- a/tpl/tplimpl/embedded/templates/disqus.html +++ b/tpl/tplimpl/embedded/templates/disqus.html @@ -1,7 +1,7 @@ {{- $pc := .Site.Config.Privacy.Disqus -}} {{- if not $pc.Disable -}} {{ if .Site.Config.Services.Disqus.Shortname }}<div id="disqus_thread"></div> -<script type="application/javascript"> +<script> window.disqus_config = function () { {{with .Params.disqus_identifier }}this.page.identifier = '{{ . }}';{{end}} {{with .Params.disqus_title }}this.page.title = '{{ . }}';{{end}} diff --git a/tpl/tplimpl/embedded/templates/google_analytics.html b/tpl/tplimpl/embedded/templates/google_analytics.html index ad88ae924..c9a12e8e9 100644 --- a/tpl/tplimpl/embedded/templates/google_analytics.html +++ b/tpl/tplimpl/embedded/templates/google_analytics.html @@ -12,7 +12,7 @@ if (!doNotTrack) { } </script> {{ else if hasPrefix . "UA-" }} -<script type="application/javascript"> +<script> {{ template "__ga_js_set_doNotTrack" $ }} if (!doNotTrack) { (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ diff --git a/tpl/tplimpl/embedded/templates/google_analytics_async.html b/tpl/tplimpl/embedded/templates/google_analytics_async.html index c9ba8a2b3..93ecb753d 100644 --- a/tpl/tplimpl/embedded/templates/google_analytics_async.html +++ b/tpl/tplimpl/embedded/templates/google_analytics_async.html @@ -2,7 +2,7 @@ {{- $pc := .Site.Config.Privacy.GoogleAnalytics -}} {{- if not $pc.Disable -}} {{ with .Site.Config.Services.GoogleAnalytics.ID }} -<script type="application/javascript"> +<script> {{ template "__ga_js_set_doNotTrack" $ }} if (!doNotTrack) { window.ga=window.ga||function(){(ga.q=ga.q||[]).push(arguments)};ga.l=+new Date; diff --git a/tpl/tplimpl/embedded/templates/shortcodes/gist.html b/tpl/tplimpl/embedded/templates/shortcodes/gist.html index 781b26567..5f754f651 100644 --- a/tpl/tplimpl/embedded/templates/shortcodes/gist.html +++ b/tpl/tplimpl/embedded/templates/shortcodes/gist.html @@ -1 +1 @@ -<script type="application/javascript" src="https://gist.github.com/{{ index .Params 0 }}/{{ index .Params 1 }}.js{{if len .Params | eq 3 }}?file={{ index .Params 2 }}{{end}}"></script> +<script src="https://gist.github.com/{{ index .Params 0 }}/{{ index .Params 1 }}.js{{if len .Params | eq 3 }}?file={{ index .Params 2 }}{{end}}"></script> |