Skip to content

Commit

Permalink
tpl/tplimpl: Remove superfluous type attr on script elements
Browse files Browse the repository at this point in the history
Closes #6379
  • Loading branch information
jmooring authored and bep committed Nov 27, 2023
1 parent 5887230 commit 8d32ca2
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion 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}}
Expand Down
2 changes: 1 addition & 1 deletion tpl/tplimpl/embedded/templates/google_analytics.html
Expand Up @@ -12,7 +12,7 @@
}
</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(){
Expand Down
2 changes: 1 addition & 1 deletion tpl/tplimpl/embedded/templates/google_analytics_async.html
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion 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>

0 comments on commit 8d32ca2

Please sign in to comment.