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.

35 lines
1.2 KiB

1 year ago
extends includes/layout.pug
1 year ago
include includes/_partials/information_card.pug
1 year ago
block content
1 year ago
.markdown-container
1 year ago
include includes/_partials/left_declaration.pug
.article-container
.article-header
- const has_cover = (page.cover !== undefined && page.cover !== null && page.cover != '')
img.post-cover(src=has_cover ? page.cover : "/img/no_image.svg")
.v-line
.article-info
span.article-title= page.title
1 year ago
- const publishTime = moment(page.date).format("YYYY-MM-DD HH:mm:SS");
- const updateTime = moment(page.updated).format("YYYY-MM-DD HH:mm:SS");
- const word_count = wordcount(page.content);
- const read_cost = min2read(page.content);
- const author = page.author === undefined ? config.author : page.author;
1 year ago
.h-line
1 year ago
.info-box
span.time-info.
1 year ago
发表于 #{publishTime},更新于 #{updateTime}
1 year ago
br
span.stat-info.
总字数 #{word_count}, 阅读时长 约#{read_cost}分钟, 阅读量 100
br
span.big publish by
span.author #{author}
1 year ago
1 year ago
hr
.main-content
!= page.content