This blog uses a static site generator Hexo and Github Pages. To contribute, please refer to the instructions below
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
Install nodejs You may find an installer for your operating system here.
Install hexo.
npm install hexo-cli -g
Now that you have the prerequisite softwares, follow the steps below to set up this project in your local machine.
Clone this repository
$ git clone [email protected]:2359media/2359media.github.io.git
Install dependencies
$ cd 2359media.github.io
$ npm install
Check that you are able to run the project
$ hexo server
# Open a web browser and go to http://localhost:4000. You should be able to see the blog
Create a new branch with the post name
$ git checkout -b how-to-be-awesome-in-ios
Run the following command to generate a new post
$ hexo new post how-to-be-awesome-in-ios
# A new file called 'how-to-be-awesome-in-ios.md' will be created in /source/_post
The article can be written using markdown syntax. You may refer to this website for reference.
When you are done writing your article, commit your changes and push to Github.
On Github, create a pull request to merge your code to source
branch.
Deployment will only be done by the platform leads. Follow the instruction below to deploy the latest changes to the website.
Pull the latest change in source
branch
$ git checkout source
$ git pull
Clean cache and public folder
$ hexo clean
Deploy!
$ hexo deploy
Add additional notes about how to deploy this on a live system