aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOscar Najera <hi@oscarnajera.com>2024-06-02 12:32:08 +0200
committerOscar Najera <hi@oscarnajera.com>2024-06-02 12:32:08 +0200
commitdd855082221faf4ec254165a4453355485ed6ac1 (patch)
tree4e9cecb9b910526d822a12ebc3912b71e131b676
parent4fc79036614c35eb5f8721b0750698710de34971 (diff)
downloadhugo-minimalist-theme-dd855082221faf4ec254165a4453355485ed6ac1.tar.gz
hugo-minimalist-theme-dd855082221faf4ec254165a4453355485ed6ac1.tar.bz2
hugo-minimalist-theme-dd855082221faf4ec254165a4453355485ed6ac1.zip
More WC3 compliant html5
-rw-r--r--layouts/_default/baseof.html2
-rw-r--r--layouts/partials/author_card.html2
-rw-r--r--layouts/partials/head.html5
-rw-r--r--layouts/partials/post.html1
4 files changed, 4 insertions, 6 deletions
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html
index 00a12c6..4570a3d 100644
--- a/layouts/_default/baseof.html
+++ b/layouts/_default/baseof.html
@@ -1,5 +1,5 @@
<!doctype html>
-<html>
+<html lang="{{ site.Language }}">
{{- partial "head.html" . -}}
<body class="bg-white">
{{- partial "header.html" . -}}
diff --git a/layouts/partials/author_card.html b/layouts/partials/author_card.html
index 22d60e0..c70cb81 100644
--- a/layouts/partials/author_card.html
+++ b/layouts/partials/author_card.html
@@ -1,6 +1,6 @@
<div class="mw7 center pa4 flex flex-column flex-row-ns bt b--black-10">
<div class="w-10-ns tc">
- <img src="{{ .avatar }}" class="br-100 w3" />
+ <img src="{{ .avatar }}" class="br-100 w3" alt="{{ .name }}" />
</div>
<div class="w-90-ns ph3-ns">
<h5 class="f4 mv1 berkshire-swash">
diff --git a/layouts/partials/head.html b/layouts/partials/head.html
index 35384ba..d1b3178 100644
--- a/layouts/partials/head.html
+++ b/layouts/partials/head.html
@@ -31,8 +31,5 @@
{{ end -}}
- <script
- type="text/javascript"
- src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-chtml.js"
- ></script>
+ <script src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-chtml.js"></script>
</head>
diff --git a/layouts/partials/post.html b/layouts/partials/post.html
index 1542235..b610347 100644
--- a/layouts/partials/post.html
+++ b/layouts/partials/post.html
@@ -19,6 +19,7 @@
{{ end }}"
class="mw-20-ns db center"
loading="lazy"
+ alt=""
/>
</div>
{{ end }}