diff --git a/_config.yml b/_config.yml index 6ab0e59..976c33f 100755 --- a/_config.yml +++ b/_config.yml @@ -24,7 +24,8 @@ widgets: - categories # 显示分类 - tagcloud # 显示tags # - socials # 显示自己的社交信息 - # - music # 显示自己的网易云歌单 + - music # 显示自己的网易云歌单 + - links # 显示友链 # 右边的联系信息小窗口 contacts: @@ -41,6 +42,13 @@ contacts: # badget: "@xaoxuu" # url: https://www.twitter.com/xaoxuu +# 侧边栏的友链 +links: +- name: Jarvis Wu + url: https://changwenwu.github.io +- name: Justin Yang + url: http://lifestyle1.cn/ + # 页面底部的社交信息 social: @@ -60,7 +68,7 @@ social: # 推荐文章 npm install hexo-recommended-posts --save recommended_posts: - enabled: true + enabled: true # Search search: @@ -80,14 +88,8 @@ search: # baidu baidu_api_id: -# friends link -links: - - # Less less: compress: true - - diff --git a/layout/_partial/article.ejs b/layout/_partial/article.ejs index c13344b..ff1aea7 100755 --- a/layout/_partial/article.ejs +++ b/layout/_partial/article.ejs @@ -71,7 +71,7 @@ <% if (post.comments) { %> <% if (config.livere_shortname || config.valine){ %> -
你可能感兴趣的文章
+你可能感兴趣的文章
<% post_list.forEach(function(link) { %>- <%= link.title %>
diff --git a/layout/_widget/categories.ejs b/layout/_widget/categories.ejs
index 57c86f2..5a2abfd 100755
--- a/layout/_widget/categories.ejs
+++ b/layout/_widget/categories.ejs
@@ -1,5 +1,5 @@
-分类
+ 分类
<% if (site.categories.length){ %>
diff --git a/layout/_widget/links.ejs b/layout/_widget/links.ejs index e28c5f0..0ed78ee 100755 --- a/layout/_widget/links.ejs +++ b/layout/_widget/links.ejs @@ -1,10 +1,10 @@
-Links
+ 友链
-音乐
+ 音乐
diff --git a/layout/_widget/socials.ejs b/layout/_widget/socials.ejs
index df62332..381fe02 100755
--- a/layout/_widget/socials.ejs
+++ b/layout/_widget/socials.ejs
@@ -1,9 +1,9 @@
-联系
+ 联系
<% (theme.links||[]).forEach(function(item){ %> --
-
<%= item.name %>
+ -
+
<%= item.name %>
<% }); %>
diff --git a/layout/_widget/music.ejs b/layout/_widget/music.ejs index a66983c..207840b 100755 --- a/layout/_widget/music.ejs +++ b/layout/_widget/music.ejs @@ -1,5 +1,5 @@<% (theme.contacts||[]).forEach(function(item){ %> --
+
-
<%= item.name %>
<%= item.badget %>
diff --git a/layout/_widget/tagcloud.ejs b/layout/_widget/tagcloud.ejs
index 5318418..152df3f 100755
--- a/layout/_widget/tagcloud.ejs
+++ b/layout/_widget/tagcloud.ejs
@@ -1,6 +1,6 @@
<% if (site.tags.length){ %>
- 标签
+ 标签
<%- tagcloud(site.tags, {
min_font: 14,
diff --git a/source/less/_archive.less b/source/less/_archive.less
index eece7ec..ef949f3 100755
--- a/source/less/_archive.less
+++ b/source/less/_archive.less
@@ -4,9 +4,14 @@
position: relative;
.archive-year {
font-size: @base-font-size;
- margin: 1em 0;
+ margin-top: 4em;
+ margin-bottom: 1em;
+ &:first-child{
+ margin-top: 0em;
+ padding-top: 0;
+ }
h2 {
-
+ margin-top: 1em;
}
a {
color: @text-color;
@@ -26,7 +31,6 @@
color: @text-color;
flex: none;
font-size: @small-font-size;
- // padding-right: 10px;
padding: .5em .5em .5em 3em;
@media (max-width: @on-phone) {
padding: .5em .5em .5em 0;
diff --git a/source/less/_article.less b/source/less/_article.less
index e0b2324..7d2f960 100755
--- a/source/less/_article.less
+++ b/source/less/_article.less
@@ -95,10 +95,6 @@
font-weight: normal;
margin-top: 1.5em;
margin-bottom: 1em;
- &:first-child{
- margin-top: 0;
- padding-top: 0;
- }
&.title {
left: 0;
&:before {
@@ -109,13 +105,12 @@
h1, h2 {
color: @text-color-theme;
margin-top: 2em;
- &:first-child{
- margin-top: 0;
- padding-top: 0;
- }
}
- h1, h2, h3 {
-
+ h3, h4, h5, h6 {
+ &:first-child{
+ margin-top: 0;
+ padding-top: 0;
+ }
}
h1 {
font-size: @font-size-h1;