feat(projects): support dark mode image variants (#590)
Some checks are pending
Build Site / Check and Build for Pull Requests (push) Waiting to run
Build Site / Build and Deploy on Main Push (push) Waiting to run

Co-authored-by: welpo <welpo@users.noreply.github.com>
This commit is contained in:
Poolitzer 2026-01-13 22:51:30 +01:00 committed by GitHub
parent 689934edfe
commit 7118ae7283
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 61 additions and 7 deletions

View file

@ -1,7 +1,7 @@
+++
title = "Mastering tabi Settings: A Comprehensive Guide"
date = 2023-09-18
updated = 2026-01-01
updated = 2026-01-13
description = "Discover the many ways you can customise your tabi site."
[taxonomies]
@ -415,6 +415,9 @@ 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 dark mode variant. Requires `local_image` to be set.
- `remote_image` is a URL to an external image, as an alternative to `local_image`.
- `remote_image_dark` is an optional dark mode variant. Requires `remote_image` to be set.
- `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.