aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicholas Johnson <nick@nicksphere.ch>2022-08-04 00:00:00 +0000
committerNicholas Johnson <nick@nicksphere.ch>2022-08-04 00:00:00 +0000
commitf7d9201453dc32f166d1379fa19dcea52a82c0a7ecf1ec9ad9a484f26a45df0a (patch)
tree518a642655fe2786ce2e415f39f73be8ea5dbb225e4d2b934bb955ee435c645d
parent9e44736af598f1224528dd10cceff309a2eb4b7cc9a34d2830245cb3aeb22bcc (diff)
downloadhugo-theme-journal-f7d9201453dc32f166d1379fa19dcea52a82c0a7ecf1ec9ad9a484f26a45df0a.tar.gz
hugo-theme-journal-f7d9201453dc32f166d1379fa19dcea52a82c0a7ecf1ec9ad9a484f26a45df0a.zip
Replace <content> tag with proper <main> tag and fix unintended tag
nesting
-rw-r--r--layouts/_default/baseof.html2
-rw-r--r--layouts/_default/single.html4
-rw-r--r--layouts/index.html2
3 files changed, 4 insertions, 4 deletions
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html
index ba1658f..ace076a 100644
--- a/layouts/_default/baseof.html
+++ b/layouts/_default/baseof.html
@@ -3,9 +3,7 @@
{{ partial "head.html" . }}
<body>
{{ partial "header.html" . }}
- <content>
{{ block "main" . }}{{ end }}
- </content>
{{ partial "footer.html" . }}
</body>
</html>
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index 7c58c1a..3ade9a9 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -2,7 +2,7 @@
<nav>
<p><a href="/" rel="noreferrer">Return to homepage</a></p>
</nav>
-<content>
+<main>
{{ .Content }}
-</content>
+</main>
{{ end }}
diff --git a/layouts/index.html b/layouts/index.html
index 38c3c81..af4a15a 100644
--- a/layouts/index.html
+++ b/layouts/index.html
@@ -1,4 +1,5 @@
{{ define "main" }}
+<main>
<h1>{{ .Site.Params.indexTitle }}</h1>
<p>{{ .Site.Params.indexIntro }}</p>
<h2>Navigation Links</h2>
@@ -11,4 +12,5 @@
</nav>
<h2>Journal Entries</h2>
{{ partial "metadata.html" . }}
+</main>
{{ end }}