hexo-theme-clarity 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/_config.yml +6 -9
- package/layout/_widget/info.pug +6 -5
- package/package.json +2 -1
- package/.travis.yml +0 -5
package/_config.yml
CHANGED
|
@@ -125,28 +125,25 @@ widgets: ## Seven widgets in sidebar provided: search, info, category, tag, rece
|
|
|
125
125
|
- info
|
|
126
126
|
- category
|
|
127
127
|
- tag
|
|
128
|
-
- recent_posts
|
|
129
|
-
- recent_comments
|
|
130
|
-
- links
|
|
128
|
+
# - recent_posts
|
|
129
|
+
# - recent_comments
|
|
130
|
+
# - links
|
|
131
131
|
|
|
132
132
|
info:
|
|
133
133
|
avatar: /img/avatar.png
|
|
134
134
|
discription: To be a better man.
|
|
135
135
|
outlinkitem:
|
|
136
|
-
- name:
|
|
137
|
-
outlink: https://twitter.com/username
|
|
138
|
-
message: Twitter
|
|
139
|
-
- name: github
|
|
136
|
+
- name: github # fa-{name}
|
|
140
137
|
outlink: https://github.com/username
|
|
141
138
|
message: Github
|
|
142
139
|
- name: envelope
|
|
143
140
|
outlink: mailto:admin@domain.com
|
|
144
141
|
message: Email
|
|
145
|
-
color: '#007bff'
|
|
142
|
+
# color: '#007bff'
|
|
146
143
|
- name: rss
|
|
147
144
|
outlink: /atom.xml
|
|
148
145
|
message: RSS
|
|
149
|
-
color: '#ff5722'
|
|
146
|
+
# color: '#ff5722'
|
|
150
147
|
|
|
151
148
|
links:
|
|
152
149
|
- title: site-name1
|
package/layout/_widget/info.pug
CHANGED
|
@@ -14,8 +14,9 @@
|
|
|
14
14
|
.site-info__item
|
|
15
15
|
div.item__label 分类
|
|
16
16
|
div.item__value= site.categories.length
|
|
17
|
-
.
|
|
18
|
-
-
|
|
19
|
-
- var
|
|
20
|
-
|
|
21
|
-
|
|
17
|
+
if theme.info.outlinkitem
|
|
18
|
+
.social-info
|
|
19
|
+
- for (var item of theme.info.outlinkitem)
|
|
20
|
+
- var styled= item.color ? {color: item.color} : undefined
|
|
21
|
+
a.info-icon(href=item.outlink, title=item.message, target='_blank', style=styled)
|
|
22
|
+
i.fa(class='fa-' + item.name)
|
package/package.json
CHANGED