1
0
mirror of https://github.com/alanorth/hugo-theme-bootstrap4-blog.git synced 2024-12-19 09:02:18 +01:00
hugo-theme-bootstrap4-blog/source/js/fontawesome.js

14 lines
505 B
JavaScript
Raw Normal View History

import { library, dom } from '@fortawesome/fontawesome-svg-core'
import { faFolder, faTag } from '@fortawesome/free-solid-svg-icons'
import { faFacebookF, faTwitter, faLinkedinIn } from '@fortawesome/free-brands-svg-icons'
// Add solid icons to our library
library.add(faFolder, faTag)
// Add brand icons to our library
library.add(faFacebookF, faTwitter, faLinkedinIn)
// Replace any existing <i> tags with <svg> and set up a MutationObserver to
// continue doing this as the DOM changes.
dom.watch()