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

1 year ago
extends includes/layout.pug
1 year ago
include includes/_partials/information_card.pug
include includes/_partials/post_list/post_item.pug
1 year ago
block content
1 year ago
.index-content
.left-content
1 year ago
include includes/_partials/left_declaration.pug
1 year ago
.post-list
1 year ago
- 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)
- })
1 year ago
.right-content
1 year ago
+information_card({name: '全站总字数', value: totalcount(site)})