A Q&A theme for Hexo.
HTML JavaScript
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
Doc
languages update config; update related pages Jan 14, 2017
layout fix wrong favicon url bug Jan 14, 2017
source some update Jan 14, 2017
.gitignore
LICENSE version 1.0.0 Jan 13, 2017
QnA.png
README.md
_config.yml update config; update related pages Jan 14, 2017
package.json version 1.0.0 Jan 13, 2017

README.md

Theme QnA for Hexo

A Knowledge Base Theme for Hexo.

Documentation

Showcase:

Installation

Install

$ git clone https://github.com/cheng-kang/hexo-theme-qna.git themes/QnA

Enable

Modify theme setting in _config.yml to QnA.

Update

cd themes/QnA
git pull

Adavanced Features

Deploy to Github

Install hexo-deployer-git plugin for Hexo.

$ npm install hexo-deployer-git --save

Edit _config.yml in root directory of your Hexo blog.

deploy:
  type: git
  repo: <repository url> # https://github.com/cheng-kang/hexo-theme-qna.git
  branch: [branch] # master

Enable In-site Search Support for Chinese

By default, QnA support English in-site search.

Install hexo-generator-search plugin for Hexo.

$ npm install hexo-generator-search --save

Add New Page

  1. Add a new page with page name, e.g. about page. You can change page content by editing source/<page_name>/index.md.
$ hexo new page about
  1. Edit _config.yml in theme/QnA.
menu:
  Home: /
  Archive: /archives
  # Add new page config here
  # Page Dispay Name: /pagename
  # e.g.
  About: /about