Skip to content

EZ-boy/hexo-theme-cold-stone

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cold Stone 🎉

A simple, clean, text-based Hexo blog theme.

中文文档

Foreword

In my opinion the main content of the blog should be text, but many Hexo themes with a lot of pictures, easy to distract the reader's attention, and some of the text-based theme features are somewhat simple, so the Cold Stone theme was born!

Preview

responsive

Link

Feature

  • night mode
  • PWA (progressive web application)
  • Utteranc comment System
  • Mobile friendly
  • English/Chinese

Quick start

First you need to install Hexo to create the project. You can skip this step if you have already started.

npm install -g hexo-cli

hexo init <folder>

cd <folder>

npm install

Install theme

git clone https://github.com/xrr2016/hexo-theme-cold-stone.git themes/cold-stone --depth 1

Usage

  1. Modify the _config.yml file in your Hexo blog root directory to set theme to
theme: cold-stone
  1. Move icons in the themes/cold-stone directory to the source directory

  2. Execute the following command at the project root directory, create pages you need

hexo new page projects

hexo 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
---
  1. Modify the configuration of your Hexo blog _congfig.yml, examples are as follows
# blog config
seo_title: 冷石的博客
project_dir: projects

# user config
avatar: avatar.png

# Utteranc comment system
comment:
  repo: xrr2016/blog

# sns link:
sns:
  github: xrr2016
  juejin: 576666b7207703006b1e0f09

# page stat
track:
  gaid: xxxxxxxxxxxxxx
  1. Add a avatar.png image to the source directory

Run local

hexo server

Deploy

  • install hexo-deployer-git
 npm install hexo-deployer-git --save
  • set config
deploy:
  type: git
  repo: https://github.com/your-username/your-repo
  branch: gh-pages
  • publish
hexo clean && hexo deploy

More ways to refer:https://hexo.io/docs/deployment

Using

cold stone's blog 💯

audits

TODOS

  • Search

  • Category

  • Show page views

  • Friends link page

License

MIT

If you think this theme is no bad, please star this repo.

About

A simple, clean, text-based Hexo blog theme

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • CSS 57.2%
  • HTML 31.5%
  • JavaScript 11.3%