tpl/tplimpl: Remove superfluous type attr on script elements

Closes #6379
This commit is contained in:
Joe Mooring 2023-11-25 12:43:52 -08:00 committed by Bjørn Erik Pedersen
parent 5887230b7d
commit 8d32ca223d
4 changed files with 4 additions and 4 deletions

View file

@ -1,7 +1,7 @@
{{- $pc := .Site.Config.Privacy.Disqus -}} {{- $pc := .Site.Config.Privacy.Disqus -}}
{{- if not $pc.Disable -}} {{- if not $pc.Disable -}}
{{ if .Site.Config.Services.Disqus.Shortname }}<div id="disqus_thread"></div> {{ if .Site.Config.Services.Disqus.Shortname }}<div id="disqus_thread"></div>
<script type="application/javascript"> <script>
window.disqus_config = function () { window.disqus_config = function () {
{{with .Params.disqus_identifier }}this.page.identifier = '{{ . }}';{{end}} {{with .Params.disqus_identifier }}this.page.identifier = '{{ . }}';{{end}}
{{with .Params.disqus_title }}this.page.title = '{{ . }}';{{end}} {{with .Params.disqus_title }}this.page.title = '{{ . }}';{{end}}

View file

@ -12,7 +12,7 @@ if (!doNotTrack) {
} }
</script> </script>
{{ else if hasPrefix . "UA-" }} {{ else if hasPrefix . "UA-" }}
<script type="application/javascript"> <script>
{{ template "__ga_js_set_doNotTrack" $ }} {{ template "__ga_js_set_doNotTrack" $ }}
if (!doNotTrack) { if (!doNotTrack) {
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){

View file

@ -2,7 +2,7 @@
{{- $pc := .Site.Config.Privacy.GoogleAnalytics -}} {{- $pc := .Site.Config.Privacy.GoogleAnalytics -}}
{{- if not $pc.Disable -}} {{- if not $pc.Disable -}}
{{ with .Site.Config.Services.GoogleAnalytics.ID }} {{ with .Site.Config.Services.GoogleAnalytics.ID }}
<script type="application/javascript"> <script>
{{ template "__ga_js_set_doNotTrack" $ }} {{ template "__ga_js_set_doNotTrack" $ }}
if (!doNotTrack) { if (!doNotTrack) {
window.ga=window.ga||function(){(ga.q=ga.q||[]).push(arguments)};ga.l=+new Date; window.ga=window.ga||function(){(ga.q=ga.q||[]).push(arguments)};ga.l=+new Date;

View 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>