Socket
Book a DemoInstallSign in
Socket

jekyll_social_icons

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jekyll_social_icons

0.1.0
bundlerRubygems
Version published
Maintainers
1
Created
Source

Jekyll Social Icons

Gem

Jekyll Social Icons plugin allows you rendering your social networks on your Jekyll project.

1. Installation

  • Add the following to your site's Gemfile:
gem 'jekyll_social_icons'
  • Add the following to your site's _config.yml:
gems:
  - jekyll_social_icons
  • Run bundle install in your command line:
$ bundle install

2. Usage

2.1. Configuration

Add your social networks URLs to the _config.yml file:

socials:
  twitter: https://twitter.com/unabris
  github: https://github.com/unabris

Here is a full list of all the available social networks: facebook, twitter, google-plus, instagram, linkedin, youtube, github and rss.

2.2. Rendering

Use {% social_icons %} Jekyll Tag to render all your configured social networks with the default styling. For example, the configuration above will render this html content:

<div class="social-container" id="" style="">
  <div class="social" style="">
    <a href="https://twitter.com/unabris" target="_blank">
      <i class="fa fa-fw fa-twitter" style=""></i>
    </a>
  </div>
  <div class="social" style="">
    <a href="https://github.com/unabris" target="_blank">
      <i class="fa fa-fw fa-github" style=""></i>
    </a>
  </div>
</div>

You can also specify the social networks you want to render adding them to the Jekyll Tag this way:

{% social_icons twitter github %}

2.3. Styling

There are so many attributes you can use to customize the style of your social networks icons. To use them, just add the attribute and the value you want to the social_icons Jekyll Tag this way:

{% social_icons twitter github id="footer-icons" width="30px" height="30px" radius="100%" %}

Here is a full list of all the available attributes with their default values:

OptionDescriptionDefault
idOne or more ids separated by a space. This ids are going to be added at the same level than the main social-container class.-
classOne or more classes separated by a space. This classes are going to be added to the main social-container class.-
widthThe width of the social networks icons.50px
heightThe height of the social networks icons.50px
alignOne of left, center or right.center
marginThe margin between the different social icons you want to render.10px
radiusThe border radius of the social icons. Put 100% if you want circle icons.0
sizeThe size of the social networks brand image.30px

3. Contributing

  • Fork it
  • Create your feature branch (git checkout -b my-new-feature)
  • Commit your changes (git commit -am 'Add some feature')
  • Push to the branch (git push origin my-new-feature)
  • Create a new Pull Request

4. License

The gem is available as open source under the terms of the MIT License.

FAQs

Package last updated on 18 May 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.