fix: improve HTML5 validation

See #1197
This commit is contained in:
George Cushen committed 2019-07-11 21:47:43 +01:00
1 parent a8c4f887e5
commit ac5dcd9dc4
2 files changed
+3 -4

No files matched your search

+1 -1
View File
@@ -14,7 +14,7 @@
<div id="search-box">
{{ if eq site.Params.search.engine 1 }}
<input name="q" id="search-query" placeholder="{{i18n "search_placeholder"}}" autocapitalize="off"
autocomplete="off" autocorrect="off" role="textbox" spellcheck="false" type="search">
autocomplete="off" autocorrect="off" spellcheck="false" type="search">
{{ else }}
<!-- Search box will appear here -->
{{ end }}
+2 -3
View File
@@ -96,7 +96,7 @@
{{/* We cannot use SRI with Google Fonts because the CSS is dynamically generated according to the user agent. */}}
{{ with ($scr.Get "google_fonts") }}
<link rel="stylesheet" {{ printf "href=\"https://fonts.googleapis.com/css?family=%s&display=swap\"" . | safeHTMLAttr }}>
<link rel="stylesheet" {{ printf "href=\"https://fonts.googleapis.com/css?family=%s&display=swap\"" (htmlEscape .) | safeHTMLAttr }}>
{{ end }}
{{ $css_options := (dict "targetPath" "css/academic.css" "outputStyle" "compressed") }}
@@ -135,8 +135,7 @@
{{ end }}
{{ with .OutputFormats.Get "RSS" }}
<link rel="alternate" href="{{ .RelPermalink }}" type="application/rss+xml" title="{{ site.Title }}">
<link rel="feed" href="{{ .RelPermalink }}" type="application/rss+xml" title="{{ site.Title }}">
<link rel="alternate" href="{{.RelPermalink}}" type="application/rss+xml" title="{{site.Title}}">
{{ end }}
<link rel="manifest" href="{{ "site.webmanifest" | relURL }}">