Closed qiushiyan closed 4 years ago
I think you are referring to an old version of Academic? Font size is no longer defined by the font theme author in the font theme, but by the site admin in the site's params.toml
. Here's an example of a current font theme, https://github.com/gcushen/hugo-academic/blob/master/data/fonts/minimal.toml
I mean that while I can, say, specifiy font_size = "L"
in params.toml
, it would nice to directly set a size for the large font by adding additional parameters, for example font_large = 20px, font_extra_small = 10px
. And I think an ideal place to place such parameters would be in the custom font folder data/fonts/custom.toml
Thanks for the suggestion, but there are some important points to consider here:
custom.scss
if you don't like any of the built-in font sizes
For custom fonts in
data/fonts/custom.toml
, can you include a direct way to adjust font size in correspondence to thefont_size
option inconfig/_default/params.toml
without css, such as providing keys likefont_size_extraS
,font_size_small
,font_size_medium
,font_size_large
andfont_size_extraL
indata/fonts/custom.toml
? To my mind the currentfont_size
andfont_size_small
doesn't work in a very intuitive way.Thanks for your time!