#repository
- scott repository
-
scaffolds (this is for layout, like post draft)
-
source (this is for post, image, tags, categories)
-
_config.yml
-
readme.md
-
- theme repository (next)
- _config.yml (for theme config)
- readme.md (for the dependencies)
- layout (custom change)
- scripts
- source
- css
- fonts
- images
- js
- lib (do not contain)
-
step 0: setting environment
install npm install git npm install -g hexo-cli
-
step 1: init hexo
hexo init <folder> cd <folder> rm -rf scaffolds/ source/ _config.yml package.json README.md .gitignore package-lock.json db.json README.md git init git remote -v git remote add origin [email protected]:janescottcn/scott.git git remote set-url origin [email protected]:janescottcn/scott.git git remote add origin https://github.com/janescottcn/scott.git git remote set-url origin https://github.com/janescottcn/scott.git git pull git branch --set-upstream-to origin/master master
-
step 2: change the theme
git clone https://github.com/theme-next/hexo-theme-next themes/next cd themes/next rm -rf layout/ scripts/ source/css source/fonts source/images source/js .github README.md .gitignore _config.yml package.json languages/ rm -rf .git .gitattributes git init git remote add origin https://github.com/janescottcn/next.git git remote add origin [email protected]:janescottcn/next.git git pull origin master git branch --set-upstream-to origin/master master
-
step 3: add dependencies
git clone https://github.com/theme-next/theme-next-reading-progress source/lib/reading_progress git clone https://github.com/theme-next/theme-next-pace source/lib/pace git clone https://github.com/theme-next/theme-next-canvas-nest source/lib/canvas-nest
-
step 0: software
- install git
- install github desktop
- install typora for markdown
-
step 1: init repository
git clone https://github.com/janescottcn/scott.git posts
-
step 2: write
- you can upload your images into source/images
- you can create post in source/_posts
- you can modify about post in source/about/index.md
-
step 2: upload