dmulholl / ark

A static website generator for people who enjoy the simpler things in life.
https://www.dmulholl.com/docs/ark/master/
The Unlicense
118 stars 7 forks source link

Failed to change fonts #16

Closed kardusenor closed 2 years ago

kardusenor commented 2 years ago

I am trying to add Chinese fonts in graphite theme. I have downloaded necessary fonts in fonts\ folder and add it to fonts.css. After that, I tried to change graphite.css file's 57th line (maybe different in your device), from font-family: 'Crimson Text', Georgia, serif; to font-family: 'LXGW WenKai', sans-serif, but it didn't work after build and serve.

dmulholl commented 2 years ago

It sounds like the old CSS file is stuck in your browser's cache.

Try hitting Cmd-Shift-R (Mac) or Ctrl-Shift-R (Linux, Windows) to force the browser to load the new CSS file.

If all else fails you can change the

<link rel="stylesheet" href="@root/assets/theme.css">

line in the theme's node.ibis file to

<link rel="stylesheet" href="@root/assets/theme.css?timestamp={{ site.timestamp }}">

to add a cache-busting timestamp. That should force the browser to reload the CSS after every build.

kardusenor commented 2 years ago

It sounds like the old CSS file is stuck in your browser's cache.

Try hitting Cmd-Shift-R (Mac) or Ctrl-Shift-R (Linux, Windows) to force the browser to load the new CSS file.

If all else fails you can change the

<link rel="stylesheet" href="@root/assets/theme.css">

line in the theme's node.ibis file to

<link rel="stylesheet" href="@root/assets/theme.css?timestamp={{ site.timestamp }}">

to add a cache-busting timestamp. That should force the browser to reload the CSS after every build.

Fixed. Thanks!