hexo-theme-clarity 1.0.0
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/.travis.yml +5 -0
- package/LICENSE +7 -0
- package/README-en.md +319 -0
- package/README.md +343 -0
- package/_config.yml +180 -0
- package/languages/de-DE.yml +22 -0
- package/languages/en.yml +37 -0
- package/languages/es-ES.yml +22 -0
- package/languages/fr-FR.yml +22 -0
- package/languages/ko.yml +22 -0
- package/languages/nb-NO.yml +38 -0
- package/languages/ru.yml +22 -0
- package/languages/zh-CN.yml +38 -0
- package/languages/zh-TW.yml +38 -0
- package/layout/_partial/after_footer.pug +60 -0
- package/layout/_partial/comments.pug +183 -0
- package/layout/_partial/darkmode.pug +13 -0
- package/layout/_partial/footer.pug +26 -0
- package/layout/_partial/head.pug +61 -0
- package/layout/_partial/helpers.pug +21 -0
- package/layout/_partial/mathjax.pug +6 -0
- package/layout/_partial/mathjax2.pug +1 -0
- package/layout/_partial/paginator.pug +3 -0
- package/layout/_partial/post_nav.pug +6 -0
- package/layout/_partial/tag.pug +2 -0
- package/layout/_partial/totop.pug +5 -0
- package/layout/_partial/wordcount.pug +11 -0
- package/layout/_widget/category.pug +4 -0
- package/layout/_widget/copyright.pug +27 -0
- package/layout/_widget/donate.pug +19 -0
- package/layout/_widget/info.pug +21 -0
- package/layout/_widget/links.pug +6 -0
- package/layout/_widget/recent_comments.pug +12 -0
- package/layout/_widget/recent_posts.pug +4 -0
- package/layout/_widget/search.pug +26 -0
- package/layout/_widget/tag.pug +5 -0
- package/layout/archive.pug +24 -0
- package/layout/base-without-sidebar.pug +38 -0
- package/layout/base.pug +47 -0
- package/layout/blogroll.pug +21 -0
- package/layout/index.pug +50 -0
- package/layout/page.pug +12 -0
- package/layout/post.pug +60 -0
- package/layout/single-column.pug +10 -0
- package/layout/tagcloud.pug +23 -0
- package/layout/timeline.pug +28 -0
- package/package.json +15 -0
- package/source/css/copycode.scss +32 -0
- package/source/css/copyright.scss +43 -0
- package/source/css/donate.scss +308 -0
- package/source/css/search.scss +13 -0
- package/source/css/style.scss +2536 -0
- package/source/img/alipay.svg +1 -0
- package/source/img/avatar.png +0 -0
- package/source/img/bei.png +0 -0
- package/source/img/bitcoin.svg +1 -0
- package/source/img/github.svg +1 -0
- package/source/img/like.svg +1 -0
- package/source/img/paypal.svg +1 -0
- package/source/img/wechat.svg +1 -0
- package/source/js/codeblock-resizer.js +51 -0
- package/source/js/copycode.js +30 -0
- package/source/js/copyright.js +17 -0
- package/source/js/donate.js +49 -0
- package/source/js/fancybox.js +19 -0
- package/source/js/love.js +1 -0
- package/source/js/recent-comments.js +54 -0
- package/source/js/search.js +101 -0
- package/source/js/share.js +60 -0
- package/source/js/smartresize.js +32 -0
- package/source/js/totop.js +12 -0
package/.travis.yml
ADDED
package/LICENSE
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
Copyright (c) 2025 guozhenyi
|
|
2
|
+
|
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
4
|
+
|
|
5
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
6
|
+
|
|
7
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
package/README-en.md
ADDED
|
@@ -0,0 +1,319 @@
|
|
|
1
|
+
# Clarity
|
|
2
|
+
|
|
3
|
+
[](https://github.com/guozhenyi/hexo-theme-clarity/blob/master/LICENSE)
|
|
4
|
+
|
|
5
|
+
[Preview](https://www.guozhenyi.com)
|
|
6
|
+
|
|
7
|
+
A clean Hexo theme template with great performance on different devices.
|
|
8
|
+
|
|
9
|
+
forked and modified from [maupassant](https://github.com/tufu9441/maupassant-hexo).
|
|
10
|
+
|
|
11
|
+
## Installation
|
|
12
|
+
Install theme and renderers:
|
|
13
|
+
|
|
14
|
+
```shell
|
|
15
|
+
$ git clone https://github.com/guozhenyi/hexo-theme-clarity.git themes/clarity
|
|
16
|
+
$ npm install hexo-renderer-pug --save
|
|
17
|
+
$ npm install hexo-renderer-sass-next --save
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
Then change your `theme` setting in `_config.yml` to `clarity`.
|
|
21
|
+
|
|
22
|
+
## Configuration
|
|
23
|
+
Default config:
|
|
24
|
+
|
|
25
|
+
```YAML
|
|
26
|
+
disqus:
|
|
27
|
+
enable: false ## If you want to use Disqus comment system, please set the value to true.
|
|
28
|
+
shortname: ## Your disqus_shortname, e.g. username
|
|
29
|
+
api: ## You can visit Disqus comments in China mainland without barriers using Disqus API, e.g. https://disqus.skk.moe/disqus/
|
|
30
|
+
apikey: ## Your API key obtained in Disqus API Application, e.g. yk00ZB1fjYGRkrCrDDRYDUjpp26GJWJiJRZQZ5SY0r3th5FMW6pnSzQMnWH7ua7r
|
|
31
|
+
admin: ## Username of your Disqus moderator, e.g. username
|
|
32
|
+
admin_label: ## The text of Disqus moderator badge, e.g. Mod
|
|
33
|
+
uyan: ## Your uyan_id. e.g. 1234567
|
|
34
|
+
livere: ## Your livere data-uid, e.g. MTAyMC8zMDAxOC78NTgz
|
|
35
|
+
changyan: ## Your changyan appid, e.g. cyrALsXc8
|
|
36
|
+
changyan_conf: ## Your changyan conf, e.g. prod_d8a508c2825ab57eeb43e7c69bba0e8b
|
|
37
|
+
gitalk: ## See: https://github.com/gitalk/gitalk
|
|
38
|
+
enable: false ## If you want to use Gitment comment system please set the value to true.
|
|
39
|
+
owner: ## Your GitHub ID, e.g. username
|
|
40
|
+
repo: ## The repository to store your comments, make sure you're the repo's owner, e.g. gitalk.github.io
|
|
41
|
+
client_id: ## GitHub client ID, e.g. 75752dafe7907a897619
|
|
42
|
+
client_secret: ## GitHub client secret, e.g. ec2fb9054972c891289640354993b662f4cccc50
|
|
43
|
+
admin: ## Github repo owner and collaborators, only these guys can initialize github issues.
|
|
44
|
+
valine: ## See: https://valine.js.org
|
|
45
|
+
enable: false ## If you want to use Valine comment system, please set the value to true.
|
|
46
|
+
appid: ## Your LeanCloud application App ID, e.g. pRBBL2JR4N7kLEGojrF0MsSs-gzGzoHsz
|
|
47
|
+
appkey: ## Your LeanCloud application App Key, e.g. tjczHpDfhjYDSYddzymYK1JJ
|
|
48
|
+
notify: false ## Mail notifier, see https://github.com/xCss/Valine/wiki/Valine-评论系统中的邮件提醒设置
|
|
49
|
+
verify: false ## Validation code.
|
|
50
|
+
placeholder: Just so so ## Comment box placeholders.
|
|
51
|
+
avatar: "mm" ## Gravatar type, see https://github.com/xCss/Valine/wiki/avatar-setting-for-valine
|
|
52
|
+
pageSize: 10 ## Number of comments per page.
|
|
53
|
+
guest_info: nick,mail,link ## Attributes of reviewers.
|
|
54
|
+
minivaline: ## See: https://github.com/MiniValine/MiniValine
|
|
55
|
+
enable: false ## If you want to use MiniValine comment system, please set the value to true.
|
|
56
|
+
appId: ## Your LeanCloud application App ID, e.g. pRBBL2JR4N7kLEGojrF0MsSs-gzGzoHsz
|
|
57
|
+
appKey: ## Your LeanCloud application App Key, e.g. tjczHpDfhjYDSYddzymYK1JJ
|
|
58
|
+
placeholder: Write a Comment ## Comment box placeholder.
|
|
59
|
+
adminEmailMd5: ## The MD5 of Admin Email to show Admin Flag.
|
|
60
|
+
math: true ## Support MathJax.
|
|
61
|
+
md: true ## Support Markdown.
|
|
62
|
+
# MiniValine's display language depends on user's browser or system environment
|
|
63
|
+
# If you want everyone visiting your site to see a uniform language, you can set a force language value
|
|
64
|
+
# Available values: en | zh-CN | (and many more)
|
|
65
|
+
# More i18n info: https://github.com/MiniValine/minivaline-i18n
|
|
66
|
+
lang:
|
|
67
|
+
waline: ## See: https://waline.js.org/
|
|
68
|
+
enable: false ## If you want to use Waline comment system, please set the value to true.
|
|
69
|
+
serverURL: ## Your server url, e.g. https://your-domain.vercel.app
|
|
70
|
+
pageSize: 30 ## The desired number of comments shown in each page.
|
|
71
|
+
wordLimit: 500 ## Limit the number of words in comments, 0 means no limit.
|
|
72
|
+
requiredMeta: ['nick','mail'] ## Required user information, e.g. ['nick','mail','link']
|
|
73
|
+
count: 5 ## The number comments displayed in the recent_comments widget, default is 10.
|
|
74
|
+
utterances: ## See: https://utteranc.es
|
|
75
|
+
enable: false ## If you want to use Utterances comment system, please set the value to true.
|
|
76
|
+
repo: ## The repository utterances will connect to, e.g. tufu9441/comments
|
|
77
|
+
identifier: title ## The mapping between blog posts and GitHub issues.
|
|
78
|
+
theme: github-light ## Choose an Utterances theme which matches your blog.
|
|
79
|
+
twikoo: ## See: https://twikoo.js.org
|
|
80
|
+
enable: false ## If you want to use twikoo comment system, please set the value to true.
|
|
81
|
+
envId: ## Tencent CloudBase envId
|
|
82
|
+
region: ## Tencent CloudBase region, e.g. ap-shanghai
|
|
83
|
+
path: ## Article path, e.g. window.location.pathname
|
|
84
|
+
|
|
85
|
+
google_search: true ## Use Google search, true/false.
|
|
86
|
+
baidu_search: false ## Use Baidu search, true/false.
|
|
87
|
+
swiftype: ## Your swiftype_key, e.g. m7b11ZrsT8Me7gzApciT
|
|
88
|
+
self_search: false ## Use a jQuery-based local search engine, true/false.
|
|
89
|
+
google_analytics: ## Your Google Analytics tracking id, e.g. UA-42425684-2
|
|
90
|
+
baidu_analytics: ## Your Baidu Analytics tracking id, e.g. 8006843039519956000
|
|
91
|
+
microsoft_clarity: ## Your Microsoft Clarity tracking id, e.g. zg2ctuea9j
|
|
92
|
+
fancybox: true ## If you want to use fancybox please set the value to true.
|
|
93
|
+
show_category_count: false ## If you want to show the count of categories in the sidebar widget please set the value to true.
|
|
94
|
+
toc_number: true ## If you want to add list number to toc please set the value to true.
|
|
95
|
+
shareto: false ## If you want to use the share button please set the value to true, and you must have hexo-helper-qrcode installed.
|
|
96
|
+
busuanzi: false ## If you want to use Busuanzi page views please set the value to true.
|
|
97
|
+
wordcount: false ## If you want to display the word counter and the reading time expected to spend of each post please set the value to true, and you must have hexo-wordcount installed.
|
|
98
|
+
widgets_on_small_screens: false ## Set to true to enable widgets on small screens.
|
|
99
|
+
canvas_nest:
|
|
100
|
+
enable: false ## If you want to use dynamic background please set the value to true, you can also fill the following parameters to customize the dynamic effect, or just leave them blank to keep the default effect.
|
|
101
|
+
color: ## RGB value of the color, e.g. "100,99,98"
|
|
102
|
+
opacity: ## Transparency of lines, e.g. "0.7"
|
|
103
|
+
zIndex: ## The z-index property of the background, e.g. "-1"
|
|
104
|
+
count: ## Quantity of lines, e.g. "150"
|
|
105
|
+
donate:
|
|
106
|
+
enable: false ## If you want to display the donate button after each post, please set the value to true and fill the following items on your need. You can also enable donate button in a page by adding a "donate: true" item to the front-matter.
|
|
107
|
+
github: ## GitHub URL, e.g. https://github.com/Kaiyuan/donate-page
|
|
108
|
+
alipay_qr: ## Path of Alipay QRcode image, e.g. /img/AliPayQR.png
|
|
109
|
+
wechat_qr: ## Path of Wechat QRcode image, e.g. /img/WeChatQR.png
|
|
110
|
+
btc_qr: ## Path of Bitcoin QRcode image, e.g. /img/BTCQR.png
|
|
111
|
+
btc_key: ## Bitcoin key, e.g. 1KuK5eK2BLsqpsFVXXSBG5wbSAwZVadt6L
|
|
112
|
+
paypal_url: ## Paypal URL, e.g. https://www.paypal.me/tufu9441
|
|
113
|
+
post_copyright:
|
|
114
|
+
enable: false ## If you want to display the copyright info after each post, please set the value to true and fill the following items on your need.
|
|
115
|
+
author: ## Your author name, e.g. tufu9441
|
|
116
|
+
copyright_text: ## Your copyright text, e.g. The author owns the copyright, please indicate the source reproduced.
|
|
117
|
+
love: false ## If you want the peach heart to appear when you click anywhere, set the value to true.
|
|
118
|
+
plantuml: ## Using PlantUML to generate UML diagram, must install hexo-filter-plantuml (https://github.com/miao1007/hexo-filter-plantuml).
|
|
119
|
+
render: "PlantUMLServer" ## Local or PlantUMLServer.
|
|
120
|
+
outputFormat: "svg" ## common options: svg/png
|
|
121
|
+
copycode: true ## If you want to enable one-click copy of the code blocks, set the value to true.
|
|
122
|
+
dark: false ## If you want to toggle between light/dark themes, set the value to true.
|
|
123
|
+
totop: true ## If you want to use the rocketship button to return to the top, set the value to true.
|
|
124
|
+
external_css: false ## If you want to load an external CSS file, set the value to true and create a file named "external.css" in the source/css folder.
|
|
125
|
+
post_content_length: 180 ## Set the length of the post summary displayed on home page when no description written.
|
|
126
|
+
|
|
127
|
+
menu:
|
|
128
|
+
- page: home
|
|
129
|
+
directory: .
|
|
130
|
+
icon: fa-home
|
|
131
|
+
- page: archive
|
|
132
|
+
directory: archives/
|
|
133
|
+
icon: fa-archive
|
|
134
|
+
- page: about
|
|
135
|
+
directory: about/
|
|
136
|
+
icon: fa-user
|
|
137
|
+
- page: rss
|
|
138
|
+
directory: atom.xml
|
|
139
|
+
icon: fa-rss
|
|
140
|
+
|
|
141
|
+
widgets: ## Seven widgets in sidebar provided: search, info, category, tag, recent_posts, recent_comments and links.
|
|
142
|
+
- search
|
|
143
|
+
- info
|
|
144
|
+
- category
|
|
145
|
+
- tag
|
|
146
|
+
- recent_posts
|
|
147
|
+
- recent_comments
|
|
148
|
+
- links
|
|
149
|
+
|
|
150
|
+
info:
|
|
151
|
+
avatar: /img/avatar.png
|
|
152
|
+
discription: To be a better man.
|
|
153
|
+
outlinkitem:
|
|
154
|
+
- name: twitter
|
|
155
|
+
outlink: https://twitter.com/username
|
|
156
|
+
message: Twitter
|
|
157
|
+
- name: envelope
|
|
158
|
+
outlink: mailto:admin@domain.com
|
|
159
|
+
message: Email
|
|
160
|
+
- name: github
|
|
161
|
+
outlink: https://github.com/username
|
|
162
|
+
message: Github
|
|
163
|
+
- name: rss
|
|
164
|
+
outlink: /atom.xml
|
|
165
|
+
message: RSS
|
|
166
|
+
|
|
167
|
+
links:
|
|
168
|
+
- title: site-name1
|
|
169
|
+
url: http://www.example1.com/
|
|
170
|
+
src: https://www.example1.com/favicon.ico
|
|
171
|
+
desc: XXX's Blog
|
|
172
|
+
- title: site-name2
|
|
173
|
+
url: http://www.example2.com/
|
|
174
|
+
src: https://www.example1.com/favicon.ico
|
|
175
|
+
desc: YYY's Blog
|
|
176
|
+
- title: site-name3
|
|
177
|
+
url: http://www.example3.com/
|
|
178
|
+
src: https://www.example3.com/favicon.ico
|
|
179
|
+
desc: ZZZ's Blog
|
|
180
|
+
|
|
181
|
+
timeline:
|
|
182
|
+
- num: 1
|
|
183
|
+
word: 2014/06/12-Start
|
|
184
|
+
- num: 2
|
|
185
|
+
word: 2014/11/29-XXX
|
|
186
|
+
- num: 3
|
|
187
|
+
word: 2015/02/18-DDD
|
|
188
|
+
- num: 4
|
|
189
|
+
word: More
|
|
190
|
+
|
|
191
|
+
# Static files
|
|
192
|
+
js: js
|
|
193
|
+
css: css
|
|
194
|
+
|
|
195
|
+
# Theme version
|
|
196
|
+
version: 1.0.0
|
|
197
|
+
```
|
|
198
|
+
- disqus - [Disqus](https://disqus.com) comment system, integrated with [DisqusJS](https://github.com/SukkaW/DisqusJS) API.
|
|
199
|
+
- uyan - [Uyan](http://www.uyan.cc) id
|
|
200
|
+
- livere - [LiveRe](https://livere.com) data-uid
|
|
201
|
+
- changyan - [Changyan](http://changyan.kuaizhan.com) appid
|
|
202
|
+
- gitalk - [Gitalk](https://github.com/gitalk/gitalk) comment system
|
|
203
|
+
- valine - [Valine](https://valine.js.org) comment system
|
|
204
|
+
- minivaline - [MiniValine](https://github.com/MiniValine/MiniValine) comment system
|
|
205
|
+
- waline - [Waline](https://waline.js.org) comment system
|
|
206
|
+
- utterances - [Utterances](https://utteranc.es) comment system
|
|
207
|
+
- twikoo - [Twikoo](https://twikoo.js.org) comment system
|
|
208
|
+
- google_search - Default search engine
|
|
209
|
+
- baidu_search - Search engine for users in China
|
|
210
|
+
- swiftype - [Swiftype Search](https://swiftype.com) key
|
|
211
|
+
- self_search - A jQuery-based [local search engine](https://www.hahack.com/codes/local-search-engine-for-hexo/), with the dependency on the plugin [hexo-generator-search](https://github.com/wzpan/hexo-generator-search)
|
|
212
|
+
- google_analytics - [Google Analytics](https://www.google.com/analytics/) tracking id
|
|
213
|
+
- baidu_analytics - [Baidu Analytics](https://tongji.baidu.com) tracking id
|
|
214
|
+
- microsoft_clarity - [Microsoft Clarity](https://clarity.microsoft.com/) tracking id
|
|
215
|
+
- fancybox - Enable [Fancybox](https://fancyapps.com/fancybox/)
|
|
216
|
+
- show_category_count - Show the count of categories in the sidebar widget
|
|
217
|
+
- toc_number - Show the list number of toc
|
|
218
|
+
- shareto - Enable share button, with the dependency on the plugin [hexo-helper-qrcode](https://github.com/yscoder/hexo-helper-qrcode)
|
|
219
|
+
- busuanzi - Enable [Busuanzi](http://ibruce.info) page views
|
|
220
|
+
- wordcount - Enable [hexo-wordcount](https://github.com/willin/hexo-wordcount) of each post
|
|
221
|
+
- widgets_on_small_screens - Show the widgets at the bottom of small screens
|
|
222
|
+
- canvas_nest - Enable [canvas-nest.js](https://github.com/hustcc/canvas-nest.js/blob/master/README-zh.md) dynamic background
|
|
223
|
+
- donate - Enable donate button after each post
|
|
224
|
+
- post_copyright - Enable copyright info after each post
|
|
225
|
+
- love - Enable peach heart when clicking anywhere
|
|
226
|
+
- plantuml - Enable PlantUML to generate UML diagram
|
|
227
|
+
- copycode - Enable one-click copy of code blocks
|
|
228
|
+
- dark - Enable to toggle between light/dark modes of the theme
|
|
229
|
+
- totop - Enable the rocketship to-top button
|
|
230
|
+
- external_css - Enable loading an external CSS file
|
|
231
|
+
- post_content_length - Abstract length of each post
|
|
232
|
+
- menu - Customize your menu of pages here, just follow the format of existied items. Don't forget to create corresponding folders inlcuding `index.md` in `source` folder to ensure the pages will correctly display. [FontAwesome](https://fontawesome.com) icon fonts have been integrated, and you can choose other icons which you like [here](https://fontawesome.com/icons/) and use them according to the instruction.
|
|
233
|
+
- widgets - Choose and arrange the widgets in sidebar here.
|
|
234
|
+
- info - Set your personal information of the info widget here.
|
|
235
|
+
- links - Edit your blogroll here, and an independent blogroll page can be displayed by setting `layout: blogroll` of a page.
|
|
236
|
+
- timeline - Show a timeline of the website by setting `layout: timeline` of a page.
|
|
237
|
+
- Static files - Static files directory, for convenience of CDN usage.
|
|
238
|
+
- Theme version - For automatic refresh of static files on CDN.
|
|
239
|
+
|
|
240
|
+
## Features
|
|
241
|
+
#### Logo
|
|
242
|
+
You can set a **favicon.ico** for your website, please put it into `source` folder of hexo directory, recommended size: 32px*32px.
|
|
243
|
+
|
|
244
|
+
You can add a website logo for apple devices, please put an image named **apple-touch-icon.png** into `source` folder of hexo directory, recommended size: 114px*114px.
|
|
245
|
+
|
|
246
|
+
#### Abstract
|
|
247
|
+
You can control the abstract of a post shown at index, by either filling a `description:` item in `front-matter` of the `post.md`, or just inserting a `<!--more-->` before your hidden content.
|
|
248
|
+
|
|
249
|
+
#### Page
|
|
250
|
+
Create folders inlcuding `index.md` in `source` folder to add pages, and add a `layout: page` in `front-matter` of `index.md`. A tagcloud page can be enabled by setting `layout: tagcloud` of a page. If you need a single column page without sidebar, just set `layout: single-column` instead of `layout: page`.
|
|
251
|
+
|
|
252
|
+
#### Table of Contents
|
|
253
|
+
TOC in a post can be enabled by adding a `toc: true` item in `front-matter`.
|
|
254
|
+
|
|
255
|
+
#### Comments
|
|
256
|
+
Comment feature of each post and page can be enabled (default) and disabled by adding a `comments: true` or a `comments: false` in `front-matter`. This could be useful when you want comment feature for a guestbook page, but don't want comment feature for a about page.
|
|
257
|
+
|
|
258
|
+
#### Syntax Highlighting
|
|
259
|
+
Highlighted code showcase is supported, please set the `highlight` option in `_config.yml` of hexo directory like this:
|
|
260
|
+
|
|
261
|
+
```YAML
|
|
262
|
+
highlight:
|
|
263
|
+
enable: true
|
|
264
|
+
auto_detect: true
|
|
265
|
+
line_number: true
|
|
266
|
+
tab_replace:
|
|
267
|
+
```
|
|
268
|
+
|
|
269
|
+
#### Math Equation
|
|
270
|
+
Add
|
|
271
|
+
```YAML
|
|
272
|
+
mathjax: true
|
|
273
|
+
```
|
|
274
|
+
in Hexo's `_config.yml`.
|
|
275
|
+
|
|
276
|
+
In the post which you would like to use math equation, add `mathjax: true` in the `front-matter`. For example:
|
|
277
|
+
|
|
278
|
+
```YAML
|
|
279
|
+
title: Test Math
|
|
280
|
+
date: 2016-04-05 14:16:00
|
|
281
|
+
categories: math
|
|
282
|
+
mathjax: true
|
|
283
|
+
---
|
|
284
|
+
```
|
|
285
|
+
The default math delimiters are `$$...$$` and `\\[...\\]` for displayed mathematics,
|
|
286
|
+
and `$...$` and `\\(...\\)` for in-line mathematics.
|
|
287
|
+
|
|
288
|
+
However, if your post contains dollar signs (`$`), and they appear often in non-mathematical parts, in other words, you want to use `$` as dollar sign not inline math delimiter, please add
|
|
289
|
+
|
|
290
|
+
```YAML
|
|
291
|
+
mathjax2: true
|
|
292
|
+
```
|
|
293
|
+
in Hexo's `_config.yml` instead of `mathjax: true`. Correspondingly, add `mathjax2: true` to the `front-matter` of the post in which
|
|
294
|
+
you would like to use math equation.
|
|
295
|
+
|
|
296
|
+
#### Languages
|
|
297
|
+
Seven languages are available for this theme currently: Simplified Chinese (zh-CN), Traditional Chinese (zh-TW), English (en), French (fr-FR), German (de-DE), Korean (ko) and Spanish (es-ES). Contributions of translating to other languages will be highly appreciated.
|
|
298
|
+
|
|
299
|
+
## Solutions
|
|
300
|
+
- Check whether your Terminal's current directory is in hexo's root directory which contains `source/`, `themes/`, etc.
|
|
301
|
+
|
|
302
|
+
- If you have any trouble in using this theme, please feel free to open an [issue](https://github.com/guozhenyi/hexo-theme-clarity/issues).
|
|
303
|
+
|
|
304
|
+
## Browsers Support
|
|
305
|
+
| [<img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/edge/edge_48x48.png" alt="IE / Edge" width="24px" height="24px" />](https://godban.github.io/browsers-support-badges/)<br/>IE / Edge | [<img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/firefox/firefox_48x48.png" alt="Firefox" width="24px" height="24px" />](https://godban.github.io/browsers-support-badges/)<br/>Firefox | [<img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/chrome/chrome_48x48.png" alt="Chrome" width="24px" height="24px" />](https://godban.github.io/browsers-support-badges/)<br/>Chrome | [<img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/safari/safari_48x48.png" alt="Safari" width="24px" height="24px" />](https://godban.github.io/browsers-support-badges/)<br/>Safari | [<img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/opera/opera_48x48.png" alt="Opera" width="24px" height="24px" />](https://godban.github.io/browsers-support-badges/)<br/>Opera |
|
|
306
|
+
| --------- | --------- | --------- | --------- | --------- |
|
|
307
|
+
| IE9+, Edge| last 10 versions| last 10 versions| last 7 versions| last 10 versions
|
|
308
|
+
|
|
309
|
+
## Contributing
|
|
310
|
+
All kinds of contributions (enhancements, new features, documentation & code improvements, issues & bugs reporting) are welcome.
|
|
311
|
+
|
|
312
|
+
Looking forward to your [pull request](https://github.com/guozhenyi/hexo-theme-clarity/pulls).
|
|
313
|
+
|
|
314
|
+
## Contributors
|
|
315
|
+
Thanks for all contributors of this repo.
|
|
316
|
+
|
|
317
|
+
<a href="https://github.com/guozhenyi/hexo-theme-clarity/graphs/contributors">
|
|
318
|
+
<img src="https://contrib.rocks/image?repo=guozhenyi/hexo-theme-clarity" />
|
|
319
|
+
</a>
|