mirror of
https://github.com/welpo/tabi.git
synced 2025-10-11 07:46:15 +02:00
✨ feat: add fediverse creator metadata support (#409)
Add `fediverse_creator` variable to highlight author's fediverse profile in Mastodon link previews. Co-authored-by: Ariel Richtman <Ariel.Richtman@SilverRailTech.com> Co-authored-by: welpo <welpo@users.noreply.github.com>
This commit is contained in:
parent
3fddb1f9a1
commit
886aa59545
6 changed files with 53 additions and 0 deletions
|
@ -475,6 +475,20 @@ Since it follows the [hierarchy](#settings-hierarchy), if it's not set on a page
|
|||
|
||||
**Protip**: automate their creation with a [script](https://github.com/welpo/osc.garden/blob/main/static/code/social-cards-zola): [From Bashful to Social Butterfly: Automating Link Previews for Zola Sites](https://osc.garden/blog/automating-social-media-cards-zola/).
|
||||
|
||||
### Fediverse Creator
|
||||
|
||||
| Page | Section | `config.toml` | Follows Hierarchy | Requires JavaScript |
|
||||
|:----:|:-------:|:-------------:|:-----------------:|:-------------------:|
|
||||
| ❌ | ❌ | ✅ | ❌ | ❌ |
|
||||
|
||||
You can highlight your fediverse profile in Mastodon link previews by setting the `fediverse_creator` variable in your `config.toml`. For example, for @username@example.com, use:
|
||||
|
||||
```toml
|
||||
fediverse_creator = { handle = "username", domain = "example.com" }
|
||||
```
|
||||
|
||||
This adds metadata to your HTML, allowing Mastodon to display the author's fediverse profile when your content is shared.
|
||||
|
||||
---
|
||||
|
||||
## Navigation
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue