Skip to content

Commit ca208bf

Browse files
committed
Uniformly handle byline across all text types
Poem already has `p.byline`, but narrative had `p.citation` (which is never referenced in the CSS), and drama had no byline at all. The _Raisin in the Sun_ demo file was inserting the byline directly into the page content itself. (This commit removes that now-duplicate content.) So now all templates have a `p.byline`. Note that poems do not have "by" in front of the author's name, unlike narratives and drama. The history of that choice in the Ed project is unclear, but it will continue preserved here.
1 parent 99135ac commit ca208bf

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

_layouts/drama.html

+1
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,6 @@
44

55
<article class="drama">
66
<h1 class="text-title">{{ page.title }}</h1>
7+
<p class="byline">by {{ page.author }}</p>
78
{{ content }}
89
</article>

_layouts/narrative.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@
44

55
<article class="narrative">
66
<h1 class="text-title">{{ page.title }}</h1>
7-
<p class="citation"> by {{ page.author }}</p>
7+
<p class="byline">by {{ page.author }}</p>
88
{{ content }}
99
</article>

_texts/raising.md

-2
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@ source: "Hansberry, Lorraine, and Robert Nemiroff. A Raisin in the Sun. Rep Rei
77

88
---
99

10-
<p class="citation"> by {{ page.author }}</p>
11-
1210
(excerpt)
1311

1412
MAMA: Son—how come you talk so much 'bout money?

0 commit comments

Comments
 (0)