diff --git a/_config.yml b/_config.yml index 3bd344a..0be0715 100755 --- a/_config.yml +++ b/_config.yml @@ -1,22 +1,25 @@ # >> 主题配置 --------------------------------------------------------------------- +# 字体 在这里选好你需要的字体:https://fonts.google.com,然后在_defines.less中修改font_family。 +google_fonts: 'Ubuntu|Ubuntu+Mono' + # 导航栏 nav_menu: - name: 主页 - slug: about - icon: fa-home - url: / + slug: + icon: fas fa-home + url: https://xaoxuu.com/ - name: 项目 - slug: projects - icon: fa-cube - url: https://xaoxuu.com/proj + slug: + icon: fas fa-flask + url: https://xaoxuu.com/projects/ - name: 博客 slug: home - icon: fa-rss + icon: fas fa-rss url: / - name: 归档 slug: archives - icon: fa-archive - url: /archives + icon: fas fa-archive + url: /archives/ # 右边的小窗口,不想显示哪一项的注释掉对应的即可 widgets: @@ -24,8 +27,8 @@ widgets: author: enable: true avatar: https://xaoxuu.com/assets/img/avatar.jpg # 头像,如果config中已经设置avatar了,这里可以不用写 - title: 某知名博主 # 博客名、头衔等等,居中显示 - motto: 某知名博主的座右铭啊哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈。 # 格言座右铭等等 + title: # 博客名、头衔等等,居中显示 + motto: # 格言座右铭等等 social: true # 是否显示社交信息(内容同页脚的社交信息) # 显示文章分类 categories: true @@ -36,50 +39,23 @@ widgets: # 显示友链 links: - name: xaoxuu's blog + avatar: https://xaoxuu.com/assets/img/avatar.jpg url: https://blog.xaoxuu.com # 显示目录(在文章中设置toc:false可以隐藏单篇文章的目录) toc: true # 页脚社交信息 social: - - icon: fa-envelope + - icon: fas fa-envelope url: mailto:me@xaoxuu.com - - icon: fa-github + - icon: fab fa-github url: https://github.com/xaoxuu - - icon: fa-instagram + - icon: fab fa-instagram url: - - icon: fa-google-plus + - icon: fab fa-twitter url: - - icon: fa-twitter - url: - - icon: fa-music + - icon: fas fa-music url: https://music.163.com/#/user/home?id=63035382 - - icon: fa-rss - url: atom - - icon: fa-telegram - url: - - icon: fa-vimeo - url: - - icon: fa-gitlab - url: - - icon: fa-linkedin - url: - - icon: fa-snapchat - url: - - icon: fa-steam - url: - - icon: fa-spotify - url: - - icon: fa-tumblr - url: - - icon: fa-youtube - url: - - icon: fa-weibo - url: - - icon: fa-weixin - url: - - icon: fa-qq - url: # 推荐文章 diff --git a/layout/_partial/archive.ejs b/layout/_partial/archive.ejs index eb04ef2..b428090 100755 --- a/layout/_partial/archive.ejs +++ b/layout/_partial/archive.ejs @@ -18,7 +18,7 @@

- + 还剩最后一步就成功了

@@ -43,7 +43,7 @@ <% if (page.prev != 0) { %>

<% } %> @@ -53,7 +53,7 @@ <% if (page.next != 0) { %> <% } %> diff --git a/layout/_partial/article.ejs b/layout/_partial/article.ejs index 7098515..4670d21 100755 --- a/layout/_partial/article.ejs +++ b/layout/_partial/article.ejs @@ -1,16 +1,17 @@
-

- <% if(post.title){ %> - <%= post.title %> - <% } else if (post.date) { %> - <%= date(post.date, config.date_format) %> - <% } %> -

-
@@ -20,26 +21,31 @@ <%- post.content %> - <% if (post.tags && post.tags && post.tags.each) { %> - - <% } %>
- + + <% if (post.tags && post.tags.length && post.tags.each) { %> + <% + var items = []; + post.tags.each(function(item){ + items.push('' + item.name + ''); + }); + %> +
+ + <%- items.join(', ') %> +
+ <% } %>
<% if(post.prev || post.next){ %>
<% if(post.prev){ %> -
+
-
 上一篇
+
 上一篇

- <% if (post.prev.tags && post.prev.tags.length) { %> + <% if (post.prev.tags && post.prev.tags.length && post.prev.tags.each) { %> + <% + var items = []; + post.prev.tags.each(function(item){ + items.push('' + item.name + ''); + }); + %>
- <% post.prev.tags.each(function(item){ %> - <%=item.name %> - <%})%> + + <%- items.join(', ') %>
<% } %>
@@ -62,7 +73,7 @@ <% if(post.next){ %>
@@ -103,7 +119,7 @@ <% if (post.comments) { %> <% if (config.disqus_shortname) { %> -

 Disqus评论

+

 Disqus评论

⚠️ 无法加载评论系统,请确保您的网络能够正常访问 Disqus 。 @@ -112,7 +128,7 @@ <% } %> <% if (config.livere_uid){ %> -

 LiveRe评论

+

 LiveRe评论

@@ -122,18 +138,13 @@ <% if (config.valine){ %> <% if (config.valine.enable && config.valine.appId && config.valine.appKey){ %> -

 Valine评论

+

 Valine评论

-
文明评论,请勿灌水。为了便于区分,请您在留言时至少填写一下 昵称 啊。
- 与主题相关的内容及评论测试请到 https://xaoxuu.com/wiki/material-x/ 留言, - <% if (config.about_url){ %> - 其它想要对作者说的话可以到 <%= config.about_url %> 留言。 - <% } %> - 留言时填写邮箱可以在被回复时收到邮件提醒,也可以显示Gravatar头像,网址填写个人主页或者博客的作用是别人点击你的昵称会跳转到你的博客,为你增加访问量。
+
文明评论,请勿灌水。为了便于区分和接收回复提醒,请您在留言时填写一下昵称邮箱
- +
diff --git a/layout/_partial/categories.ejs b/layout/_partial/categories.ejs index e8c31fa..d841558 100755 --- a/layout/_partial/categories.ejs +++ b/layout/_partial/categories.ejs @@ -2,10 +2,11 @@ <% var cats = []; post.categories.forEach(function(cat){ - cats.push('' + cat.name + ''); + cats.push('' + cat.name + ''); }); %>
- <%- cats.join(', ') %> + + <%- cats.join(' / ') %>
<% } %> diff --git a/layout/_partial/footer.ejs b/layout/_partial/footer.ejs index 98910ba..aa1234e 100755 --- a/layout/_partial/footer.ejs +++ b/layout/_partial/footer.ejs @@ -3,7 +3,7 @@ @@ -11,7 +11,7 @@
本站使用 Material X 作为主题, - 总访问量为 次。 + 总访问量为 次。
diff --git a/layout/_partial/head.ejs b/layout/_partial/head.ejs index 827e9e1..a9fba3a 100755 --- a/layout/_partial/head.ejs +++ b/layout/_partial/head.ejs @@ -26,8 +26,13 @@ - - + <% if (config.google_fonts){ %> + + <% } else { %> + + <% } %> + + <%- css('style.css') %> <% } %> diff --git a/layout/_partial/side.ejs b/layout/_partial/side.ejs index 64a39f7..21c00c4 100755 --- a/layout/_partial/side.ejs +++ b/layout/_partial/side.ejs @@ -8,13 +8,13 @@ <% if (config.widgets.tagcloud){ %> <%- partial('../_widget/tagcloud') %> <% } %> + <% if (config.widgets.toc){ %> + <%- partial('../_widget/toc') %> + <% } %> <% if (config.widgets.musicid){ %> <%- partial('../_widget/music') %> <% } %> <% if (config.widgets.links){ %> <%- partial('../_widget/links') %> <% } %> - <% if (config.widgets.toc){ %> - <%- partial('../_widget/toc') %> - <% } %> <% } %> diff --git a/layout/_widget/author.ejs b/layout/_widget/author.ejs index 5cd2cb8..6c7b43a 100755 --- a/layout/_widget/author.ejs +++ b/layout/_widget/author.ejs @@ -2,7 +2,7 @@
<% if(config.widgets.author.avatar || config.avatar) { %>
- +
<%} %> <% if (config.widgets.author.title || config.widgets.author.motto){ %> @@ -11,10 +11,7 @@

<%= config.widgets.author.title %>

<% } %> <% if (config.widgets.author.motto){ %> -
- - <%= config.widgets.author.motto %> -
+

<%= config.widgets.author.motto %>

<% } %>
<% } %> @@ -22,7 +19,7 @@ diff --git a/layout/_widget/categories.ejs b/layout/_widget/categories.ejs index 34bd3df..1b11fe0 100755 --- a/layout/_widget/categories.ejs +++ b/layout/_widget/categories.ejs @@ -1,5 +1,7 @@
-
  分类
+
+
  分类
+
<% if (site.categories.length){ %>
    diff --git a/layout/_widget/links.ejs b/layout/_widget/links.ejs index a9a93dc..bc94ba6 100755 --- a/layout/_widget/links.ejs +++ b/layout/_widget/links.ejs @@ -1,24 +1,24 @@