K
K
kirillgenets2019-06-18 21:14:50
css
kirillgenets, 2019-06-18 21:14:50

Why doesn't github pages see fonts included via @font-face?

Hello. Github Pages takes the site from the docs folder at the root of the repository. Everything is displayed correctly, except for the fonts. For some reason, the site does not see fonts connected via @font-face from the fonts folder (which is also evidenced by errors in the browser console). When I build a site with gulp on my computer, everything works and connects correctly. What could be the problem?
Screenshot of docs folder:
5d092976b5aaf403204689.png
Screenshot of fonts folder:
5d0929de80390085880352.png
Screenshot of @font-face:
5d0929fe7df09002337989.png
Screenshot of console error:
5d092a158582e441959612.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ivan Bogachev, 2019-06-18
@sfi0zy

What could be the problem?

The fact that your file names start with a capital letter, and in CSS you write them with a small one.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question