Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Requesting Assistance] Importing Font via custom.css #720

Open
syphant opened this issue Nov 9, 2023 · 0 comments
Open

[Requesting Assistance] Importing Font via custom.css #720

syphant opened this issue Nov 9, 2023 · 0 comments

Comments

@syphant
Copy link

syphant commented Nov 9, 2023

Total noob here.
This isn't a bug per se but I'm not sure why I can't seem to get a custom font working in Homer.

My config.yml contains the below:

stylesheet:
   - "assets/custom.css"

And my custom.css consists entirely of the following:

@font-face {
  font-family: "JetBrains Mono";
  src: url("./fonts/JetBrainsMono-Regular.woff2") format("woff2");
  src: url("./fonts/JetBrainsMono-Regular.ttf") format("truetype");
}

body h1, body h2, body h3, body h4, body h5, body h6 {
  font-family: "JetBrains Mono";
}

But no dice.
Can anyone steer me in the right direction?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant