mirror of
https://github.com/thomasjsn/hugo-theme-hello-friend.git
synced 2024-11-25 09:15:07 +01:00
ced6be1505
The maximum-scale=1 attribute prevents low-vision users from magnifying the page in some browsers. This isn't applicable to browsers like Safari in iOS 10+, but it would still be ideal to accommodate the aforementioned users for other browsers. Also, this results in a Lighthouse score penalty for accessibility. Alternatively, we could increase maximum-scale to 5 or above if removing it results in a known UI/UX regression I haven't looked into. Some further reading: * https://a11yproject.com/posts/never-use-maximum-scale/ * https://web.dev/meta-viewport * https://www.w3.org/TR/WCAG21/#resize-text
34 lines
1.3 KiB
HTML
34 lines
1.3 KiB
HTML
<meta http-equiv="content-type" content="text/html; charset=utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<meta name="description" content="{{ if .IsHome }}{{ $.Site.Params.Subtitle }}{{ else }}{{ .Summary | plainify }}{{ end }}"/>
|
|
<meta name="keywords" content="{{ with .Params.Keywords }}{{ delimit . ", " }}{{ else }}{{ $.Site.Params.Keywords }}{{ end }}"/>
|
|
<meta name="robots" content="noodp"/>
|
|
<link rel="canonical" href="{{ .Permalink }}" />
|
|
|
|
<!-- head custom -->
|
|
{{- partial "prepended_head.html" . }}
|
|
|
|
<!-- Theme CSS -->
|
|
<link rel="stylesheet" href="{{ "assets/style.css" | absURL }}">
|
|
|
|
<!-- Custom CSS to override theme properties (/static/style.css) -->
|
|
<link rel="stylesheet" href="{{ "style.css" | absURL }}">
|
|
|
|
<!-- Icons -->
|
|
<link rel="apple-touch-icon-precomposed" sizes="144x144" href="{{ "img/apple-touch-icon-144-precomposed.png" | absURL }}">
|
|
<link rel="shortcut icon" href="{{ "img/favicon.png" | absURL }}">
|
|
|
|
<!-- Twitter Card -->
|
|
{{ template "_internal/twitter_cards.html" . }}
|
|
|
|
<!-- OG data -->
|
|
{{ template "_internal/opengraph.html" . }}
|
|
|
|
<!-- RSS | JSON -->
|
|
{{ range .AlternativeOutputFormats -}}
|
|
{{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .RelPermalink $.Site.Title | safeHTML }}
|
|
{{ end -}}
|
|
|
|
<!-- head custom -->
|
|
{{- partial "extended_head.html" . }}
|