Closed benoliver999 closed 3 years ago
I'm not sure if they are related, but it looks like your second @font-face
doesn't have a closing }
.
I can look into this sometime soon. If you have the time, please create a minimal bug reproduction jekyll project that I can clone and play around in.
Thanks for the bug report!
Thank you! I double checked, the closing }
was a copy paste error, it is not on the main site.
I there's a test repo here: https://github.com/benoliver999/bfo-alt
It's a clone of my exact project minus most of the posts and images to save on size
Can you provide setup instructions? I'm running into a problem installing the brotli gem.
nvm, problem on my end, i have it running and reproduced the issue.
I swapped all the single quotes in font-family
and src
to double quotes, and it seems to work!
I had a similar problem, using Google Fonts.
---
---
/* Front matter is necessary for Jekyll */
@import "tailwindcss/base";
@import "tailwindcss/components";
/* Write your styles below this line. */
@import url("https://fonts.googleapis.com/css2?family=Fira+Sans:wght@300;400;600;700&display=swap");
/* @import "heroicons"; */
/* Write your styles above this line. */
@tailwind utilities;
Results in:
SyntaxError: Unexpected end of JSON input
Changing (single quotes:)
@import url('https://fonts.googleapis.com/css2?family=Fira+Sans:wght@300;400;600;700&display=swap');
to (double quotes:)
@import url("https://fonts.googleapis.com/css2?family=Fira+Sans:wght@300;400;600;700&display=swap");
Resolves the issue.
I am getting the following error in a
production
env since I added a@font-face
definition tocss/main.css
:I am using tailwind, and
main.css
looks like this:If I remove
@font-face
, everything works fine.In a
development
ENV, everything is fine also.I am also using
jekyll-purgecss
, I should add.Are you seeing any errors like this?