Skip to content

Commit 63a8990

Browse files
committed
Set <article> on drama, page, poem, & post
Again seamlessly replaces the `<div>` element in place without disrupting how the page renders CSS. Note that `<article>` is, per the HTML spec, intended to: > [represent] a complete, or self-contained, composition in a document, > page, application, or site and that is, in principle, independently > distributable or reusable, e.g. in syndication. This could be a forum > post, a magazine or newspaper article, a blog entry, a user-submitted > comment, an interactive widget or gadget, or any other independent > item of content. (See https://html.spec.whatwg.org/#the-article-element) So yes, `<article>` is suited to poems and any other "complete or self-contained composition."
1 parent 76e4a75 commit 63a8990

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

_layouts/drama.html

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

5-
<div class="drama">
5+
<article class="drama">
66
<h1 class="text-title">{{ page.title }}</h1>
77
{{ content }}
8-
</div>
8+
</article>

_layouts/page.html

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

5-
<div class="page">
5+
<article class="page">
66
<h1 class="page-title">{{ page.title }}</h1>
77
{{ content }}
8-
</div>
8+
</article>

_layouts/poem.html

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

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

_layouts/post.html

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

5-
<div class="post">
5+
<article class="post">
66
<h1 class="text-title">{{ page.title }}</h1>
77
{{ content }}
8-
</div>
8+
</article>

0 commit comments

Comments
 (0)