Skip to content

Commit 0aa0d92

Browse files
committed
Set <article> on narrative and correct CSS
This also adds `.narrative` alongside the existing (and more brittle) `div.narrative` selector, to ensure fuller backward compatibility. In practice, eliminating `div.narrative` would probably be fine. But preserving it won't hurt anything, either.
1 parent 63a8990 commit 0aa0d92

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

_layouts/narrative.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
layout: default
33
---
44

5-
<div class="narrative">
5+
<article class="narrative">
66
<h1 class="text-title">{{ page.title }}</h1>
77
<p class="citation"> by {{ page.author }}</p>
88
{{ content }}
9-
</div>
9+
</article>

_sass/_ed.scss

+2-1
Original file line numberDiff line numberDiff line change
@@ -664,7 +664,8 @@ p.small {
664664
}
665665

666666
div.poem,
667-
div.narrative {
667+
div.narrative,
668+
.narrative {
668669
margin-bottom: 5rem;
669670
}
670671

0 commit comments

Comments
 (0)