1. fix algolia_search bug #1

2. add read mode
This commit is contained in:
hwy0127@gmail.com
2019-06-11 15:05:27 +08:00
Unverified
parent ee434f7dc4
commit 66d4f279f9
13 changed files with 362 additions and 291 deletions

View File

@@ -107,8 +107,7 @@
.webinfo
.webinfo_item
.webinfo_article_name= _p('aside.card_webinfo.article_name') + " :"
.webinfo_article_count= site.posts.length
.webinfo_article_count= site.posts.length
if theme.runtimeshow.enable
.webinfo_item
.webinfo_runtime_name= _p('aside.card_webinfo.runtime_name') + " :"

View File

@@ -1,17 +1,40 @@
hr
#post-comment
.comment_headling
i.fa.fa-comments.fa-fw(aria-hidden="true")
=" "
span= _p('comment')
if theme.disqus.enable
if theme.disqus.enable
hr
#post-comment
.comment_headling
i.fa.fa-comments.fa-fw(aria-hidden="true")
=" "
span= _p('comment')
include ./disqus.pug
else if theme.laibili && theme.laibili.enable
else if theme.laibili && theme.laibili.enable
hr
#post-comment
.comment_headling
i.fa.fa-comments.fa-fw(aria-hidden="true")
=" "
span= _p('comment')
include ./laibili.pug
else if theme.gitment && theme.gitment.enable
else if theme.gitment && theme.gitment.enable
hr
#post-comment
.comment_headling
i.fa.fa-comments.fa-fw(aria-hidden="true")
=" "
span= _p('comment')
include ./gitment.pug
else if theme.gitalk && theme.gitalk.enable
else if theme.gitalk && theme.gitalk.enable
hr
#post-comment
.comment_headling
i.fa.fa-comments.fa-fw(aria-hidden="true")
=" "
span= _p('comment')
include ./gitalk.pug
else if theme.valine && theme.valine.enable
else if theme.valine && theme.valine.enable
hr
#post-comment
.comment_headling
i.fa.fa-comments.fa-fw(aria-hidden="true")
=" "
span= _p('comment')
include ./valine.pug

View File

@@ -1,4 +1,8 @@
section#rightside.rightside
if theme.readmode.enable && is_post()
i#readmode.fa.fa-book
i#font_plus.fa.fa-plus
i#font_minus.fa.fa-minus
if page.comments !== false && !is_home() && !is_archive()
i#to_comment.fa.fa-comments-o
if theme.translate && theme.translate.enable