Description:
I’m using the hugo-hero-theme
. When running the site locally with hugo server -FD
, fonts render as expected. However, after building with hugo -FD
and deploying to production, the font sizes appear significantly larger.
What I’ve checked so far:
- Cleared browser cache—issue persists.
- No explicit font-size overrides in
config.toml
. - DevTools shows the same CSS rules being applied, but the rendered result differs.
Question:
What could be causing this discrepancy? Could Hugo or the theme process fonts differently in development vs. production builds?
hugo.toml:
baseURL = 'https://myurl.ru/'
theme = 'hugo-hero-theme'
DefaultContentLanguage = "ru"
defaultContentLanguageInSubdir = true
[module]
[module.hugoVersion]
extended = true
min = "0.92.0"
[params]
google_analytics_id=""
[params.logo]
mobile = "images/logo-mobile.svg"
mobile_height = "36px"
mobile_width = "36px"
desktop = "images/logo.svg"
desktop_height = "29px"
desktop_width = "217px"
alt = "My Alt"
[languages]
[languages.en]
title = "My Title"
languageName = "English"
weight = 1
[languages.ru]
title = "Мое Название"
languageName = "Русский"
weight = 2
[languages.en.menus]
[[languages.en.menus.main]]
name = "Services"
url = "/en/services/"
weight = 1
[[languages.en.menus.main]]
name = "Work"
url = "/en/work/"
weight = 2
[[languages.en.menus.main]]
name = "About"
url = "/en/about/"
weight = 3
# [[languages.en.menus.main]]
# name = "History"
# url = "/en/history/"
# weight = 3
[[languages.en.menus.main]]
name = "Contact"
url = "/en/contact/"
weight = 4
[languages.ru.menus]
[[languages.ru.menus.main]]
name = "Услуги"
url = "/ru/services/"
weight = 1
[[languages.ru.menus.main]]
name = "Портфолио"
url = "/ru/work/"
weight = 2
[[languages.ru.menus.main]]
name = "О нас"
url = "/ru/about/"
weight = 3
# [[languages.ru.menus.main]]
# name = "История"
# url = "/ru/history/"
# weight = 3
[[languages.ru.menus.main]]
name = "Контакты"
url = "/ru/contact/"
weight = 4
# to be able generate html from .md with html code (pages)
[markup]
[markup.goldmark]
[markup.goldmark.renderer]
unsafe = true
[permalinks]
post = "/:year/:month/:day/:slug/"
pages = "/:contentbasename/"