Arreglados íconos en insertos de cartas

This commit is contained in:
Felipe 2024-11-21 21:05:23 -03:00
parent b85a1d6b2a
commit 1e5d91545d
Signed by: pitbuster
SSH key fingerprint: SHA256:HDYu2Pm4/TmSX8GBwV49UvFWr1Ljg8XlHxKeCpjJpOk

View file

@ -1,5 +1,9 @@
{% set card = load_data(path="content/ptcg/cards/" ~ id ~ ".toml") %} {% set card = load_data(path="content/ptcg/cards/" ~ id ~ ".toml") %}
{% if nth == 1 and config.mode == "serve" %}
<script src="{{ get_url(path='ptcg-icons.js') }}" async></script>
{% endif %}
<div class="ptcg-card"> <div class="ptcg-card">
<picture> <picture>
<source srcset="{{ get_url(path="ptcg/" ~ id ~ ".webp") }}" type="image/webp"> <source srcset="{{ get_url(path="ptcg/" ~ id ~ ".webp") }}" type="image/webp">