friendenstein/templates/index.html

31 lines
828 B
HTML
Raw Normal View History

2023-07-04 02:37:44 +02:00
{% extends "base.html" %}
{% block content %}
2024-01-02 02:31:44 +01:00
<div class="home-container"><div class="home">
{% if config.extra.home.title %}
<h1>{{ config.extra.home.title }}</h1>
2023-12-26 01:11:47 +01:00
{% else %}
<h1>{{ config.title }}</h1>
{% endif %}
2024-01-02 02:31:44 +01:00
{% if config.extra.home.subtitle %}
<p>{{ config.extra.home.subtitle }}<span id="subtitleRand"></span></p>
2023-12-26 01:11:47 +01:00
{% elif config.description %}
<p>{{ config.description }}<span id="subtitleRand"></span></p>
{% endif %}
{% include "svg.html" %}
2023-12-25 02:39:41 +01:00
</div></div>
2024-01-02 02:31:44 +01:00
{% if config.extra.home.subtitle_suffixes %}
2023-12-22 12:19:19 +01:00
<script>
const suffixes = [
2024-01-02 02:31:44 +01:00
{% for s in config.extra.home.subtitle_suffixes %}
2023-12-26 01:11:47 +01:00
"{{ s }}",
{% endfor %}
2023-12-22 12:19:19 +01:00
]
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 %}