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 != '')
|
|
|
|
a.cover-container(data-fancybox data-src=page.cover)
|
|
|
|
img.post-cover(src=has_cover ? page.cover : "/img/no_image.svg")
|
|
|
|
|
|
|
|
.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}分钟], 阅读量 [
|
|
|
|
#[span.stat-info.waline-pageview-count(data-src=url_for(page.path)) 未知]
|
|
|
|
]
|
|
|
|
br
|
|
|
|
span.big publish by
|
|
|
|
span.author #{author}
|
|
|
|
|
|
|
|
hr
|
|
|
|
#main-content.main-content
|
|
|
|
!= page.content
|
|
|
|
|
|
|
|
hr
|
|
|
|
|
|
|
|
h2 想说点什么?
|
|
|
|
#waline-container
|
|
|
|
script(type="module").
|
|
|
|
import { init } from 'https://unpkg.com/@waline/client@v2/dist/waline.mjs';
|
|
|
|
init({
|
|
|
|
el: '#waline-container',
|
|
|
|
serverURL: 'https://comment-api.ciduid.top',
|
|
|
|
pageview: true,
|
|
|
|
path: document.location.pathname,
|
|
|
|
});
|
|
|
|
|
|
|
|
|