fix: social card alignment

This commit is contained in:
Cory Dransfeldt 2024-01-02 14:34:44 -08:00
parent 61cdd43e25
commit 5f01b72b51
No known key found for this signature in database

View file

@ -32,7 +32,7 @@ eleventyExcludeFromCollections: true
font-weight="bold" font-weight="bold"
fill="#fff" fill="#fff"
> >
<tspan x="40" y="{{ verticalStartingPoint | minus: 120 }}"> <tspan x="160" y="{{ verticalStartingPoint | minus: 120 }}">
{{ preview.date | dateToReadableDate}} {{ preview.date | dateToReadableDate}}
</tspan> </tspan>
</text> </text>
@ -47,7 +47,7 @@ eleventyExcludeFromCollections: true
> >
{% for line in titleInLines %} {% for line in titleInLines %}
{% capture spacing %}{{ forloop.index0 | times: 50 }}{% endcapture %} {% capture spacing %}{{ forloop.index0 | times: 50 }}{% endcapture %}
<tspan x="40" y="{{ verticalStartingPoint | minus: 20 | plus: spacing }}"> <tspan x="160" y="{{ verticalStartingPoint | minus: 20 | plus: spacing }}">
{{ line }} {{ line }}
</tspan> </tspan>
{% endfor %} {% endfor %}
@ -60,6 +60,6 @@ eleventyExcludeFromCollections: true
font-weight="bold" font-weight="bold"
fill="#fff" fill="#fff"
> >
<tspan x="40" y="600">{{ meta.siteName }} • {{ meta.url | replace: "https://", "" | replace: "http://", "" }}</tspan> <tspan x="160" y="600">{{ meta.siteName }} • {{ meta.url | replace: "https://", "" | replace: "http://", "" }}</tspan>
</text> </text>
</svg> </svg>