Create macro for mod entry

This commit is contained in:
Helen Chong 2024-04-20 15:01:51 +08:00
parent 672cec6470
commit ab1c995d1e
1 changed files with 11 additions and 0 deletions

View File

@ -0,0 +1,11 @@
{%- macro modEntry(params) -%}
<div class="mod-entry">
<img src="/assets/projects/{{ params.bannerFile }}" alt="Banner of {{ params.title }} mod">
<p>{{ params.desc }}</p>
<div class="mod-entry__downloads">
{%- for download in params.downloads -%}
<a class="link-btn" href="{{ download.url }}" target="_blank">{{ download.site }}</a>
{%- endfor -%}
</div>
</div>
{%- endmacro -%}