Skip to content

Commit 3072988

Browse files
committed
Update wiki
1 parent dc5a6b1 commit 3072988

2 files changed

Lines changed: 23 additions & 31 deletions

File tree

Lines changed: 23 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,34 @@
11
---
2-
title: "Hooks"
3-
date: "2024-10-06"
4-
summary: "Layout hooks"
5-
description: "Layout hooks"
2+
title: "Advanced Customization"
3+
date: "2024-10-07"
4+
summary: "Advanced customization options"
5+
description: "Advanced customization options"
66
toc: false
77
readTime: false
88
autonumber: true
99
math: false
1010
showTags: false
11+
hideBackToTop: true
1112
---
1213

14+
## Custom CSS
15+
16+
The theme supports custom css, you can override anything you want by redefining classes in the `assets/css/custom.css` file.
17+
18+
For instance, changing the main width can be done as follows:
19+
20+
```css
21+
:root {
22+
--main-width: 1024px; /* overrides default of 780px */
23+
}
24+
```
25+
26+
Note that backward incompatible changes in the CSS will likely not happen, but there might be cases in the future where
27+
backward compatibility is not possible. If you are overriding a huge amount of CSS I suggest you forking the project instead of
28+
defining it here.
29+
30+
## Hooks
31+
1332
Hooks allow to customize layouts by injecting custom code at specific points in the layout.
1433
Hooks are defined in the `layouts/partials/hooks` directory.
1534
The following hooks are currently available:

wiki/features/custom-css.md

Lines changed: 0 additions & 27 deletions
This file was deleted.

0 commit comments

Comments
 (0)