diff --git a/_config.yml b/_config.yml index a647002..8497d2b 100755 --- a/_config.yml +++ b/_config.yml @@ -248,6 +248,15 @@ plugins: enable: true css: https://unpkg.com/swiper@6/swiper-bundle.min.css js: https://unpkg.com/swiper@6/swiper-bundle.min.js + + + # 赫蹏 (Heti) - 专为中文网页内容设计的排版样式增强 + # https://github.com/sivan/heti + heti: + enable: false + css: https://unpkg.com/heti/umd/heti.min.css + js: https://unpkg.com/heti/umd/heti-addon.min.js + style: darkmode: auto # auto / always / false diff --git a/layout/_partial/head.ejs b/layout/_partial/head.ejs index 6cbe841..0de8099 100755 --- a/layout/_partial/head.ejs +++ b/layout/_partial/head.ejs @@ -51,6 +51,7 @@ function og_args() { + @@ -61,6 +62,15 @@ function og_args() { <%- generate_title() %> + <% if (theme.heti) { %> + + + + <% } %> + <% if (theme.open_graph && theme.open_graph.enable) { %> <%- open_graph(og_args()) %> <% } %> diff --git a/layout/_partial/main/post_list/post_card.ejs b/layout/_partial/main/post_list/post_card.ejs index 0f1c01f..a6bbe90 100755 --- a/layout/_partial/main/post_list/post_card.ejs +++ b/layout/_partial/main/post_list/post_card.ejs @@ -40,7 +40,7 @@ function div_default() { el += ''; // 摘要 - el += '
'; + el += '
'; el += '

'; if (post.excerpt) { el += strip_html(post.excerpt); diff --git a/layout/post.ejs b/layout/post.ejs index f65960b..e1ddffd 100755 --- a/layout/post.ejs +++ b/layout/post.ejs @@ -16,7 +16,7 @@ function layoutTitle() { %> <% let post = page; %> <%- partial('_partial/main/navbar/breadcrumb') %> -

<%- scrollreveal() %>'> +
<%- scrollreveal() %>'> <%- layoutTitle() %> <%- post.content %> <%- partial('_partial/main/article/article_footer') %>