summaryrefslogtreecommitdiff
path: root/templates/index.html
blob: 97338211335dfd1b945f05d8109d802fd5f5ebfa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
{% extends "base.html" %}

{% block content %}
	{{ section.content | safe }}

	<div class="gif-buttons">
		{% for button in config.extra.buttons %}
			<div class="gif-button">
				{% set imageTag = '<img
				  src="/imgs/buttons/' ~ button.name ~ '"
				  alt="' ~ button.alt ~ '"
				  width=88
				  height=31
				  decoding="async"
				  loading="lazy"
				>' %}
				{% if button.link %}
					<a href="{{ button.link }}">{{ imageTag | safe }}</a>
				{% else %}
					{{ imageTag | safe }}
				{% endif %}
			</div>
		{% endfor %}
	</div>
{% endblock content %}