tpl/tplimpl: Remove superfluous type attr on script elements - hugo - [fork] hugo port for 9front
 (HTM) git clone git@git.drkhsh.at/hugo.git
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) Submodules
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit 8d32ca223def4031aa26f98e8efc1a8b4e7b7546
 (DIR) parent 5887230b7d8bac2c5429f8cb51af1e75e3cdf085
 (HTM) Author: Joe Mooring <joe.mooring@veriphor.com>
       Date:   Sat, 25 Nov 2023 12:43:52 -0800
       
       tpl/tplimpl: Remove superfluous type attr on script elements
       
       Closes #6379
       
       Diffstat:
         M tpl/tplimpl/embedded/templates/dis… |       2 +-
         M tpl/tplimpl/embedded/templates/goo… |       2 +-
         M tpl/tplimpl/embedded/templates/goo… |       2 +-
         M tpl/tplimpl/embedded/templates/sho… |       2 +-
       
       4 files changed, 4 insertions(+), 4 deletions(-)
       ---
 (DIR) diff --git 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}}
 (DIR) diff --git 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(){
 (DIR) diff --git 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;
 (DIR) diff --git 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>