From 1e2c500d576656c93d5b0fce67762c6c550ca6af Mon Sep 17 00:00:00 2001 From: tuchg Date: Thu, 21 May 2020 22:33:06 +0800 Subject: [PATCH 1/3] add some custom options \n update gitalk and add 2 options --- _config.yml | 7 +++++++ layout/_partial/item-post.ejs | 4 ++-- layout/_partial/post/nav.ejs | 3 +-- layout/_partial/sidebar-toc.ejs | 2 +- layout/_script/_comment/gitalk.ejs | 7 +++++-- 5 files changed, 16 insertions(+), 7 deletions(-) diff --git a/_config.yml b/_config.yml index 1836723f..7d63ce1c 100644 --- a/_config.yml +++ b/_config.yml @@ -44,6 +44,9 @@ config: menu_highlight: false # 是否开启当前菜单高亮显示 thumbnail: false # enable posts thumbnail, options: true, false excerpt_link: Read More + #New + isNewTabLinks: false #是否链接打开新标签页 + autoUnfold: true # 默认展开文章目录 # Pagination pagination: @@ -126,6 +129,9 @@ comment: repo: #必须. GitHub repository. ClientID: #必须. GitHub Application Client ID. ClientSecret: #必须. GitHub Application Client Secret. + enableHotKey: true + language: zh-CN + valine: # Valine. https://valine.js.org appid: # your leancloud application appid appkey: # your leancloud application appkey @@ -184,6 +190,7 @@ fb_app_id: # profile profile: enabled: true # Whether to show profile bar + articleSelfBlock: false # 关闭文章下方的自我介绍 avatar: images/avatar.jpg gravatar: # Gravatar email address, if you enable Gravatar, your avatar config will be overriden author: 昵称 diff --git a/layout/_partial/item-post.ejs b/layout/_partial/item-post.ejs index 13815143..32da9a5c 100644 --- a/layout/_partial/item-post.ejs +++ b/layout/_partial/item-post.ejs @@ -1,5 +1,5 @@ <% if (type == 'link'){ %> - target="_blank" <%}%> itemprop="url">     <%= post.title %> @@ -25,7 +25,7 @@ <% } %> <% } else { %> - target="_blank" <%}%> itemprop="url">     <%= post.title %> diff --git a/layout/_partial/post/nav.ejs b/layout/_partial/post/nav.ejs index f897a361..217c4a40 100644 --- a/layout/_partial/post/nav.ejs +++ b/layout/_partial/post/nav.ejs @@ -14,8 +14,7 @@ <% } %> <% if (!index && theme.config.toc && post.toc) { %>
  • -