diff options
author | Alan Pearce | 2014-07-19 18:24:30 +0100 |
---|---|---|
committer | Alan Pearce | 2014-07-19 18:24:30 +0100 |
commit | 402123b85e869810c1e424f0e97edb7b9c6dc9dd (patch) | |
tree | 769593385cd988eb799c072dcb89e060de66ceaa /layouts/_default/single.html | |
parent | 368c103bbe6a84e508a7f54280d913034f517ee6 (diff) | |
download | hyde-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.
Diffstat (limited to 'layouts/_default/single.html')
-rw-r--r-- | layouts/_default/single.html | 4 |
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" . }} |