A beautiful hexo theme.
diaspora theme for hexo.
A beautiful hexo theme, rewrite by diaspora. thanks a lot@LoeiFy.
1. create a hexo blog init. (how to install hexo please to see hexo.)
$ hexo init Lolita
$ cd Lolita
2. check your hexo root directory. There must be node_modules
, source
, themes
and other directories:
$ ls
_config.yml node_modules package.json public scaffolds source themes
3. download theme.
$ git clone https://github.com/dmoosocool/hexo-theme-diaspora themes/diaspora
4. copy the default._config.yml
file to your hexo root directory.
$ mv _config.yml bak._config.yml
$ cp themes/diaspora/default._config.yml ./_config.yml
5. update post template (${hexo_root}/scaffolds/post.md).
---
title: {{ title }}
date: {{ date }}
tags:
mp3:
pic:
---
6. upgrade your _config.yml
.
7. add about, links page.
$ hexo new page about && hexo new page links
- add
layout
. ${hexo_root}/source/about/index.md
---
title: about
date: 2018-06-08 02:52:14
layout: about
---
${hexo_root}/source/links/links.md
---
title: links
date: 2018-06-08 02:52:14
layout: links
---
8. run hexo.
$ cd ${hexo_root}
$ hexo clean && hexo g && hexo s
9. congratulations
see your beautiful blog. open the link on your browser. http://localhost:4000
$ cd themes/diaspora
$ git pull
1. UI rewrite by diaspora.
2. use comment system by Valine.
3. Helper: getCategoryList.js. relation related articles.
4. Helper: getArticleCount.js. finding count the number of words in the article.
5. Helper: getArticlePic.js. dynamic get picture by article if used qiniu OSS.
6. Lib: leancloud.js. likes, reads count storage by LeanCloud.
7. Links page.
8. About page.
if you find any bugs or demands, please write a as detailed as possible issue.
- hexo
- @LoeiFy
- Valine ( a beautiful comment system.)
- qiniu OSS
- LeanCloud
- and thank you used the beautiful hexo themes
hexo-theme-diaspora © dmoosocool, Released under the MIT License.
Blog @dmoosocool · GitHub @dmoosocool