Skip to content

Commit 8addc95

Browse files
committed
Added support for font variants in social plugin
1 parent 3f09228 commit 8addc95

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

Diff for: docs/plugins/social.md

+24
Original file line numberDiff line numberDiff line change
@@ -420,6 +420,7 @@ defining which parts of your layout can be parametrized. The [`default` layouts]
420420
- [`background_image`][option.background_image]
421421
- [`color`][option.color]
422422
- [`font_family`][option.font_family]
423+
- [`font_variant`][option.font_variant]
423424
- [`logo`][option.logo]
424425
- [`title`][option.title]
425426
- [`description`][option.description]
@@ -979,6 +980,29 @@ no further configuration needed.
979980

980981
---
981982

983+
#### <!-- md:setting option.font_variant -->
984+
985+
<!-- md:sponsors -->
986+
<!-- md:version insiders-4.53.3 -->
987+
<!-- md:default none -->
988+
989+
Use this option to change the font variant used to generate the social card.
990+
If the downloaded font has variants like `Condensed` or `Expanded`, you can set
991+
them with:
992+
993+
``` yaml
994+
plugins:
995+
- social:
996+
cards_layout_options:
997+
font_variant: Condensed
998+
```
999+
1000+
The variant is combined with the style as used in the custom layout, so the
1001+
plugin is instructed to use combinations like `Condensed Regular` or
1002+
`Expanded Bold`.
1003+
1004+
---
1005+
9821006
#### <!-- md:setting option.logo -->
9831007

9841008
<!-- md:sponsors -->

0 commit comments

Comments
 (0)