Published 2020-10-03.
Last modified 2023-05-18.
Time to read: 1 minutes.
This page is part of the
jekyll_plugins
collection.
jekyll_badge
displays a badge for a software package on pages in Jekyll-powered web.
You can see the badge for this package to the right.
The software version of the package is shown.
Clicking on the badge takes you to its information page.
Installation
Add the following highlighted line to your Jekyll project's Gemfile
,
within the jekyll_plugins
group:
Shell
group :jekyll_plugins do gem 'jekyll_badge' end
And then execute:
Shell
$ bundle
Usage Examples
The code on the left generates the badge on the right:
Shell
{% jekyll_badge align='right' name='jekyll_pre' %}
Shell
{% jekyll_badge align='right' class='bg_yellow rounded shadow' name='jekyll_pre' %}
Shell
{% jekyll_badge align='right' class='bg_pink rounded shadow' label='Jekyll Pre' name='jekyll_pre' style='border: dashed;' %}