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.

52 lines
1.8 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
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 != '')
1 year ago
a.cover-container(data-fancybox data-src=page.cover)
img.post-cover(src=has_cover ? page.cover : "/img/no_image.svg")
1 year ago
.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.
1 year ago
总字数 [#{word_count}], 阅读时长 [约#{read_cost}分钟], 阅读量 [
#[span.stat-info.waline-pageview-count(data-src=url_for(page.path)) 未知]
]
1 year ago
br
span.big publish by
span.author #{author}
1 year ago
1 year ago
hr
1 year ago
#main-content.main-content
1 year ago
!= 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,
});
1 year ago
1 year ago