Skip to content

helbing/hexo-theme-white

Repository files navigation

White

FOSSA Status

simple, concise blog theme for Hexo.

Installation

Install

git clone https://github.com/helbing/hexo-theme-white.git themes/white

Enable

# _config.yml

theme: white

Dependencies

yarn add hexo \
  hexo-generator-feed \
  hexo-generator-index \
  hexo-generator-tag \
  hexo-renderer-ejs \
  hexo-renderer-marked \
  hexo-renderer-scss

yarn add --dev hexo-browsersync \
  hexo-server

you also can use npm to install dependency packages

Update

cd themes/white
git pull

Configuration

Basic

# themes/white/_config.yml

title: WHITE
description: "A simple, concise blog theme for Hexo."

Menu

# themes/white/_config.yml

menu:
  Home: /
  Tags: /tags
  About: /about
  Rss: /atom.xml

Rss

# themes/white/_config.yml

rss: /atom.xml

Copyright

# themes/white/_config.yml

copyright:
  name: helbing
  url: https://github.com/helbing

Favicon

copy your favicon.png into /source

# themes/white/_config.yml

favicon: /favicon.png

Social account

# themes/white/_config.yml

social:
  github:
    url: https://github.com/helbing
    icon: "fab fa-github"
  mail:
    url: mailto:[email protected]
    icon: "fas fa-at"
  xxx:
    url:
    icon:

you can find icons in fontawesome

Highlight

# _config.yml

highlight:
  enable: false
  line_number: false
  auto_detect: false
  tab_replace:

Disqus

# themes/white/_config.yml

disqus:
  enable: true
  shortname: # your disqus shortname

you can read the document

About me page

hexo new page "about"

edit source/about/index.md

---
title: about
date: 2019-01-30 09:58:54
type: about
author: # your name
avatar: # your avatar, like https://xxxx/xxxx.png
---

your infomation, like

Hello, my name is xxxx, I like

1. xxx
2. xxx
3. xxx
4. and so on

Tags page

hexo new page "tags"

edit source/tags/index.md

---
title: tags
date: 2019-01-25 18:40:18
type: tags
---

Create your first post

hexo new post <title>

edit source/_posts/<title>.md

---
date: 2018-12-14
title: # post title, recommended length 20
description: # your post description, recommend length 100 - 120
tags: ["hello", "world"] # post tags
cover: # your post cover, like https://xxxx/xxxx.png, recommend 1920px * 1080px
---

your post content

License

FOSSA Status

About

A simple, concise blog theme for Hexo

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published