Contributing to ilugc.in
- Login to Github using your github account credentials.
- Fork ilugc.in website repo into your account.
Before you clone your copy of ilugc.in website repo to your local machine, you need to install these required softwares,
Following commands will install Both requirements in Ubuntu 20.04
$ sudo apt install git hugo
Once you done installing the required packages, clone your copy of ilugc.in website repo like below
$ git clone --recurse-submodules email@example.com:foouser/ilugc.in.git
Once clone completed, ilugc.in directory will be created, go inside ilugc.in directory and run Hugo,
$ hugo server
Hugo will run by default in http://localhost:1313 address, keep Hugo running and start adding your blog post under content/post/year/ inside ilugc.in directory. The filename of your blog post should end with .md extension. Hugo will automatically show your blog post through http://localhost:1313. Here is one example blog post, this blog post is saved as “content/post/2020/example-blog-post-2020.md” under ilugc.in directory.
--- title: Example Blog Post url: /example-blog-post date: 2020-06-15T19:24:31+05:30 author: Foo --- This is an Example Blog Post. The field **date** in the header is generated using `date -Iseconds` command.
Once you are satisfied with your blog post, commit your changes and push your changes into your own fork of ilugc.in website repo,
git add -A git commit -m 'wrote my first blog post' git push origin master
Once your pull request merged, it will start appear in ilugc.in