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