@@ -57,7 +57,7 @@ The following configuration options are available:
57
57
58
58
` cards`{ # cards }
59
59
60
- : :octicons-milestone-24 : Default: `true` – This option specifies whether
60
+ : :octicons-milestone-24 : Default: `true` – This option specifies whether
61
61
to generate social card images. If you want to switch the plugin off, e.g.
62
62
for local builds, you can use an [environment variable] :
63
63
@@ -70,9 +70,9 @@ The following configuration options are available:
70
70
` cards_color` { # cards-color }
71
71
72
72
: [:octicons-tag-24 : insiders-2.13.0][Insiders] · :octicons-milestone-24:
73
- Default : [primary color ][palette.primary] – This option specifies which
74
- colors to use for the background `fill` and foreground `text` when
75
- generating the social card :
73
+ Default : [`theme.palette. primary` ][palette.primary] – This option specifies
74
+ the colors for the background `fill` and foreground `text` when generating
75
+ the social card :
76
76
77
77
` ` ` yaml
78
78
plugins:
@@ -85,6 +85,19 @@ The following configuration options are available:
85
85
1. Colors can either be defined as HEX colors, or as [CSS color keywords].
86
86
Note that HEX colors must be enclosed in quotes.
87
87
88
+ ` cards_font` { # cards-font }
89
+
90
+ : [:octicons-tag-24 : insiders-4.3.0][Insiders] · :octicons-milestone-24:
91
+ Default : [`theme.font.text`][font.text] – This option specifies which font
92
+ to use for rendering the social card, which can be any font hosted on
93
+ [Google Fonts] :
94
+
95
+ ` ` ` yaml
96
+ plugins:
97
+ - social:
98
+ cards_font: Roboto
99
+ ` ` `
100
+
88
101
` cards_directory` { # cards-directory }
89
102
90
103
: :octicons-milestone-24 : Default: `assets/images/social` – This option
@@ -102,6 +115,7 @@ The following configuration options are available:
102
115
[site_url] : https://www.mkdocs.org/user-guide/configuration/#site_url
103
116
[environment variable] : https://www.mkdocs.org/user-guide/configuration/#environment-variables
104
117
[CSS color keywords] : https://developer.mozilla.org/en-US/docs/Web/CSS/color_value#color_keywords
118
+ [Google Fonts] : https://fonts.google.com
105
119
106
120
# ### Dependencies
107
121
0 commit comments