--- title: Icons tags: [formatting] keywords: font icons, buttons, images, vectors, font awesome, glyphicons last_updated: July 16, 2016 summary: "You can integrate font icons through the Font Awesome and Glyphical Halflings libraries. These libraries allow you to embed icons through their libraries delivered as a link reference. You don't need any image libraries downloaded in your project." sidebar: mydoc_sidebar permalink: mydoc_icons.html folder: mydoc --- ## Font icon options The theme has two font icon sets integrated: Font Awesome and Glyphicons Halflings. The latter is part of Bootstrap, while the former is independent. Font icons allow you to insert icons drawn as vectors from a CDN (so you don't have any local images on your own site). ## External icons When you link to an external site, like [Jekyll](http://jekyllrb.com), an icon appears after the link. If you want to remove this icon, comment out this style in css/customstyles.css. ```css /* this part adds an icon after external links, using FontAwesome*/ a[href^="http://"]:after, a[href^="https://"]:after { content: "\f08e"; font-family: FontAwesome; font-weight: normal; font-style: normal; display: inline-block; text-decoration: none; padding-left: 3px; } ``` ## See Font Awesome icons available Go to the [Font Awesome library](http://fortawesome.github.io/Font-Awesome/icons/) to see the available icons. The Font Awesome icons allow you to adjust their size by simply adding `fa-2x`, `fa-3x` and so forth as a class to the icon to adjust their size to two times or three times the original size. As vector icons, they scale crisply at any size. Here's an example of how to scale up a camera icon: ```html normal size (1x) fa-lg fa-2x fa-3x fa-4x fa-5x ``` Here's what they render to: 1x fa-lg fa-2x fa-3x fa-4x fa-5x With Font Awesome, you always use the `i` tag with the appropriate class. You also implement `fa` as a base class first. You can use font awesome icons inside other elements. Here I'm using a Font Awesome class inside a Bootstrap alert: ```html