1extends layout
2
3include mixins/pagination
4include mixins/breadcrumb
5include mixins/opengraph
6
7block opengraph
8 +opengraph({content: `See the latest posts on the ${title} board.`, title: title})
9
10
11block content
12 +breadcrumb(breadcrumbData)
13 .card
14 .flex.flex-center.m-b-sm
15 h2.aubergine.m-v-md #{title}
16 span.flex__grow
17 if user
18 a(href=`${currentPath + '/new-post'}`)
19 span.button.button-primary New Post
20 hr
21 ul.m-t-md
22 each p in posts
23 li.flex.flex-center.p-b-sm
24 span.flex__grow
25 a(href=`/p/${p.slug}`).bold.underline--hover #{p.name}
26 |
27 span.gray by
28 span @#{p.author.username}
29 span.ws-nowrap
30 | #{p.replyCount}
31 span.gray //
32 | #{p.created_date_formatted}
33 .m-t-md
34 +pagination(page, pages, count, 'posts')