A simple shell script which generates the directories and a file in the following structure.
tag/${TAG_NAME}/index.html
in your ${REPOSITORY_HOME}
. It will add the necessary content in each of those index.html
file.
- Make changes to script
generate_tags.sh
by editing it with the name of your$REPO
ie.domain.name.com
. This is one-time effort.
BLOG_URL="femgeekz.github.io"
- Please check if you have
_layouts/tag_index.html
. If you don't have one, you may copy fromjekyll-tag-gen/_layouts/tag_index.html
. If you would like to keep your own version of tag layout, please change the name of tag layout here in the script
TAG_LAYOUT_FILE_NAME="tag_index"
- Now, execute it with the command
./generate_tags.sh
- You should now be able to see
tag
directory and tag named directories in it. - Inside each of those tags, you can see index.html with the content as below.
For
jekyll
tag,
---
layout: tag_index
tag: jekyll
---
- Execute
jekyll serve --watch
- Open the Browser, hit the URL Blog , to see all
jekyll
tags
This script was written when I was about fall 😴 , so if you get to catch any bug or see any issue, please feel free to raise an issue!
Happy Tagging! 😄