Replace author tag with footer

This commit is contained in:
hasecilu 2024-09-08 21:20:18 -06:00
commit e3b25803a7
No known key found for this signature in database
GPG key ID: 87E51D5092D98C51
9 changed files with 10 additions and 10 deletions

View file

@ -39,9 +39,9 @@ def make_text_multiline(text: list, length1: int = 18, length2: int = 25) -> str
def process_svg(template, data):
# Replace title and author
# Replace title and footer
processed = template.replace("{{ title }}", data["title"])
processed = processed.replace("{{ author }}", data["author"])
processed = processed.replace("{{ footer }}", data["footer"])
displacement = (0, 9, 19, 29, 39, 49, 59, 69)
for i in range(10):

View file

@ -1,6 +1,6 @@
---
title: Some Interesting Title
author: John Doe
footer: John Doe
row:
0:
- 0a

View file

@ -658,7 +658,7 @@ text#credits {
<text class="cls-15" transform="translate(731.19 1146.12)" font-family="Uniform-Condensed6">CC BY-NC-SA 4.0</text>
<text class="cls-16" transform="translate(9.88 1177)" font-family="Uniform-Condensed6">github.com/sjpiper145/MakerSkillTree</text>
<text id="credits" class="cls-8" y="0" x="0" font-family="Uniform-Condensed6" aria-expanded="false" style="font-size: 16px !important">
<tspan y="1177.5" x="420.95" text-anchor="middle" xml:space="preserve">{{ author }}</tspan>
<tspan y="1177.5" x="420.95" text-anchor="middle" xml:space="preserve">{{ footer }}</tspan>
</text>
<g id="score" transform="translate(-1,0)">
<path class="cls-22" d="M842.18,1067.05v53c-.3,0-.6,0-.91,0H754.49c-7,0-12.76-5.1-12.76-11.4v-30.23c0-6.3,5.71-11.4,12.76-11.4h86.78C841.58,1067,841.88,1067,842.18,1067.05Z"/>

Before

Width:  |  Height:  |  Size: 72 KiB

After

Width:  |  Height:  |  Size: 72 KiB

Before After
Before After