Skip to content

Commit

Permalink
Added support for font variants in social plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
squidfunk committed Mar 20, 2024
1 parent 3f09228 commit 8addc95
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions docs/plugins/social.md
Original file line number Diff line number Diff line change
Expand Up @@ -420,6 +420,7 @@ defining which parts of your layout can be parametrized. The [`default` layouts]
- [`background_image`][option.background_image]
- [`color`][option.color]
- [`font_family`][option.font_family]
- [`font_variant`][option.font_variant]
- [`logo`][option.logo]
- [`title`][option.title]
- [`description`][option.description]
Expand Down Expand Up @@ -979,6 +980,29 @@ no further configuration needed.

---

#### <!-- md:setting option.font_variant -->

<!-- md:sponsors -->
<!-- md:version insiders-4.53.3 -->
<!-- md:default none -->

Use this option to change the font variant used to generate the social card.
If the downloaded font has variants like `Condensed` or `Expanded`, you can set
them with:

``` yaml
plugins:
- social:
cards_layout_options:
font_variant: Condensed
```

The variant is combined with the style as used in the custom layout, so the
plugin is instructed to use combinations like `Condensed Regular` or
`Expanded Bold`.

---

#### <!-- md:setting option.logo -->

<!-- md:sponsors -->
Expand Down

0 comments on commit 8addc95

Please sign in to comment.