30 lines
774 B
HTML
30 lines
774 B
HTML
{% from "lib/section.html" import section %}
|
|
|
|
{% call section(gettext("Games"),
|
|
"games",
|
|
"/img/section-games.png",
|
|
title_picture_offset = "0px",
|
|
title_color = "var(--color-primary)"
|
|
) %}
|
|
{% for game in glob("games/*.md") | map('markdown') %}
|
|
<div class="game">
|
|
<div class="game--picture-wrapper">
|
|
<img
|
|
class="game--picture"
|
|
src="{{ game.meta.picture | load | write }}"
|
|
alt="{{ game.meta.picture_alt }}"
|
|
>
|
|
</img>
|
|
</div>
|
|
<div class="game--title">
|
|
{{ game.meta.title }}
|
|
</div>
|
|
<div class="game--description">
|
|
{{ game }}
|
|
<a class="game--more-button" href="{{ game.meta.website }}">Learn More</a>
|
|
</div>
|
|
</div>
|
|
{% endfor %}
|
|
{% endcall %}
|
|
|