diff --git a/_config.yml.example b/_config.yml.example index 8469eb0..76ddd94 100644 --- a/_config.yml.example +++ b/_config.yml.example @@ -9,6 +9,7 @@ menu: # Customize customize: logo: + enabled: true width: 40 height: 40 url: images/logo.png @@ -17,10 +18,10 @@ customize: avatar: css/images/avatar.png gravatar: # Gravatar email address, if you enable Gravatar, your avatar config will be overriden author: PPOffice - author_title: 'Web Developer & Designer' - location: 'Harbin, China' + author_title: Web Developer & Designer + location: Harbin, China follow: https://github.com/ppoffice/ - highlight: androidstudio + highlight: monokai sidebar: right # sidebar position, options: left, right thumbnail: true # enable posts thumbnail, options: true, false favicon: # path to favicon @@ -43,7 +44,7 @@ widgets: # Search search: swiftype: # enter swiftype install key here - baidu: false # you need to disable other search engines to use Baidu search, options: true, false + baidu: true # you need to disable other search engines to use Baidu search, options: true, false # Comment comment: diff --git a/layout/comment/counter.ejs b/layout/comment/counter.ejs new file mode 100644 index 0000000..326f8cd --- /dev/null +++ b/layout/comment/counter.ejs @@ -0,0 +1,9 @@ +<% if (post.comments) { %> + <% if (theme.comment.disqus) { %> + <%= __('article.comments') %> + <% } else if (theme.comment.duoshuo) { %> + <%= __('article.comments') %> + <% } else if (theme.comment.youyan) { %> + <%= __('article.comments') %> + <% } %> +<% } %> \ No newline at end of file diff --git a/layout/comment/disqus.ejs b/layout/comment/disqus.ejs index aa2ca40..95aa0ee 100644 --- a/layout/comment/disqus.ejs +++ b/layout/comment/disqus.ejs @@ -1,19 +1,22 @@ -