• Stars
    star
    132
  • Rank 274,205 (Top 6 %)
  • Language
    HTML
  • License
    MIT License
  • Created over 5 years ago
  • Updated almost 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

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

Cold Stone 🎉

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

中文文档

日本語ドキュメント

Preview

light demo

dark demo

Preview Link

Feature

  • Auto 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

  2. Install hexo-wordcount (word count)

npm i --save hexo-wordcount
  1. Install hexo-all-minifier (Compress blog code)
npm i --save hexo-all-minifier

RSS

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

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

Release log

v2019-10-10

  • Add blog traffic statistics
  • Modified the article font statistics display position
  • Added the number of blog posts to display
  • Fixed safari homepage error reporting issue8

v2019-10-08

  • Added Japanese language interface and documentation, thanks @dongsu-iis
  • Fix code highlighting #issue, need to disable the code highlighting that comes with hexo
  • Added hexo-all-minifier to compress your blog code and let your blog open faster
  • Add a previous/next link in the article
  • Updated article label style, link style within article

V2019-09-30

  • Modify the navigation bar style
  • Increse homepage loading animation time
  • Automatically set night mode according to system theme

v2019-09-25

  • Added homepage loading animation
  • Reduced body content width

v2019-09-23

  • Modified PC home page layout
  • Added article word count function (need install hexo-wordcount under blog folder)
  • Added Google Site Search on the PC side
  • Added friends chain page

License

MIT

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

More Repositories

1

vue-express-mongodb

前后端分离
JavaScript
574
star
2

neumorphism

Dart
65
star
3

tata

简洁的toast提示
JavaScript
57
star
4

flutter-tree

Flutter tree widget
JavaScript
51
star
5

zhihu-daily

知乎日报(Vuejs)
CSS
45
star
6

cake-shop

电商网站项目
JavaScript
22
star
7

flutter-npm-search

flutter 实例项目
Dart
17
star
8

Interview-experience-share

15
star
9

flutter-charts

flutter charts
Dart
14
star
10

flutter-get-data

Dart
11
star
11

flutter-world

11
star
12

vue-img-filter

Vue
10
star
13

flutter-generative-artistry

Flutter generative artistry
Dart
10
star
14

javascript-functions

一些常用的js函数
JavaScript
9
star
15

wechatapp-choujiang

微信小程序转盘抽奖
JavaScript
8
star
16

my-gank.io

PWA gank.io
JavaScript
7
star
17

wechat-app-v2ex

微信小程序简易版V2EX
JavaScript
7
star
18

rematch-todos

React Rematch Todos Example
JavaScript
7
star
19

flutter-breadcrumb-menu

breadcrumb menu for flutter app
Dart
6
star
20

flutter_provider_todos

Dart
5
star
21

days-spent

JavaScript
3
star
22

lol-yuumi

CSS
3
star
23

feeling

Dart
3
star
24

javascript30

30 Day Vanilla JS Coding Challenge
HTML
3
star
25

learn-game-dev

学习HTML5游戏开发
HTML
3
star
26

wechatapp-doubandushu

微信小程序豆瓣读书
JavaScript
2
star
27

github-trending-api

TypeScript
2
star
28

vue-chat

使用 Vue.js 和 Chatkit 创建一个聊天室
Vue
2
star
29

flutter-effect-generator

An app for generate fun things, build with flutter.
Dart
2
star
30

koa2-mongodb-curd

koa2入门实例
JavaScript
2
star
31

animation-with-js

HTML
1
star
32

ast-learn

JavaScript
1
star
33

flutter_demos

实现 Flutter 应用开发基础功能
HTML
1
star
34

wasteagram

Dart
1
star
35

rest-api

Creating a REST API with Node.js
JavaScript
1
star
36

vue-caddy-test

HTML
1
star
37

juejin-markdown-theme-fancy

掘金自定义主题
SCSS
1
star
38

vue-json-editor

Vue
1
star
39

Vuejs-tutorial

学习vuejs
JavaScript
1
star
40

wechatapp-cnodejs

微信小程序cnodejs
JavaScript
1
star