2016-03-31 14:24:48 +00:00
|
|
|
include ../_includes/_mixins
|
|
|
|
|
|
|
|
//- Article
|
|
|
|
//- ============================================================================
|
|
|
|
|
|
|
|
article.article(id=current.source)
|
|
|
|
|
|
|
|
header.article-header
|
|
|
|
+h2.article-title=title
|
2016-09-30 18:29:03 +00:00
|
|
|
.article-meta
|
2016-03-31 14:24:48 +00:00
|
|
|
if author
|
2016-09-30 18:29:03 +00:00
|
|
|
| by #[a.link(href=(authors[author].url || url) target='_blank')=authors[author].name] on
|
2016-03-31 14:24:48 +00:00
|
|
|
| #[+date(date)]
|
|
|
|
|
|
|
|
.article-body!=yield
|
|
|
|
|
|
|
|
footer.article-footer
|
|
|
|
|
|
|
|
+grid('padding', 'align-right', 'valign-center')
|
2016-09-30 18:29:03 +00:00
|
|
|
if hide_social != true
|
|
|
|
+tweet(title)
|
2016-03-31 14:24:48 +00:00
|
|
|
|
|
|
|
if links
|
|
|
|
for link, index in links
|
|
|
|
div: +button('primary', 'small', index.toLowerCase())(href=link target='_blank')
|
2016-09-30 18:29:03 +00:00
|
|
|
+icon(index.toLowerCase(), 'medium', 'secondary')
|
2016-03-31 14:24:48 +00:00
|
|
|
| Discussion on #{index}
|
|
|
|
|
|
|
|
if author
|
|
|
|
+divider
|
|
|
|
|
|
|
|
!=partial('_profile', { label: 'About the Author', style: 'alt' })
|
|
|
|
|
|
|
|
!=partial('_newsletter', { divider: 'both' })
|
|
|
|
!=partial('_latest-posts', { max: 2, _section: _section } )
|