Fix w3 validation errors

master
Maik de Kruif 2 weeks ago
parent 201ba2ef75
commit 6242a1f876
No known key found for this signature in database
GPG Key ID: DB1A8C782DD43CB3
  1. 8
      themes/maik-blog/layouts/partials/header.html
  2. 2
      themes/maik-blog/layouts/partials/image.html
  3. 2
      themes/maik-blog/layouts/partials/javascript.html
  4. 2
      themes/maik-blog/layouts/partials/page_views.html

@ -1,8 +1,8 @@
<header class="header">
<span class="header__inner">
<div class="header__inner">
{{ partial "logo.html" . }}
<span class="header__right">
<div class="header__right">
{{- if len .Site.Menus }}
{{ partial "menu.html" . }}
<span class="menu-trigger">
@ -13,6 +13,6 @@
</span>
{{- end }}
<span class="theme-toggle unselectable">{{ partial "theme-icon.html" . }}</span>
</span>
</span>
</div>
</div>
</header>

@ -5,5 +5,5 @@
<source type="image/webp" srcset="{{ $webp.Permalink }}">
<img src="{{ $png.Permalink }}" alt="{{ .alt | default "" }}" title="{{ .alt }}"
width="{{ .width | default $png.Width }}" height="{{ .height | default $png.Height }}"
{{- if .class}}class="{{ .class }}" {{end}} {{- if .style}}style="{{ .style | safeCSS }}" {{end}} />
{{- if .class}} class="{{ .class }}"{{end}} {{- if .style}} style="{{ .style | safeCSS }}"{{end}} />
</picture>

@ -8,7 +8,7 @@
{{- if .Site.Config.Services.GoogleAnalytics.ID }}
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id={{ .Site.Config.Services.GoogleAnalytics.ID }}"></script>
<script async>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() {

@ -1,6 +1,6 @@
{{- if .Site.Params.goatCounter }}
<span id="{{ .File.UniqueID }}" title="{{ i18n "post.pageViews" }}">{{ i18n "post.unknownViews" }}</span>
<script async>
<script>
let url =
"https://{{ .Site.Params.goatCounter }}/counter/" +
encodeURIComponent({{ .RelPermalink }}.replace(/(\/)?$/, "")) +

Loading…
Cancel
Save