2023-07-04 02:37:44 +02:00
|
|
|
{% extends "base.html" %}
|
|
|
|
|
|
|
|
{% block content %}
|
2023-12-22 00:42:32 +01:00
|
|
|
<div class="home">
|
2023-12-22 02:37:07 +01:00
|
|
|
{% if config.extra.home_title %}
|
|
|
|
<h1>{{ config.extra.home_title }}</h1>
|
|
|
|
{% else %}
|
2023-12-22 00:42:32 +01:00
|
|
|
<h1>{{ config.title }}</h1>
|
2023-12-22 02:37:07 +01:00
|
|
|
{% endif %}
|
2023-12-22 00:42:32 +01:00
|
|
|
{% if config.extra.home_subtitle %}
|
2023-12-22 12:19:19 +01:00
|
|
|
<p>{{ config.extra.home_subtitle }}<span id="subtitleRand"></span></p>
|
2023-12-22 00:42:32 +01:00
|
|
|
{% elif config.description %}
|
2023-12-22 12:19:19 +01:00
|
|
|
<p>{{ config.description }}<span id="subtitleRand"></span></p>
|
2023-12-22 00:42:32 +01:00
|
|
|
{% endif %}
|
|
|
|
{% include "svg.html" %}
|
|
|
|
</div>
|
2023-12-22 12:19:19 +01:00
|
|
|
{% if config.extra.home_subtitle_suffixes %}
|
|
|
|
|
|
|
|
<script>
|
|
|
|
const suffixes = [
|
|
|
|
{% for s in config.extra.home_subtitle_suffixes %}
|
|
|
|
"{{ s }}",
|
|
|
|
{% endfor %}
|
|
|
|
]
|
|
|
|
var current = suffixes[Math.floor(Math.random() * suffixes.length)];
|
|
|
|
var span = document.getElementById("subtitleRand");
|
|
|
|
span.textContent = current;
|
|
|
|
</script>
|
|
|
|
{% endif %}
|
2023-07-04 02:37:44 +02:00
|
|
|
{% endblock content %}
|