Add discussion subsection
This commit is contained in:
parent
39483fdceb
commit
41d4db8ecd
@ -45,6 +45,7 @@ function getBlogPosts($params) {
|
||||
"slug" => $meta["slug"],
|
||||
"date" => $meta["date"],
|
||||
"published" => $meta["published"],
|
||||
"discussion" => $meta["discussion"],
|
||||
"content" => $mp->text($content));
|
||||
|
||||
$date = new DateTime($post['date']);
|
||||
|
||||
@ -308,10 +308,13 @@ table.music th:nth-child(3) {
|
||||
font-style: normal;
|
||||
font-size: 90%;
|
||||
}
|
||||
.webmentions {
|
||||
.subsection {
|
||||
margin: 64px 0 0;
|
||||
border-top: 3px dashed rgba(0,0,0,0.5);
|
||||
}
|
||||
.subsection h2 {
|
||||
margin: 48px 0 0;
|
||||
}
|
||||
|
||||
/* Lists */
|
||||
.list {
|
||||
|
||||
@ -5,6 +5,10 @@ mixin webmention($item)
|
||||
a(href="{$item['source']}") !{$item['title']}
|
||||
| by !{$item['author_name']} on !{$item['date']} at !{$item['time']}
|
||||
|
||||
mixin discussionLink($item)
|
||||
p
|
||||
a(href="{$item}") !{$item}
|
||||
|
||||
block content
|
||||
header
|
||||
nav
|
||||
@ -24,8 +28,14 @@ block content
|
||||
|
||||
.longform__content.e-content
|
||||
| !{$post['content']}
|
||||
|
||||
if ($post['discussion'])
|
||||
.discussion.subsection
|
||||
h2 Join the discussion
|
||||
each $item in $post["discussion"]
|
||||
+discussionLink($item)
|
||||
|
||||
.webmentions
|
||||
.webmentions.subsection
|
||||
h2 Webmentions
|
||||
if ($post['hasWebmentions'])
|
||||
each $item in $post["webmentions"]
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user