]> git.maquefel.me Git - brevno-suite/hugo/commitdiff
tpl/tplimpl: Remove superfluous type attr on script elements
authorJoe Mooring <joe.mooring@veriphor.com>
Sat, 25 Nov 2023 20:43:52 +0000 (12:43 -0800)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Mon, 27 Nov 2023 09:45:53 +0000 (10:45 +0100)
Closes #6379

tpl/tplimpl/embedded/templates/disqus.html
tpl/tplimpl/embedded/templates/google_analytics.html
tpl/tplimpl/embedded/templates/google_analytics_async.html
tpl/tplimpl/embedded/templates/shortcodes/gist.html

index d90a525864c5e71f898e0bf61726a7007f51e8be..19fcb7fda68db268ba973edd5592c46153b7ece7 100644 (file)
@@ -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}}
index ad88ae924907b0964b8e8a58118bc3605632c8a7..c9a12e8e9d36904408e7f8c14e400570b4876faf 100644 (file)
@@ -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(){
index c9ba8a2b3f55130f0b8594504aa51885508197cb..93ecb753d224d67a5d12bdf7b2aa1938f85addbf 100644 (file)
@@ -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;
index 781b265678e7a44c348d67982863f9e2daf0b504..5f754f6514b814a77ac532e6720f622e74b3d3b7 100644 (file)
@@ -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>