Update wiki

This commit is contained in:
Francesco 2025-04-03 01:47:43 +02:00
parent dc5a6b1ceb
commit 3072988858
2 changed files with 23 additions and 31 deletions

View file

@ -1,15 +1,34 @@
--- ---
title: "Hooks" title: "Advanced Customization"
date: "2024-10-06" date: "2024-10-07"
summary: "Layout hooks" summary: "Advanced customization options"
description: "Layout hooks" description: "Advanced customization options"
toc: false toc: false
readTime: false readTime: false
autonumber: true autonumber: true
math: false math: false
showTags: false showTags: false
hideBackToTop: true
--- ---
## Custom CSS
The theme supports custom css, you can override anything you want by redefining classes in the `assets/css/custom.css` file.
For instance, changing the main width can be done as follows:
```css
:root {
--main-width: 1024px; /* overrides default of 780px */
}
```
Note that backward incompatible changes in the CSS will likely not happen, but there might be cases in the future where
backward compatibility is not possible. If you are overriding a huge amount of CSS I suggest you forking the project instead of
defining it here.
## Hooks
Hooks allow to customize layouts by injecting custom code at specific points in the layout. Hooks allow to customize layouts by injecting custom code at specific points in the layout.
Hooks are defined in the `layouts/partials/hooks` directory. Hooks are defined in the `layouts/partials/hooks` directory.
The following hooks are currently available: The following hooks are currently available:

View file

@ -1,27 +0,0 @@
---
title: "Custom CSS"
date: "2024-10-07"
summary: "Custom CSS parameters"
description: "Custom CSS parameters"
toc: false
readTime: false
autonumber: true
math: false
showTags: false
hideBackToTop: true
---
The theme supports custom css, you can override anything you want by redefining classes in the `assets/css/custom.css` file.
For instance, changing the main width can be done as follows:
```css
:root {
--main-width: 1024px; /* overrides default of 780px */
}
```
Note that backward incompatible changes in the CSS will likely not happen, but there might be cases in the future where
backward compatibility is not possible. If you are overriding a huge amount of CSS I suggest you forking the project instead of
defining it here.