这是一个黑暗的 Hexo 主题,响应式,简单但优雅。
Hexo Theme: Obsidian
I am working on a brand new theme called
Aurora, therefore this theme currently is not actively maintained. If you are from my blog website, the theme displayed there is the new theme.
View new theme screenshots
More screen shots
git clone https://github.com/TriDiamond/hexo-theme-obsidian.git obsidian
Open Hexo config file _config.yml, set theme to obsidian
---
theme: obsidian
First open your terminal, and cd in the theme folder obsidian.
cd themes/obsidian
Then run npm to install all required packages for the theme.
npm install
Open /themes/obsidian/_config.yml can change the theme configs
Full detail config
…
You can choose from using Valine or Gitalk
Valine, you need to turn off busuanzi,because Valine has article view count support.Gitalk, you may turn on busuanzi, 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: false
line_number: true
auto_detect: true
tab_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 g
This post parameter changes how many characters are kept for the preview at home page.
title: # My awesome title
date: # 2019-07-14 18:38:45
categories:
# - Category1 - Category2
tags:
# - Tag1 - Tag2
mp3: # http://domain.com/awesome.mp3
cover: # http://domain.com/awesome.jpg
preview: # 300
Post template settings
…
Run Hexo command to generate categories page
hexo new page categories
Categories template
title: categories
date: 2019-07-14 12:39:04
type: 'categories'
Theme will auto generate categories contents.
Run Hexo command to generate tags page
hexo new page tags
Tags page template
title: tags
date: 2014-12-22 12:39:04
type: "tags"
Theme will auto generate tags contents.
Default enables mathjax support, can change it to false to turn it off.
# Enabling mathjax support
mathjax: true
Please backup your
_config.ymlfile before update
cd themes/osidian
git pull
Install by npm
$ npm install hexo-generator-search --save
Adding the plugin config in your root _config.yml
search:
path: search.xml
field: post
content: true
Regenerate files
hexo clean && hexo g
I have made a Typro theme Obsidian
especially for this blog theme.
Please check the ISSUES 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:
909955326Are you enjoying this project ?
You can express your ❤️ by buying me a coffee ☕️ to keep this project maintained and stay alive, I would ❤️ to ** dedicate more time and effort** on it!
If there are enough coffee ☕️ I would like to become a full time open source developer! Keep producing more awesome themes and applications to the world!
However you could just sharing this project with your friends, that would help me a lot as well!
Thanks for your love in advance! ☀️
| Donating using Paypal |
|---|
All donator will be enlisted as Coffee Supporter and displayed in the Sponsor list in this section.
| Wechat 微信支付 | Alipay 支付宝支付 |
|---|---|
所有赞助人将被列为咖啡支持者,并在本节的赞助人名单中显示。
暂无开放 Issues,或尚未同步最近议题。