A simple, refreshing, text-based Hexo blog theme.
A simple, refreshing, text-based Hexo blog theme.
light
dark
First you need to install Hexo to create the project. You can skip this step if you have already started.
npm install -g hexo-clihexo init
cd
npm install
git clone https://github.com/xrr2016/hexo-theme-cold-stone.git themes/cold-stone --depth 1
_config.ymlfile in your Hexo blog root directory to set theme to
theme: cold-stone
Move
iconsin the
themes/cold-stonedirectory to the
sourcedirectory
Execute the following command at the project root directory, create pages you need
hexo new page projectshexo new page categories
hexo new page tags
hexo new page about
Add the layout of
source/projects/index.md
--- layout: projects ---
Add the layout of
source/categories/index.md
--- layout: categories ---
Add the layout of
source/tags/index.md
--- layout: tags ---
_congfig.yml, examples are as follows
# blog config seo_title: 冷石的博客 project_dir: projectsuser config
avatar: avatar.png
Utteranc comment system
comment: repo: xrr2016/blog
sns link:
sns: github: xrr2016 juejin: 576666b7207703006b1e0f09
page stat
track: gaid: xxxxxxxxxxxxxx
Add a
avatar.pngimage to the
sourcedirectory
Install hexo-wordcount (word count)
npm i --save hexo-wordcount
npm i --save hexo-all-minifier
Install hexo-generator-feed (generate rss link)
npm i --save hexo-generator-feed
Set rss to true in
_congfig.yml
# RSS rss: true feed: type: atom path: atom.xml limit: 20 hub: content: content_limit: 140 content_limit_delim: ' ' order_by: -date icon: avatar.png autodiscovery: true
hexo server
npm install hexo-deployer-git --save
deploy: type: git repo: https://github.com/your-username/your-repo branch: gh-pages
hexo clean && hexo deploy
More ways to refer:https://hexo.io/docs/deployment
[x] Search
[x] Category
[x] Show page views
[x] Friends link page
v2019-10-10
v2019-10-08
V2019-09-30
v2019-09-25
v2019-09-23
If you think this theme is no bad, please star this repo. 😎