diff --git a/_config.yml b/_config.yml index 37b2d48..ed2919f 100755 --- a/_config.yml +++ b/_config.yml @@ -34,32 +34,23 @@ services: ############################### 杂项 ############################### -# 这里的widgets字段是对widget的默认设置,如需修改请参照文档在主目录的config中写。 -widgets: - # 文章分类的默认配置 - category: - icon: fas fa-folder-open - title: "博文分类" - # 文章标签的默认配置 - tagcloud: - icon: fas fa-fire - title: "热门话题" - # 文章目录的默认配置 - toc: - icon: fas fa-list - title: "目录" - # 音乐控件的默认配置 - music: - display: # 批量控制哪一类页面显示 - home: false # 在主页是否显示 - tag: false # 在标签页面是否显示 - category: false # 在分类页面是否显示 - archive: false # 在归档页面是否显示 - page: false # layout: page 的页面是否显示 - links: true # layout: links 的页面是否显示 - post: true # layout: post 的页面是否显示 - - +# 音乐控件的默认配置,如果sidebar或者page里没有提供,就取这里的参数 +music: + color: '#1BCDFC' # 主题色 + mode: circulation # random (随机) single (单曲) circulation (列表循环) order (列表) + server: netease # netease(网易云音乐)tencent(QQ音乐) xiami(虾米) kugou(酷狗) + type: playlist # song (单曲) album (专辑) playlist (歌单) search (搜索) + id: 746319661 # 歌曲/专辑/歌单 ID + volume: 0.7 # 音量, 0~1 + autoplay: false # 自动播放 + display: # 批量控制哪一类页面显示 + home: false # 在主页是否显示 + tag: false # 在标签页面是否显示 + category: false # 在分类页面是否显示 + archive: false # 在归档页面是否显示 + page: false # layout: page 的页面是否显示 + links: true # layout: links 的页面是否显示 + post: true # layout: post 的页面是否显示 # 推荐文章 recommended_posts: diff --git a/languages/en.yml b/languages/en.yml new file mode 100755 index 0000000..dc664f9 --- /dev/null +++ b/languages/en.yml @@ -0,0 +1,41 @@ +sidebar: + category: Categories + tagcloud: Tag Cloud + toc: Table of Contents +post: + read_more: Read more + sticky: Sticky + comments: Comments + comments_placeholder: Unable to load comment system, please make sure your network can access + related_posts: Related Posts + copy_button: Copy + copy_success: Copied + copy_failure: Copy failed + prev_page: Previous + next_page: Next + copyright: + author: Post author + link: Post link + license_title: Copyright Notice + license_content: "All articles in this blog are licensed under %s unless stating additionally." +footer: + license: 'Blog content follows the [Attribution-NonCommercial-ShareAlike 4.0 International (CC BY-NC-SA 4.0)](https://creativecommons.org/licenses/by-nc-sa/4.0/deed.en)' + use: Use + theme: as theme + total_views: total visits + total_visitors: total visitors + times: times +search: + placeholder: Search +symbol: + comma: ", " + period: ". " + colon: ": " + brackets_l: "(" + brackets_r: ")" +# 下面这是博主相关的 +navbar: + home: Home + blogs: Blogs + archives: Archives + friends: Friends diff --git a/languages/zh-CN.yml b/languages/zh-CN.yml new file mode 100755 index 0000000..af8e19f --- /dev/null +++ b/languages/zh-CN.yml @@ -0,0 +1,41 @@ +sidebar: + category: 所有分类 + tagcloud: 热门标签 + toc: 文章目录 +post: + read_more: 阅读全文 + sticky: 置顶 + comments: 评论 + comments_placeholder: 无法加载评论系统,请确保您的网络能够正常访问 + related_posts: 相关文章 + copy_button: 复制 + copy_success: 复制成功 + copy_failure: 复制失败 + prev_page: 上一页 + next_page: 下一页 + copyright: + author: 本文作者 + link: 本文链接 + license_title: 版权声明 + license_content: "本博客所有文章除特别声明外,均采用 %s 许可协议。转载请注明出处!" +footer: + license: '博客内容遵循 [署名-非商业性使用-相同方式共享 4.0 国际 (CC BY-NC-SA 4.0)](https://creativecommons.org/licenses/by-nc-sa/4.0/deed.zh)' + use: 本站使用 + theme: 作为主题 + total_views: 总访问量为 + total_visitors: 总访客量 + times: 次 +search: + placeholder: 搜索 +symbol: + comma: "," + period: "。" + colon: ":" + brackets_l: "(" + brackets_r: ")" +# 下面这是博主相关的 +navbar: + home: 主页 + blogs: 博客 + archives: 归档 + friends: 朋友 diff --git a/languages/zh-HK.yml b/languages/zh-HK.yml new file mode 100755 index 0000000..c5e9c79 --- /dev/null +++ b/languages/zh-HK.yml @@ -0,0 +1,41 @@ +sidebar: + category: 所有分類 + tagcloud: 熱門標籤 + toc: 文章目錄 +post: + read_more: 閱讀全文 + sticky: 置頂 + comments: 評論 + comments_placeholder: 無法加載評論系統,請確保您的網絡能夠正常訪問 + related_posts: 相關文章 + copy_button: 複製 + copy_success: 複製成功 + copy_failure: 複製失敗 + prev_page: 上一頁 + next_page: 下一頁 + copyright: + author: 本文作者 + link: 文章連結 + license_title: 版權聲明 + license_content: "本網誌所有文章除特別聲明外,均採用 %s 許可協議。轉載請註明出處!" +footer: + license: '博客內容遵循 [姓名標示-非商業性-相同方式分享 4.0 國際 (CC BY-NC-SA 4.0)](https://creativecommons.org/licenses/by-nc-sa/4.0/deed.zh_TW)' + use: 本站使用 +  theme: 作為主題 +  total_views: 總訪問量為 +  total_visitors: 總訪客量為 +  times: 次 +search: + placeholder: 搜尋 +symbol: + comma: "," + period: "。" + colon: ":" + brackets_l: "(" + brackets_r: ")" +# 下面這是博主相關的 +navbar: + home: 主頁 + blogs: 博客 + archives: 歸檔 + friends: 朋友 diff --git a/languages/zh-TW.yml b/languages/zh-TW.yml new file mode 100755 index 0000000..45d70be --- /dev/null +++ b/languages/zh-TW.yml @@ -0,0 +1,41 @@ +sidebar: + category: 所有分類 + tagcloud: 熱門標籤 + toc: 文章目錄 +post: + read_more: 閱讀全文 + sticky: 置頂 + comments: 評論 + comments_placeholder: 無法加載評論系統,請確保您的網絡能夠正常訪問 + related_posts: 相關文章 + copy_button: 複製 + copy_success: 複製成功 + copy_failure: 複製失敗 + prev_page: 上一頁 + next_page: 下一頁 + copyright: + author: 本文作者 + link: 文章連結 + license_title: 版權聲明 + license_content: "本網誌所有文章除特別聲明外,均採用 %s 許可協議。轉載請註明出處!" +footer: + license: '博客內容遵循 [姓名標示-非商業性-相同方式分享 4.0 國際 (CC BY-NC-SA 4.0)](https://creativecommons.org/licenses/by-nc-sa/4.0/deed.zh_TW)' + use: 本站使用 + theme: 作為主題 + total_views: 總訪問量為 + total_visitors: 總訪客量為 + times: 次 +search: + placeholder: 搜尋 +symbol: + comma: "," + period: "。" + colon: ":" + brackets_l: "(" + brackets_r: ")" +# 下面這是博主相關的 +navbar: + home: 主頁 + blogs: 博客 + archives: 歸檔 + friends: 朋友 diff --git a/layout/_partial/archive.ejs b/layout/_partial/archive.ejs index 196769a..fcef633 100755 --- a/layout/_partial/archive.ejs +++ b/layout/_partial/archive.ejs @@ -1,6 +1,6 @@ <% if (is_tag()) { %> <% } else if (is_archive()) { %> <% } else if (is_category()) { %> <% } %> @@ -27,7 +27,7 @@ <% if (page.prev != 0) { %> <% } %> @@ -37,7 +37,7 @@ <% if (page.next != 0) { %> <% } %> diff --git a/layout/_partial/article.ejs b/layout/_partial/article.ejs index 7611055..9f0a88a 100755 --- a/layout/_partial/article.ejs +++ b/layout/_partial/article.ejs @@ -7,7 +7,7 @@ <% if(post.layout == 'post'){ %>