• Stars
    star
    684
  • Rank 66,068 (Top 2 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created almost 8 years ago
  • Updated about 2 years ago

Reviews

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

Repository Details

A theme of Hexo for personal wiki which seems like Wikitten style.

hexo-theme-Wikitten

中文版文档

A personal wiki imitate Wikitten style for Hexo. >Preview

some features:

  • Applicable to personal wiki knowledge management
  • Simple, double column, classified management
  • The knowledge of multi-level sorting, the side can be expand at all levels of classification, easy to jump
  • Categorize article according to file directory #4

Site Preview

mobile preview mobile preview

Installation

hexo-theme-Wikitten kernel code base on icarus, so you can read base function document with icarus wiki.

Install

Note: This theme requires Hexo v3.6 or late.

  1. Go to your hexo folder, then clone this theme Wikitten into themes/
$ cd your-hexo-directory
$ git clone https://github.com/zthxxx/hexo-theme-Wikitten.git themes/Wikitten
  1. Rewrite to cover some default page template in site folder
$ cp -rf themes/Wikitten/_source/* source/
$ cp -rf themes/Wikitten/_scaffolds/* scaffolds/
  1. Rename the _config.yml.example to _config.yml so you can config theme
$ cp -f themes/Wikitten/_config.yml.example themes/Wikitten/_config.yml
# edit and customize it
$ vim themes/Wikitten/_config.yml

most configurations are same as the icarus theme, you can read with icarus wiki at first.

some recommend options setting which you can out of the box, see below #Configuration.

  1. Plugins requires in theme package.json and you need install these.

here is those function and effect:

hexo-autonofollow       // automatic make user open external links in new tab
hexo-directory-category // automatic categorize article according to their file directory
hexo-generator-feed     // generate Atom 1.0 or RSS 2.0 feed
hexo-generator-json-content // generate a json content file for site search
hexo-generator-sitemap  // generate sitemap

you can merge these plugins into the site's package.json file by npm install command install them once,

or in the site folder, you can install them with the following command:

$ npm install --save hexo-autonofollow hexo-directory-category hexo-generator-feed hexo-generator-json-content hexo-generator-sitemap
  1. mathjax renderer configuration (optional):

If you need to write mathematical formulas, the following configuration is recommended:

First, you need to install pandoc,and modify the rendering engine under the hexo site in the meanwhile:

$ npm un hexo-renderer-marked --save
$ npm i hexo-rendere-pandoc --save # or hexo-renderer-krammed

Modify settings in site config file _config.yml:

math:
  enable: true
  engine: mathjax

Enable

Modify theme setting in site config file _config.yml to Wikitten.

Update

$ cd themes/Wikitten
$ git pull origin master

Configuration

In site config file _config.yml, recommend settings:

# Hexo Configuration
# URL
permalink: wiki/:title/

# Directory
skip_render:
  - README.md
  - '_posts/**/embed_page/**'

# Writing
new_post_name: :title.md # File name of new posts

## Markdown
## https://github.com/hexojs/hexo-renderer-marked
marked:
  gfm: true
  
## Plugins: https://hexo.io/plugins/
### JsonContent
jsonContent:
  meta: false
  pages:
    title: true
    date: true
    path: true
    text: true
  posts:
    title: true
    date: true
    path: true
    text: true
    tags: true
    categories: true
  ignore:
    - 404.html
    
### Creat sitemap
sitemap:
  path: sitemap.xml

### Adds nofollow attribute to all external links in your hexo blog posts automatically.
nofollow:
  enable: true
  exclude:
    - <your site url domain> # eg: zthxxx.me

In theme config file Wikitten/_config.yml, you can read more detailed commentary for some options.

Before the start, plase first change my personal info to yourself, including options that profile social_links history_control and so on.

profile, comment, Share and miscellaneous are DEFAULT DISABLE!

(You still can enable them, but not recommend.)

other theme recommend settings:

# Customize
customize: # modify this information for yourself
    sidebar: left # sidebar position, options: left, right
    category_perExpand: false # enable article categories list per expanding
    default_index_file: index.md # enable this, it will display at site index instead of default index page, or disable that it will display more articles order by time 
    
# Widgets
widgets: # default use category only
    - category
    # - recent_posts
    # - archive
    # - tag
    # - tagcloud
    # - links
    
# History version 
history_control: # make you wiki has history version control in page (view source code, edit online, compare historical changes)
    enable: true
    server_link: https://github.com # recommend use GitHub - https://github.com
    user: <your GitHub name>
    repertory: <your repertory name of this wiki source code>
    branch: <branch name of this wiki site source code>

License

MIT LICENSE

More Repositories

1

react-dev-inspector

jump to local IDE code directly from browser React component by just a simple click
TypeScript
1,157
star
2

kugimiya-rainbow-fart

傲 娇 钉 宫,鞭 写 鞭 骂 - 钉宫理惠 vscode-rainbow-fart 扩展语音包
JavaScript
816
star
3

jovial

Jovial - A lovely zsh theme with responsive-design, it's pretty fast, keep simple but useful
Shell
462
star
4

python-Speech_Recognition

A simple example for use speech recognition baidu api with python.
Python
114
star
5

zsh-history-enquirer

plugin for zsh history search, enhance interaction
TypeScript
82
star
6

STM32-Contiki_Sensor_Smart_Home

Smart home drivers with contiki system | 2016TI杯四川区电设省赛一等奖
C
50
star
7

hexo-directory-category

Automatically add category to Hexo article according to the article file directory.
JavaScript
42
star
8

wiki-site

My personal knowledge management site.
CSS
37
star
9

STM32-W5500_TCP_Client

STM32F103 control W5500 as TCP client connect to TCP server.
C
25
star
10

init-macOS-dev

init my macOS development environment
Shell
22
star
11

slides

Some personal slides
CSS
16
star
12

TianVimrc

轻量级 vim 自使用配置,有一些符合我习惯的改键和增加快捷键等;
Vim Script
12
star
13

zthxxx.github.io

blog via vuepress
Vue
7
star
14

tweetopo

A simple spider for Twitter interpersonal topology.
Python
6
star
15

midk

Mapping MIDI keypress to PC keyboard, that you can work or code with your MIDI kerboard 🎉
TypeScript
5
star
16

prinalysis

print document with smart anlyze in cloud, printer & analysis, it's prinalysis.
Vue
4
star
17

LingoCaster

自用的一款在 Raycast 上完美复刻 Alfred 版 YoudaoTranslator 丝滑体验的查词翻译插件
TypeScript
4
star
18

archived-legacy-blog

This blog to record of life.
HTML
3
star
19

leetsolve

simple & light testing frame for LeetCode solutions with JavaScript
JavaScript
3
star
20

tsconfig

zthxxx's base tsconfig
3
star
21

STM32-FingerprintEntranceGuard

STM32-FingerprintEntranceGuard
C
3
star
22

dont-care-log

make git stage ignore specific log code line
JavaScript
2
star
23

zthxxx

profile for github.com/zthxxx
2
star
24

python-OpinionMonitoring

python for monitor public opinion
Python
2
star
25

CSharp-FingerprintEntranceGuardwindowsTerminal

CSharp Fingerprint Entrance Guard windows Terminal
C#
2
star
26

python-flask-IoT_Sensor_Web

A web to IoT Sensor with flask frame.
JavaScript
2
star
27

pikapika-tab

A pure New-Tab extension that could only customize backgrounds.
TypeScript
2
star
28

vectorial

[WIP] simple demo for a real-time collaborative Vector Path editing library
TypeScript
2
star
29

TunnelAssist

A SPA for assist calculate tube model
JavaScript
1
star
30

sniputils

🚀 snippet utils with powerful influence
Python
1
star
31

SSlaunch

run BBR, install shadowsocks, launch ssserver and print the config QRCode.
Shell
1
star
32

getrusage.js

system function getrusage() precompiled and binding for Nodejs
JavaScript
1
star
33

chicken-dinner-daily

daily punch for chicken dinner everyday
Python
1
star