Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/swathimystery/jekyll-tag-gen
A shell script which generates tags for your jekyll based blogs and enable tag based search - No plugin required.
https://github.com/swathimystery/jekyll-tag-gen
blog jekyll search static tagging
Last synced: about 4 hours ago
JSON representation
A shell script which generates tags for your jekyll based blogs and enable tag based search - No plugin required.
- Host: GitHub
- URL: https://github.com/swathimystery/jekyll-tag-gen
- Owner: SwathiMystery
- License: mit
- Created: 2015-09-08T23:46:54.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-09-10T18:40:47.000Z (over 9 years ago)
- Last Synced: 2023-03-23T04:03:59.609Z (almost 2 years ago)
- Topics: blog, jekyll, search, static, tagging
- Language: Shell
- Homepage:
- Size: 145 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# jekyll-tag-gen
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.## How to execute?
- 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
from `jekyll-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`## How to verify?
- 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
---
```
## How does it look?
- Execute `jekyll serve --watch`
- Open the Browser, hit the URL [Blog](http://localhost:4000/tag/jekyll) , to see all `jekyll` tags
## Contributing
This script was written when I was about fall :sleeping: , so if you get to catch any bug or see any issue, please feel free to raise an issue!Happy Tagging! :smile: