Jekyll-Migration: How to add Fontsawesome #579
-
Hi, Things went smooth, there are only two tasks left. First, the head of the original contains a reference to a javascript file. I included it in the bridgetown-head. This is the head of the rendered page
Question: Which is the right place to include the javascript-file. Can I just modify Second: |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
Pushed the unfinished template to https://github.com/topofocus/cookie |
Beta Was this translation helpful? Give feedback.
-
Hi @topofocus, you can add any JS you want to You can add fonts to |
Beta Was this translation helpful? Give feedback.
-
I had the same issue but hadn't seen this discussion. The blog itself is still using Jekyll, I'm halfway through migrating to Bridgetown. Getting rid of liquid is a long-awaited relief! |
Beta Was this translation helpful? Give feedback.
Hi @topofocus, you can add any JS you want to
frontend/javascript/index.js
and it should just get picked up. (Note that you do need to work within modern module-style programming…aka global variables don't actually become global unless you use awindow.myVar =
style.)You can add fonts to
frontend/fonts
and reference them via relative URLs in a CSS containing your@font-face
declarations.