Mike Slinn
Mike Slinn

jekyll_badge

Published 2020-10-03. Last modified 2023-05-18.
Time to read: 1 minutes.

This page is part of the jekyll_plugins collection, categorized under Jekyll.

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;'
%}


* indicates a required field.

Please select the following to receive Mike Slinn’s newsletter:

You can unsubscribe at any time by clicking the link in the footer of emails.

Mike Slinn uses Mailchimp as his marketing platform. By clicking below to subscribe, you acknowledge that your information will be transferred to Mailchimp for processing. Learn more about Mailchimp’s privacy practices.