Last active
August 21, 2019 08:48
-
-
Save JenZhao/c10e8b3a967497c7d2ffc940f17ac373 to your computer and use it in GitHub Desktop.
Install Hexo on Mac
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# install NodeJS | |
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.2/install.sh | bash | |
nvm install stable | |
# install hexo | |
npm install -g hexo-cli | |
# initialize | |
echo "Please enter your github name: " | |
read github_name | |
folder="$github_name.github.io" | |
hexo init $folder | |
cd $folder | |
# install theme | |
hexo clean | |
git clone https://github.com/iissnan/hexo-theme-next.git themes/next |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment