2015-10-09 18:43:40 +08:00
|
|
|
mixin make_post(post, is_detail=False)
|
|
|
|
.post.animated.fadeInDown
|
|
|
|
.post-title
|
|
|
|
h3
|
|
|
|
if is_detail
|
|
|
|
a= post.title
|
|
|
|
else
|
|
|
|
a(href="{{post.url}}")= post.title
|
|
|
|
if is_detail
|
|
|
|
.post-content= post.content
|
|
|
|
else
|
|
|
|
.post-content= post.content.limit(200).no_pic
|
|
|
|
.post-footer:.meta
|
|
|
|
.info
|
2016-07-12 16:17:43 +08:00
|
|
|
i.fa.fa-sun-o
|
2015-10-09 18:43:40 +08:00
|
|
|
span.date= post.date.format("%Y-%m-%d")
|
|
|
|
if site.configs.disqus
|
|
|
|
i.fa.fa-comment-o
|
|
|
|
a(href="{{post.url}}#disqus_thread") Comments
|
2016-02-19 22:28:08 +08:00
|
|
|
if post.tags
|
|
|
|
i.fa.fa-tag
|
|
|
|
for tag in post.tags
|
|
|
|
a.tag(href='/tags/{{tag}}') {{tag}}
|
2015-10-09 18:43:40 +08:00
|
|
|
mixin make_pager(pre_text, next_text)
|
|
|
|
.pagination
|
|
|
|
ul.clearfix
|
|
|
|
if paginator.has_next
|
|
|
|
li.next.pagbuttons
|
|
|
|
a.btn(role="navigation",href="{{ paginator.next_page_url}}")= next_text
|
|
|
|
|
|
|
|
if paginator.has_previous
|
|
|
|
li.pre.pagbuttons
|
|
|
|
a.btn(role="navigation",href="{{ paginator.previous_page_url }}")= pre_text
|