jekyll-octicons
The Jekyll liquid tag is a plugin that lets you include octicons in your Jekyll sites.
Install
-
Add this to your
Gemfile
rb gem 'jekyll-octicons'
-
Add this to your jekyll
_config.yml
yml plugins: - jekyll-octicons
-
Use this tag in your jekyll templates
{% octicon alert height:32 class:"right left" aria-label:hi %}
We recommend including the CSS in the @primer/octicons
npm module. You can also npm install that package and include build/build.css
in your styles.