Skip to content
The main site for kaiyuanshe
HTML CSS JavaScript
Branch: hexo
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
scaffolds [ Add ] Framework of Hexo wiki Mar 1, 2019
source @ bde5d05 [Add] Post TOC Aug 10, 2019
themes/Electron [Add] Post TOC Aug 10, 2019
.editorconfig [ Add ] Framework of Hexo wiki Mar 1, 2019
.gitattributes [ Optimize ] Support Description, Category, Tag & Photo of Blog posts Mar 17, 2019
.gitignore [Optimize] Fix details Aug 2, 2019
.gitmodules [ Migrate ] Move Source files to an independent repository Mar 29, 2019
.travis.yml
License [ Optimize ] Several details Apr 5, 2019
ReadMe.md [Fix] Few bugs Aug 10, 2019
_config.yml [Fix] Few bugs Aug 10, 2019
package.json [Fix] Several details Aug 4, 2019

ReadMe.md

开源社官网

Build Status

参与开发

改版需求表

请务必先做好数据子库的准备

安装

# 若网速慢,可启用以下环境变量
# GIT_LFS_SKIP_SMUDGE=1

git clone --recurse-submodules \
  https://github.com/kaiyuanshe/kaiyuanshe.github.io.git \
  ~/Desktop/KaiYuanShe/OWS/

cd ~/Desktop/KaiYuanShe/OWS/

npm install  &&  npm start

写作

cd ~/Desktop/KaiYuanShe/OWS/

hexo new "My Post title"

cd source/

git checkout master  # 确保子模块在 master 分支,否则提交推送后会丢失

code _post/My-Post-title.md  # 用你喜欢的文本编辑器写作

git add _post/My-Post-title.md

git commit -m "[ Add ]  A new Post"

git push

开发

cd ~/Desktop/KaiYuanShe/OWS/

git submodule update --remote  # 程序开发后要同步文章目录

git add .

git commit -m "[ Add ]  A new Feature"

git push

鸣谢

You can’t perform that action at this time.