download: Fix RFN detection for un-renamed fonts

[why]
When we do not rename a font that has the RFN flag set we do not list
the font as RFN-font.
This is for example the case with mononoki since the last commit.

[how]
Show the source font name not only when it differs but also when it is a
RFN.

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
This commit is contained in:
Fini Jastrow 2023-01-17 13:57:24 +01:00
parent 7ca49bc12f
commit 4f9592107c

View file

@ -16,7 +16,7 @@ page: font-downloads
</a>
{% assign upN = font.unpatchedName | split: " " | join: "" %}
{% assign pN = font.patchedName | split: " " | join: "" %}
{% if upN != pN %}<div><strong>&bull; {% if font.RFN == true %}Reserved{% else %}Original{% endif %} Font Name:</strong> {{ font.unpatchedName }}</div>{% endif %}
{% if font.RFN == true or upN != pN %}<div><strong>&bull; {% if font.RFN == true %}Reserved{% else %}Original{% endif %} Font Name:</strong> {{ font.unpatchedName }}</div>{% endif %}
<div><strong>&bull; Info:</strong> {{ font.description }}</div>
<div class="nerd-font-buttons-wrapper">
<a href="https://github.com/ryanoasis/nerd-fonts/releases/download/v{{ site.current_version }}/{{ font.folderName }}.zip" class="inlineblock bg-green border-white text-white nerd-font-button nf-fa-download">Download</a>