- Notifications
You must be signed in to change notification settings - Fork0
coderhaotf/coderhaotf.github.io
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
v1.x | ᴅᴇsɪɢɴᴇᴅ & ᴄᴏᴅᴇᴅ ʙʏ ᴛʀɪᴅɪᴀᴍᴏɴᴅ
A dark Hexo theme, it's responsive, simple but elegant.
git clone https://github.com/TriDiamond/hexo-theme-obsidian.git obsidian
OpenHexo config file_config.yml, set theme toobsidian
...theme:obsidian...
Open/themes/obsidian/_config.yml can change the theme configs
Full detail config
#! ---------------------------------------------------------------#! Since version `v1.3.5` code block highlight has changed from `highlight.js` to#! `codemirror`, but the Hexo default highlight still need to be disabled to take affect.#! !! So Please make sure you disabled Hexo's default highlight setting !!#! ---------------------------------------------------------------#! Rebuild files after you changed the config:#! `hexo clean && hexo g`#! ---------------------------------------------------------------#! highlight:#! enable: false#! line_number: true#! auto_detect: true#! tab_replace:#! ---------------------------------------------------------------# ---------------------------------------------------------------# Theme default settings# ---------------------------------------------------------------# Menu setting | format = title_name: link_urlmenu:PAGE:/page# Page custom titlespage_titles:categories:"Categories"tags:"Tags"archives:"Archived"# Enable table of contentTOC:true# Home page first post default cover image, default use coverwelcome_cover:/img/cover.jpg# Article default cover imagecover:/img/welcome-cover.jpg# Avataravatar:https://s2.ax1x.com/2019/09/19/nLtSiD.png# Disable default scrollbarscrollbar:true# Website keywords used for SEOkeywords:TriDiamond Obsidian# Website slogansdescriptionOne:"Think like an artist, develop like an artisan"descriptionTwo:"艺术家思维去思考问题,工匠创造精神去开发"# If you use google analytics, please fill in the IDgoogle_analytics:# Website faviconfavicon:/img/favicon.png# rss filerss:atom.xml# ---------------------------------------------------------------# Article Music settings# ---------------------------------------------------------------# Auto play article audioautoplay:false# default mp3 filemp3: -statics/chengdu.mp3# ---------------------------------------------------------------# Plugins# ---------------------------------------------------------------# Gitalk comment plugin# see https://github.com/gitalk/gitalkgitalk:enable:falseautoExpand:falseclientID:''clientSecret:''repo:''owner:''admin:['']# Ensure uniqueness and length less than 50id:location.pathname# Facebook-like distraction# Valine comment plugin (recommended!)# see https://valine.js.org/quickstart.htmlvaline:enable:trueapp_id:app_key:notify:falseverify:falseavatar:'mp'placeholder:'Leave your throughs behind~'visitor:true# Enable symbols-count-time plugin# see https://github.com/theme-next/hexo-symbols-count-timesymbols_count_time:enable:truewordCount:truereadCount:trueawl:4wpm:275suffix:mins.# Enable html truncate# see https://github.com/TriDiamond/hexo-html-truncatehtml_truncate:enable:true# Characters kept for postspostLength:250# Characters kept for cover postscoverLength:100ellipsis:'...'# Excluding html tagsexcludes:['img']# Characters count including white spaceskeepWhitespaces:true# Reserving the last complete word, without breaking the wordreserveLastWord:true# Enable Busuanzi statistic plugin# see http://ibruce.info/2015/04/04/busuanzi/busuanzi:enable:true# Enable social media sharing# see https://github.com/overtrue/share.js/sharejs:enable:truedisabled:'facebook,douban,linkedin,diandian,tencent,google'# Use codemirror instead of highlight js for better colors# if you want more language support check the modes list at official website# modes see: https://codemirror.net/mode/# see https://codemirror.net/codemirror:modes:['javascript', 'css', 'xml', 'htmlmixed', 'clike', 'php', 'shell', 'python']# Enabling mathjax supportmathjax:true
You can choose from using Valine or Gitalk
- If you are using
Valine, you need to turn offbusuanzi,because Valine has article view count support. - If you are using
Gitalk, you may turn onbusuanzi, to have article view count enable.
Since version
v1.3.5code block highlight has changed fromhighlight.jstocodemirror, Hexo default highlight need to be disabled to take affect.!! So Please make sure you disabled Hexo's default highlight setting !!
Hexo configuration file_config.yml located at the ROOT path of your blog.
⚠️ Please note do not make these changes in the theme's config file,changing configs in the theme config file_config.ymlwill not work properly.
...highlight:enable:falseline_number:trueauto_detect:truetab_replace:...
Codemirror settings
# Use codemirror instead of highlight js for better color syntax# if you want more language support check the modes list at official website# modes see: https://codemirror.net/mode/# see https://codemirror.net/codemirror:modes:['javascript', 'css', 'xml', 'htmlmixed', 'clike', 'php', 'shell', 'python']
Rebuild files after you changed the config
hexo clean&& hexo gThis post parameter changes how many characters are kept for the preview at home page.
title: My awesome titledate: 2019-07-14 18:38:45categories: - Category1 - Category2tags: - Tag1 - Tag2mp3:http://domain.com/awesome.mp3cover:http://domain.com/awesome.jpgpreview: 300
Post template settings
title: My awesome titledate: 2019-07-14 18:38:45categories: - Category1 - Category2tags: - Tag1 - Tag2mp3:http://domain.com/awesome.mp3cover:http://domain.com/awesome.jpg
Run Hexo command to generate categories page
hexo new page categories
Categories template
title:categoriesdate:2019-07-14 12:39:04type:"categories"
Theme will auto generate categories contents.
Run Hexo command to generate tags page
hexo new page tags
Tags page template
title: tagsdate: 2014-12-22 12:39:04type: "tags"Theme will auto generate tags contents.
Default enables mathjax support, can change it tofalse to turn it off.
# Enabling mathjax supportmathjax:true
Please backup your
_config.ymlfile before update
cd themes/osidiangit pullInstall by npm
$ npm install hexo-generator-search --save
Adding the plugin config in your root_config.yml
search:path:search.xmlfield:postcontent:true
Regenrate files
hexo clean&& hexo gI have made aTypro themeObsidian especially for this blog theme.
Please check theISSUES before try to use the following contact methods!Maybe the question you have had being asked by others or it's already being answered. Thanks!
You can give me feedback or issue you have through the following methods:
- Create a issue!
- Joint QQGroup
909955326
About
Resources
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Releases
Packages0
Uh oh!
There was an error while loading.Please reload this page.




