feat(local_image): introduce dark option for local_image

This commit is contained in:
poolitzer 2025-11-26 23:07:27 +01:00 committed by welpo
parent cbd30eabe0
commit 2291932a6a
No known key found for this signature in database
GPG key ID: A2F978CF4EC1F5A6
3 changed files with 21 additions and 2 deletions

View file

@ -415,6 +415,7 @@ invertible_image = false
- `description` is the description of the project.
- `weight` determines the order in which the projects are shown. The lower the weight, the higher the project will appear.
- `local_image` is the path to the image of the project. This image is shown on the projects page.
- `local_image_dark` is an optional path to an alternative image to be shown in dark mode. When set, `local_image` is shown in light mode only.
- `invertible_image` inverts the image colours in dark mode. Useful for black and white logos/icons.
When a user clicks on the image or title of a project, they will be taken to the project's page. If you'd rather have users go to an external link, you can set `link_to = "https://example.com` in the `[extra]` section of the project's `.md` file.