
Research
/Security News
Malicious Chrome and Firefox Extensions Steal Crypto Traders’ Session and Wallet Data
Malicious Chrome and Firefox extensions target Axiom Trade and Padre users, stealing session tokens and wallet data.
@11ty/font-awesome
Advanced tools
@11ty/font-awesomeOptimized per-page tree-shaken SVG spritesheets for Eleventy with Font Awesome icons.
Requires Eleventy v3.0.1 or newer.
<i class="fa-regular fa-user"></i>).Install via npm at @11ty/font-awesome:
npm install @11ty/font-awesome
Add to your configuration file:
import fontAwesomePlugin from "@11ty/font-awesome";
export default function(eleventyConfig) {
eleventyConfig.addPlugin(fontAwesomePlugin);
};
Add the HTML markup from any of the 2000+ free icons from the Font Awesome library directly into any Eleventy template type (yes, Markdown, too) (e.g. <i class="fa-regular fa-user"></i>):
Somewhere on your page (probably in an Eleventy Layout file), you’ll want to output the spritesheet from the Bundle Plugin:
<!-- e.g. _includes/layout.njk -->
<main>
{{ content | safe }}
</main>
<!-- outputs all the icons used on the page -->
{% getBundle "fontawesome" %}
Read more on the available package sets on the Font Awesome docs.
import fontAwesomePlugin from "@11ty/font-awesome";
import { fas } from "@fortawesome/pro-solid-svg-icons";
import { far } from "@fortawesome/pro-regular-svg-icons";
import { fal } from "@fortawesome/pro-light-svg-icons";
import { fat } from "@fortawesome/pro-thin-svg-icons";
import { fad } from "@fortawesome/pro-duotone-svg-icons";
import { fass } from "@fortawesome/sharp-solid-svg-icons";
import { fasr } from "@fortawesome/sharp-regular-svg-icons";
import { fasl } from "@fortawesome/sharp-light-svg-icons";
import { fast } from "@fortawesome/sharp-thin-svg-icons";
import { fasds } from "@fortawesome/sharp-duotone-solid-svg-icons";
import { all } from '@awesome.me/kit-KIT_CODE/icons'
export default function(eleventyConfig) {
eleventyConfig.addPlugin(fontAwesomePlugin, {
sets: [fas, far, fal, fat, fad, fass, fasr, fasl, fast, fasds],
})
};
Alternatively, you can add to the Font Awesome library directly:
library.add(fas, far, fal, fat, fad, fass, fasr, fasl, fast, fasds);
// Kit icons
library.add(...all);
export default function(eleventyConfig) {
eleventyConfig.addPlugin(fontAwesomePlugin)
};
This plugin will work alongside and play nicely with existing Font Awesome clientside JavaScript. If your Eleventy plugin bundle does not include an icon it will fail gracefully to be picked up by the clientside Font Awesome JavaScript library.
import fontAwesomePlugin from "@11ty/font-awesome";
export default function(eleventyConfig) {
eleventyConfig.addPlugin(fontAwesomePlugin, {
transform: false, // disable the Eleventy transform
shortcode: "icon",
})
};
The above configuration will create a {% icon %} shortcode than can be used in templates like this (instead of the Eleventy transform and direct HTML usage):
{% icon "fab:font-awesome" %} Font Awesome
You’ll still need to use {% getBundle "fontawesome" %} as noted above to output the spritesheet.
Defaults shown.
import fontAwesomePlugin from "@11ty/font-awesome";
export default function(eleventyConfig) {
eleventyConfig.addPlugin(fontAwesomePlugin, {
sets: false, // Array of additional icon sets
transform: "i[class]", // Selector for icons, set falsy to disable the transform
shortcode: false, // Optional shortcode name (string), false will disable
bundle: "fontawesome", // Rename the Bundle Plugin name
failOnError: false, // Whether to fail when an icon is not found
defaultAttributes: {}, // Used in shortcode and transform <svg> output
})
};
FAQs
Optimized per-page tree-shaken SVG spritesheets for Eleventy.
The npm package @11ty/font-awesome receives a total of 221 weekly downloads. As such, @11ty/font-awesome popularity was classified as not popular.
We found that @11ty/font-awesome demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.

Research
/Security News
Malicious Chrome and Firefox extensions target Axiom Trade and Padre users, stealing session tokens and wallet data.

Security News
GPT-6 Astra hits 100% on ExploitBench and finds zero-days autonomously, while independent tests reveal scope violations and monitoring gaps.

Product
Socket can now send alerts and supply chain attack notifications to Microsoft Teams, with filters that route the right updates to each channel.