diff --git a/_config.yml b/_config.yml index f99af5b..22e135c 100755 --- a/_config.yml +++ b/_config.yml @@ -8,7 +8,7 @@ info: name: Material X docs: https://xaoxuu.com/wiki/material-x/ # 主题的CDN地址。如需启用CDN,请在主目录的config中设置,详见文档。 - cdn: https://cdn.jsdelivr.net/gh/xaoxuu/cdn-material-x@19.2.21/ + cdn: https://cdn.jsdelivr.net/gh/xaoxuu/cdn-material-x@19.2.23/ ############################### 主题样式 ############################### diff --git a/layout/_partial/article.ejs b/layout/_partial/article.ejs index 5072f9c..643b385 100755 --- a/layout/_partial/article.ejs +++ b/layout/_partial/article.ejs @@ -6,23 +6,29 @@ <% if(post.layout == 'post'){ %> <% } %> diff --git a/layout/_partial/meta.ejs b/layout/_partial/meta.ejs index 0b7b317..374e93b 100644 --- a/layout/_partial/meta.ejs +++ b/layout/_partial/meta.ejs @@ -29,35 +29,62 @@ <% } %> <% } %> - <% if(post.date && (!post.meta || post.meta.date != false)){ %> - - <% } %> - - <% if(post.categories && (!post.meta || post.meta.categories != false)){ %> - <%- partial('categories',{post:post}) %> - <% } %> - - <% if(!isPostList && theme.services && (!post.meta || post.meta.counter != false)){ %> - <% if (theme.services.leancloud_visitors == true && config.leancloud_visitors && config.leancloud_visitors.app_id && config.leancloud_visitors.app_key) { %> -
- -   - +
+ <% if(config.author && (!post.meta || post.meta.author != false)){ %> + - <% } else if (theme.services.busuanzi == true) { %> -
-   + <% } %> + <% if(post.date && (!post.meta || post.meta.date != false)){ %> + <% } %> - <% } %> - - <% if(isPostList && post.top && (!post.meta || post.meta.top != false)){ %> -
-  <%- post.top != true ? post.top : __('post.top') %> -
- <% } %> - + <% if(post.categories && (!post.meta || post.meta.categories != false)){ %> + <% if (post.categories && post.categories.length && post.categories.forEach){ %> + <% + var cats = []; + var path; + post.categories.forEach(function(cat){ + cats.push(cat.name); + path = cat.path; + }); + %> + + <% } %> + <% } %> + <% if(!isPostList && theme.services && (!post.meta || post.meta.counter != false)){ %> + <% if (theme.services.busuanzi == true) { %> + + <% } %> + <% } %> + <% if(isPostList && post.top && (!post.meta || post.meta.top != false)){ %> +
+ + + <%- post.top != true ? post.top : __('post.top') %> + +
+ <% } %> +
+
diff --git a/layout/_third-party/share.ejs b/layout/_third-party/share.ejs index 71c6730..da93d7f 100644 --- a/layout/_third-party/share.ejs +++ b/layout/_third-party/share.ejs @@ -1,6 +1,6 @@ <% if (theme.services && theme.services.share == true && (config.share || config.mob) && page.layout == 'post' && page.share != false) { %> -
- +