Blog made using Jekyll and Github pages. Woohoo!
The theme is a custom one built on top of Emerald.
Change colors used across the blog by changing the respective values in base.scss
$main-color: #173D48;
$background-color: #FDFDFD;
$text-color: #333333;
To change the header image
header-background.jpg
in images folder.{% include google_analytics.html %}
in head.htmlYou can add your relevant code to post.html
Add the markdown file in _pages folder.
Some helper scripts have been added to ease the process of creating the markdown for post with front matter already added.
Add the markdown file in _posts folder.
Alternatively, use publish.sh to convert a simple markdown to a post and add tags to it.
Usage: ./publish.sh <path-to-post-file> <title-of-post> <tags>
Note: assumes post file to be markdown
Add create-post as submodule. Now you can use create-post in the repo to create new posts.
$ ./create-post --help
usage: create-post.py [-h] [--dir DIR] [--ext EXT] [--title TITLE] [--version]
Create sample post file to be used by Jekyll
optional arguments:
-h, --help show this help message and exit
--dir DIR Directory path to write the sample post in. Default: _posts/
--ext EXT Extension type for the post. Default: .md
--title TITLE Title of the post. Default: title
--version show program's version number and exit
Add tag DO_NOT_SHOW_IN_POSTS
to such a post. It will be skipped when showing feed.
Check this post for example.
As your writing skills improve, you might feel that your old posts are not well written or have become obsolete. Instead of removing them, you can archive them so that they are not shown in the index page of your site, but are still accessible to anyone who wants to have a look.
The Archive
page is linked at the bottom with the page numbers of your blog.
To mark a post as archived, add tag ARCHIVE
to such a post.
Check this post for example.
Note: this impacts pagination since you might have less posts in a page as you intended.
bundle exec jekyll serve
will start the site on http://localhost:4000.
Ayush Goel, ayushgoel111@gmail.com