Include body font in OG image

This commit is contained in:
madrilene 2024-09-23 09:32:20 +02:00
parent 429467ad20
commit b0f8ddd0db

View file

@ -1,5 +1,6 @@
--- ---
font: "'Red Hat Display', Ubuntu" # These get created in development, you must have the font installed on your system. fontDisplay: "'Red Hat Display', Ubuntu" # needed created in local development, font must be installed on your system.
fontBody: "'Inclusive Sans', Ubuntu" # needed created in local development, font must be installed on your system.
background: '#343434' background: '#343434'
text: '#FBFBFB' text: '#FBFBFB'
colors: ['#dd4462', '#c73d58', '#b1364e', '#9a3044'] colors: ['#dd4462', '#c73d58', '#b1364e', '#9a3044']
@ -59,7 +60,7 @@ eleventyExcludeFromCollections: true
<!-- date --> <!-- date -->
<text <text
font-family="{{ font }}, sans-serif" font-family="{{ fontBody }}, sans-serif"
font-size="24" font-size="24"
font-weight="900" font-weight="900"
fill="{{ text }}" fill="{{ text }}"
@ -73,7 +74,7 @@ eleventyExcludeFromCollections: true
<!-- title --> <!-- title -->
<text <text
id="text" id="text"
font-family="{{ font }}, sans-serif" font-family="{{ fontDisplay }}, sans-serif"
font-size="80" font-size="80"
font-weight="900" font-weight="900"
fill="{{ text }}" fill="{{ text }}"
@ -86,7 +87,7 @@ eleventyExcludeFromCollections: true
<!-- sitename / url --> <!-- sitename / url -->
<text <text
font-family="{{ font }}, sans-serif" font-family="{{ fontBody }}, sans-serif"
font-size="24" font-size="24"
font-weight="500" font-weight="500"
fill="{{ text }}" fill="{{ text }}"