diff --git a/.eleventy.js b/.eleventy.js
index bc664c1..537b9b6 100644
--- a/.eleventy.js
+++ b/.eleventy.js
@@ -3,7 +3,9 @@ const syntaxHighlightingPlugin = require("@11ty/eleventy-plugin-syntaxhighlight"
const markdownIt = require('markdown-it');
const markdownItClass = require('@toycode/markdown-it-class');
const markdownItAnchor = require('markdown-it-anchor')
-
+const library = require('@fortawesome/fontawesome-svg-core').library;
+const icon = require('@fortawesome/fontawesome-svg-core').icon;
+const fas = require('@fortawesome/free-solid-svg-icons').fas;
module.exports = function(eleventyConfig) {
eleventyConfig.addPlugin(navigationPlugin)
@@ -12,7 +14,12 @@ module.exports = function(eleventyConfig) {
eleventyConfig.addPassthroughCopy("assets")
eleventyConfig.addPassthroughCopy("fonts")
- eleventyConfig.addShortcode("fas_icon", function(name) { return `` })
+ // Font Awesome Icons
+ library.add(fas)
+ eleventyConfig.addShortcode("fas_icon", function(args) {
+ var fas_svg = icon({ prefix: 'fas', iconName: args });
+ return `${fas_svg.html}`;
+ });
const mapping = {
h2: 'content-title',h3: 'content-title',h4: 'content-title',h5: 'content-title',h6: 'content-title',
diff --git a/content/_includes/default_layout.njk b/content/_includes/default_layout.njk
index bb4864c..d2251f0 100644
--- a/content/_includes/default_layout.njk
+++ b/content/_includes/default_layout.njk
@@ -16,9 +16,8 @@
-
-
-
+
+
@@ -31,8 +30,8 @@
-
-
+
+
{% if page.url != '/' %}