Skip to content

Commit

Permalink
build: use fontconfig for eleventy-img
Browse files Browse the repository at this point in the history
  • Loading branch information
learosema committed Feb 11, 2024
1 parent b34c148 commit 633778a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"lint:html": "java -jar node_modules/vnu-jar/build/dist/vnu.jar --skip-non-html --filterfile .vnurc dist",
"lint:css": "stylelint \"src/assets/css/**/*.css\"",
"lint:js": "eslint eleventy.config.js src/assets/js",
"build": "cross-env NODE_ENV=production eleventy"
"build": "cross-env NODE_ENV=production PANGOCAIRO_BACKEND=fontconfig eleventy"
},
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion src/opengraph-default.njk
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ permalink: '/assets/images/social-preview/default.svg'
{%- endfor -%}
<text
id="text"
font-family="sans-serif"
font-family="'Iowan Old Style', 'Palatino Linotype', 'URW Palladio L', P052, serif"
font-size="80"
font-weight="900"
fill="{{ color }}"
Expand Down
6 changes: 3 additions & 3 deletions src/social-preview.njk
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ eleventyExcludeFromCollections: true

<!-- date -->
<text
font-family="sans-serif"
font-family="serif"
font-size="26"
font-weight="700"
style="filter: drop-shadow(4px 4px 0px {{ background }})"
Expand All @@ -61,12 +61,12 @@ eleventyExcludeFromCollections: true
<!-- title -->
<text
id="text"
font-family="sans-serif"
font-family="'Iowan Old Style', 'Palatino Linotype', 'URW Palladio L', P052, serif"
font-size="80"
font-weight="900"
fill="{{ color }}"
style="filter: drop-shadow(4px 4px 0px {{ background }})"
letter-spacing="-3"
letter-spacing="-1"
>
{% for line in titleInLines %}
<tspan x="160" y="{{ verticalStartingPoint - 20 + loop.index0 * 80 }}">
Expand Down

0 comments on commit 633778a

Please sign in to comment.