You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

27 lines
1.0 KiB

extends includes/layout.pug
include includes/_partials/information_card.pug
include includes/_partials/post_list/post_item.pug
block content
.index-content
.left-content
include includes/_partials/left_declaration.pug
.post-list
- const posts = page.posts
- posts.each(function(post) {
- const date = moment(post.date).format('MM/DD/YYYY')
- const time = moment(post.date).format('HH:mm:ss')
- let summary = ''
if post.description
summary = post.description
else if post.more
- const strip = strip_html(post.more).substr(0, 128)
- summary = strip.length < 128 ? strip : strip + '...'
else
- const strip = strip_html(post.content).substr(0, 128)
- summary = strip.length < 128 ? strip : strip + '...'
+post_item(post.title, post.cover, date , summary, time)
- })
.right-content
+information_card({name: '全站总字数', value: totalcount(site)})