Replies: 2 comments
-
On my personal site, I have my font files in You might be able to do some of that using the I think we would probably be happy to accept PRs to make this kind of customization easier, or clearer in the docs! |
Beta Was this translation helpful? Give feedback.
-
Thanks! I will give that a go and see what happens! I really appreciate
the quick response and I think the theme is excellent!
…On Sun, Jul 31, 2022 at 10:21 PM Ivan Boothe ***@***.***> wrote:
On my personal site, I have my font files in /static/fonts. I have a Sass
partial
<https://github.com/rootwork/rootwork.org/blob/main/hugo/assets/sass/vars/_fonts.scss>
that uses code generated by Google Webfonts Helper
<https://google-webfonts-helper.herokuapp.com/fonts> to reference the
font files, and then at the bottom sets the CSS variables. (I have my Sass
partials imported separately to _override.scss, but you could just put
all of this directly in that file, too.) Finally, I have the customFonts
option in config
<https://github.com/chipzoller/hugo-clarity/#global-parameters> set to
true to prevent default font files from loading.
You might be able to do some of that using the customCSS option
<https://github.com/chipzoller/hugo-clarity/#custom-css-and-js> too, if
you wanted.
I think we would probably be happy to accept PRs to make this kind of
customization easier, or clearer in the docs!
—
Reply to this email directly, view it on GitHub
<#369 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/A2GJPYZJ2B6NPYUPXBM5KDTVW4YDXANCNFSM55F2C4HQ>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
What is the recommended way to add a font? I have my own font that is in .woff format and I am not sure where to put all of the good bits for it to work. I have checked the documentation and did not see anything obvious about adding fonts.
Beta Was this translation helpful? Give feedback.
All reactions