- You need a
github
account. - Install hugo following this page.
OR:
If you are an
R
user, you can install R packageblogdown
and then install hugo using blogdown.
install.packages("devtools")
devtools::install_github('rstudio/blogdown')
### install hugo
blogdown::install_hugo()
git clone git@github.com:<USERNAME>/cgmonline.git
cd cgmonline
git remote add upstream https://github.com/cgmonline/cgmonline.git
git remote -v
You should see:
origin https://github.com/<USERNAME>/cgmonline (fetch)
origin https://github.com/<USERNAME>/cgmonline (push)
upstream https://github.com/cgmonline/cgmonline (fetch)
upstream https://github.com/cgmonline/cgmonline (push)
Sync your local repo with the main cgm repo:
git fetch upstream
git checkout master
git merge upstream/master
Modify the content/coming.md
file accordingly.
Create or edit files in content/post/
in your local repo.
Note, to add a new post, follow our naming convention year-month-day-some-words-as-title.md
.
You need an imgur account to post a nice picture that normally just obtained from google as a thumbnail.
Run the following command to compile the md file into html, git add and git commit.
sh deploy.sh
The MIT License (MIT), Copyright (c) 2019.