Skip to content

Commit a189610

Browse files
authored
feat: add font size param (#295)
* feat: add font size param * chore: update documentation heading
1 parent 662cc73 commit a189610

File tree

3 files changed

+11
-1
lines changed

3 files changed

+11
-1
lines changed

assets/css/main.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ html {
2424
background-color: rgb(var(--light-primary-color));
2525
color: var(--light-text-color);
2626
font-family: "Lato", sans-serif;
27-
font-size: 17.5px;
27+
font-size: var(--font-size);
2828
min-height: 100%;
2929
position: relative;
3030
scroll-behavior: smooth;

exampleSite/content/posts/theme-documentation-basics.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,15 @@ Set the avatar's size as: `size-xs`, `size-s`, `size-m`, `size-l`, or `size-xl`.
227227
avatarSize = "size-m"
228228
```
229229

230+
### Font size
231+
232+
Set the main font-size for the content. Default is `17.5px`.
233+
234+
```toml
235+
[params]
236+
fontSize = "20px"
237+
```
238+
230239
### Custom Head HTML
231240

232241
Add arbitrary HTML code to the [`<head>` element](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/head).

layouts/partials/head.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
<style>
66
:root {
77
--accent-color: {{ .Site.Params.AccentColor | default "#FF4D4D" }};
8+
--font-size: {{ .Site.Params.FontSize | default "17.5px" }};
89
}
910
</style>
1011

0 commit comments

Comments
 (0)