本文主要介绍Hexo博客搭建以及主题使用。Hexo是一款很好用的博客系统,有很多非常漂亮的主题,下面笔者介绍一款简洁漂亮的主题——Hexo-Theme-snail。这款主题是笔者在别人的主题的基础上开发的,主题的详细样式请浏览笔者的个人博客 super snail。下面是主题的 README 文件,这是笔者直接复制的,详细的使用方法请点击 hexo-theme-snail 查看。
hexo-theme-snail
View Hexo-Theme-Snail Sources On Github ➾
Light Theme
Dark Theme
Star Theme
Hexo-theme-snail is a succinct hexo theme. It has two colors, light and star, that can be set according to your own preferences in the settings, and also has the functions of sharing and commenting. More features are under development.
Features
- light color theme and star theme
- diversified comment system
- notice tips
- share to other platforms (under development)
- picture sharing (under development)
Quick Start
Install Hexo
$ npm install hexo-cli -g
Setup your blog
$ hexo init blog
Installation Theme
$ cd blog
$ rm -rf source
$ rm _config.yml package.json README.md LICENSE
$ git clone https://github.com/dusign/hexo-theme-snail.git
$ mv ./hexo-theme-snail/snail ./themes
$ mv ./hexo-theme-snail/* ./
$ npm install
Set Theme
Modify the value of theme:
in _config.yml
# Extensions
## Plugins: https://hexo.io/plugins/
## Themes: https://hexo.io/themes/
theme: snail
Start the Server
$ hexo generate
$ hexo server
Configuration
Site
Replace the following information with your own.
# Site
title:
subtitle: At the bottom of the well, it is destined to see only the sky at the wellhead.
However, the starting point only affects the process of reaching your peak and does not determine the height you reach.
author: Dusign