SVG: Move title, remove publisher and comlib

This commit is contained in:
HackerNCoder 2024-03-27 00:33:36 +01:00
parent 0a0f97010b
commit 6570244bdb

View file

@ -19,10 +19,9 @@
<rect y="5" width="590px" style="fill: none; stroke-width:5; stroke: currentColor" x="5" height="890px"/> <rect y="5" width="590px" style="fill: none; stroke-width:5; stroke: currentColor" x="5" height="890px"/>
<text font-family="serif" font-weight="bold"> <text font-family="serif" font-weight="bold">
{% set name = this.title.split("? ")[0] %} {% set name = this.title.split("? ")[0] %}
<tspan y="160" x="580" font-size="{{ 63 - name|length }}" style="text-anchor:end">{{ name }}</tspan> <tspan y="200" x="580" font-size="{{ 62 - name|length }}" style="text-anchor:end;font-variant-caps: small-caps;">{{ name }}</tspan>
<tspan y="200" x="575" font-size="25" style="text-anchor:end;font-style:italic;">{{ this.author }}</tspan> <tspan y="240" x="575" font-size="25" style="text-anchor:end;font-style:italic;">{{ this.author }}</tspan>
{% if this.pub_date and this.publisher %}<tspan y="230" x="575" font-size="21" style="text-anchor:end">Published {{ this.pub_date }}, by {{ this.publisher }}</tspan>{% endif %} {% if this.pub_date %}<tspan y="270" x="575" font-size="21" style="text-anchor:end">Published {{ this.pub_date }}</tspan>{% endif %}
<tspan y="880" x="15" font-size="18" style="text-anchor:start">https://comlib.encryptionin.space</tspan>
</text> </text>
</svg> </svg>
{% endif %} {% endif %}