Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork3
Jekyll `related_posts` function based on tags.
License
toshimaru/jekyll-tagging-related_posts
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Jekyllrelated_posts
function based on tags (works on Jekyll3). It replaces original Jekyll'srelated_posts
function to use tags to calculate relationships.
The calculation algorithm is based onrelated_posts-jekyll_plugin by@LawrenceWoodman.
Add this line to your application'sGemfile
:
gem'jekyll-tagging-related_posts'
And then execute:
$ bundle
Or install it yourself as:
$ gem install jekyll-tagging-related_posts
Edit_config.yml
to use the plug-in:
gems: -jekyll-tagging-related_posts
Then, addsite.related_posts
in your post layout page. For example:
{%ifsite.related_posts.size>=1 %}<div> <h3>Related Posts</h3> <ul> {%forrelated_postinsite.related_postslimit:5 %} <li><ahref="{{related_post.url }}">{{related_post.title }}</a></li> {%endfor %} </ul></div>{%endif %}
After checking out the repo, runbin/setup
to install dependencies. Then, runrake test
to run the tests. You can also runbin/console
for an interactive prompt that will allow you to experiment.
Bug reports and pull requests are welcome on GitHub athttps://github.com/toshimaru/jekyll-tagging-related_posts/issues. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to theContributor Covenant code of conduct.
The gem is available as open source under the terms of theMIT License.
About
Jekyll `related_posts` function based on tags.
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Sponsor this project
Uh oh!
There was an error while loading.Please reload this page.
Packages0
Uh oh!
There was an error while loading.Please reload this page.
Contributors3
Uh oh!
There was an error while loading.Please reload this page.