寫嘢(Se2'Je5), A beatutiful Hexo Theme
Please note that this project has deprecated, please use Seje2
- Open your Hexo flodder and Execute the following command:
git submodule add https://github.com/eatradish/Seje.git themes/Seje- Open your hexo
_config.yml, setthemevalue asSeje:
theme: Seje- Using
hexo ssee if it works.
Edit config in theme_config of _config.yml :
theme_config:
# Display Archives, About, RSS and Member in menu
menu:
Home: /
Archives: /archives
About: /about
RSS: /rss
Member: /memberCheck out all config under the _config.yml of Seje.
- Set your disqus_shortname in your
theme_configof_config.yml:
theme_config:
disqus_shortname: $YOUR_SHORTNAME- Using
hexo ssee if it works.
Homepage will show full content of every post in default. You can set this to show the summary:
excerpt: trueCopy your favicon.png to source.
You can also set the file name of favicon yourself:
favicon: foobar.pngAdd the highlight in _config.yml of your Hexo:
highlight:
enable: true
hljs: trueSee Hexo document for details.
Add the prismjs in _config.yml of your Hexo:
highlight:
enable: false
prismjs:
enable: true
preprocess: true
line_number: true
line_threshold: 0
# tab_replace: ' 'Seje support podcast feature (thanks shikwasa!), A case of using podcast on Seje:
- install hexo-generator-podcast in your Hexo foldder:
yarn add hexo-generator-podcast- Set your Podcast info in your Hexo
_config.yml, like this:
podcast:
type: rss2
path: podcast.xml
limit: 20
hub:
url: https://URL/to/static/resources
description:
language: zh-CN
copyright: "COPYRIGHT"
owner: ITUNES-OWNER
email: ITUNES-EMAIL
category: CATEGORY
theme_config:
podcast: truehexo new "podcast-test"and add the following example to the markdown file created:
---
title: podcast test
date: 2020-06-19 16:23:38
tags:
subtitle: SUBTITLE
category: podcast # must be exactly `podcast`
media: /path/to/media # placed under //URL/to/static/resources/path/to/media
image: /path/to/episode/image # same as above, but somehow iTunes doesn't support episode image as it should do
length: 6989--IN_BYTES
type: audio/mpeg
duration: XX:YY:AA
author: AUTHOR
---
A instance of Podcast:
{% podplayer %}
vertical: true- Disable auto dark mode
darkmode: false
- Always use dark mode
always_darkmode: true
This will display "CC BY-SA 4.0" at the foot of page:
license: CC BY-SA 4.0Use mirror of Google Fonts (fonts.loli.net in this example) to speed up loading:
font_mirror: fonts.loli.netSame as CSS syntax. Use ' to include the font name with space, use , to split multiple fonts:
custom_font: 'Droid Sans Mono', monospacedEnabled in default, date will be displayed as "二〇二一年十一月八日". Date will be display like "2021/11/08" after disabled.
to_chinese_date: false- Please use
git pullregularly. Bug fixes are guaranteed. - Issues / Pull requests are welcome