Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
NotificationsYou must be signed in to change notification settings

coderhaotf/coderhaotf.github.io

Repository files navigation

A dark Hexo theme, it's responsive, simple but elegant.

Latest version: v1.3.0

PREVIEW |中文文档 |CHANGES

screenshot

Install

$ git clone https://github.com/TriDiamond/hexo-theme-obsidian.git obsidian

Usage

Activate Theme

OpenHexo config file_config.yml, set theme toobsidian

...theme:obsidian...

Theme settings

Open/themes/obsidian/_config.yml can change the theme configs

#! ---------------------------------------------------------------#! Obsidian theme use manual highlight.js#! To maintain the code block css display properly#! please change your default highlight setting as off!!#! 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# 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

Code block style

Turn off defaulthighlight to ensure code block style display properly.Because Obsidian theme use manual highlight.jsTo maintain the code block css display properlyplease change your default highlight setting as off!!

...highlight:enable:falseline_number:trueauto_detect:truetab_replace:...

Rebuild files after you changed the config

hexo clean&& hexo g

Preview character length

This 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

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

Create categories page

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.

Create tags page

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.

Update Theme

Please backup your_config.yml file before update

cd themes/osidiangit pull

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp