CaiJimmy / hugo-theme-stack-starter

A quickstart template to create a Hugo blog using hugo-theme-stack
https://demo.stack.jimmycai.com
MIT License
305 stars 105 forks source link

How do I change the text size? #19

Closed MrBeiMeng closed 10 months ago

MrBeiMeng commented 1 year ago

How do I change the text size? It is to large for me, if there are too many words in a page that looks messy.

I will appreciate it if you tell me.

CaiJimmy commented 10 months ago

Sorry for the late reply. You can change the font size of articles by overriding variable.scss:

https://github.com/CaiJimmy/hugo-theme-stack/blob/c6d1d73dd21ff5e1c9c52db358e49857b3e0a6df/assets/scss/variables.scss#L93C1-L102C2

For example, you could create `assets/scss/custom.scss' with the following content:

:root {
    --article-font-size: 12px;
}