about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2014-07-19 18:24:30 +0100
committerAlan Pearce2014-07-19 18:24:30 +0100
commit402123b85e869810c1e424f0e97edb7b9c6dc9dd (patch)
tree769593385cd988eb799c072dcb89e060de66ceaa
parent368c103bbe6a84e508a7f54280d913034f517ee6 (diff)
downloadhyde-402123b85e869810c1e424f0e97edb7b9c6dc9dd.tar.lz
hyde-402123b85e869810c1e424f0e97edb7b9c6dc9dd.tar.zst
hyde-402123b85e869810c1e424f0e97edb7b9c6dc9dd.zip
Use the <main> element for article text
More semantic than a <div>.  W3C don't allow multiple <main> elements as
part of their HTML5 spec, but WHATWG do.  Since WHATWG sticks closely to
implementations, I'll follow that.
-rw-r--r--layouts/_default/single.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index 6c3ac3b..d391893 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -6,9 +6,9 @@
 					<h1 class="post-title" itemprop="name">{{ .Title }}</h1>
 					<time class="post-date" datetime="{{ .Date.Format "2006-01-02T15:04:05Z" }}" itemprop="datePublished">{{ .Date.Format "Monday, 2 January 2006" }}</time>
 				</header>
-				<div class="post-content" itemprop="articleBody">
+				<main class="post-content" itemprop="articleBody">
 					{{ .Content }}
-				</div>
+				</main>
 			</article>
 		</main>
 {{ template "theme/partials/sidebar.html" . }}