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.
|
|
|
extends includes/layout.pug
|
|
|
|
include includes/_partials/information_card.pug
|
|
|
|
|
|
|
|
block content
|
|
|
|
.markdown-container
|
|
|
|
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
|
|
|
|
- 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;
|
|
|
|
.h-line
|
|
|
|
.info-box
|
|
|
|
span.time-info.
|
|
|
|
发表于 #{publishTime},更新于 #{updateTime}
|
|
|
|
br
|
|
|
|
span.stat-info.
|
|
|
|
总字数 #{word_count}, 阅读时长 约#{read_cost}分钟, 阅读量 100
|
|
|
|
br
|
|
|
|
span.big publish by
|
|
|
|
span.author #{author}
|
|
|
|
|
|
|
|
hr
|
|
|
|
.main-content
|
|
|
|
!= page.content
|