Fonts Configuration and different fonts for heading and body? #733
-
Hi Folks, I need help with two things related to fonts:
I have looked at different documentation and example site code: Here's how my config file looks:
And here's how my fonts directory looks:
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
You can configure multiple fonts and apply them to different elements of your site. The following example configures Define the font stack in [style]
themeFont = "Fira Sans, PT Serif"
themeFontPath = "/fonts" # local path Use the google-webfonts-helper to download the two fonts. Copy the font files to your local Hinode now uses h1, h2, h3, h4, h5, h6, .display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
font-family: 'PT Serif';
} A temporary demo repository is available on GitHub. I've updated the docs with the above explanation too. |
Beta Was this translation helpful? Give feedback.
-
Perfect, very graceful. |
Beta Was this translation helpful? Give feedback.
You can configure multiple fonts and apply them to different elements of your site. The following example configures
Fira Sans
as default font. It then configuresPT Serif
font to headings and display headings specifically.Define the font stack in
params.toml
, separating the family names by a comma:Use the google-webfonts-helper to download the two fonts. Copy the font files to your local
static/fonts
directory. Put the font face definitions in a new fileassets/scss/theme/fonts.scss
.Hinode now uses
Fira Sans
as default font for the entire site, as it is the first font in our custom font stack. We c…