We built this website to demonstrate our works on Design Engineering course. Learn more about Design Engineering and other team’s works, please visit this site.
This website is deployed on Github and powered by Hexo. Hexo is an easy-to-use frame for posting your blog. There are a lot of instructions about how to deploy a static blog site using github and hexo. Just google it!
After you’ve successfully deployed, you can choose a theme you like on https://hexo.io/themes/. And we finally decided to pick Minima for this site. It’s just so good-looking!
You can visit our github stars page to find a good-looking theme where we select some themes thought it’s good. Also, there are a lot of blog frames you can choose, like JekyII.
Sign up for a github account
Create a repository named yourID.github.io, i.e. zjudesign.github.io
Visit yourID.github.io to see if it works
Create a file to store your website data on your local device(we are using Windows here)
Into this file->right click->Git Bash Here
Input npm i hexo-cli -g
and waiting for hexo installing finished
After successfully installed hexo , text hexo init yourblogname
to initialize your hexo file and after initializing, hexo have created a file named your blog name.
text hexo g
and hexo s
to see if hexo working in terminal.
Input git config --global user.name "yourID"
and git config --global user.email "youremail@email.com"
in Git Bash
ssh -keygen -t -C "youremail@email.com"
Open github.com->settings->SSH and GPG keys->Hew SSH->input a name you like
On your local device, text cat ~/.ssh/id_rsa.pub
in Git Bash
Copy the output and paste it in your github SSH input box
ssh -T git@github.com
in Git Bash to check if the output shows your github ID
open _config.yml
in your local file, edit the followings
deploy:
type: git
repository: https://github.com/yourID/yourID.github.io
branch: master
Finally, hexo deply
to deploy it to your github
For more detailed information, check the links below.
Bye!
— Sep 22, 2022
Made with ❤ and at ZJU.