thek4n.ru/templates/html_index.jinja2

80 lines
2.5 KiB
Django/Jinja

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>{{ meta.title }}</title>
<meta name="description" content="{{ meta.description }}">
<link rel="icon" href="favicon.ico" type="image/x-icon">
<link rel="stylesheet" href="{{ meta.css_url }}">
</head>
<body>
<main>
<div class="top-controls">
<div>
{% for lang in languages %}
<a id="lang-{{ lang.key }}" {% if lang.current %} class="active" {% endif %} href="{{ base_url }}?lang={{ lang.key }}">{{ lang.value }}</a>
{% endfor %}
</div>
</div>
<section>
<h1>{{ title }}</h1>
<p><small>{{ description }}</small></p>
</section>
<section>
<h1>{{ projects_section.title }}</h1>
{% for project in projects_section.projects %}
<p>
<span><a href="{{ project.url }}">{{ project.title }}</a></span>:
<span><a href="{{ project.source_url }}">{{ project.source_url_title }}</a></span>
<span><small class="muted">({{ project.description }})</small>
</p>
{% endfor %}
</section>
<section>
<h1>{{ aboutme.title }}</h1>
<p>{{ aboutme.text }}</p>
</section>
<section>
<h2>{{ contacts_section.title }}</h2>
{% for contact in contacts_section.contacts %}
<p>
<span>{{ contact.site_name }}</span>
:
<span><a href="{{ contact.url }}">{{ contact.title }}</a></span>
</p>
{% endfor %}
</section>
<section>
<h2>{{ gpg_section.title }}</h2>
<p>
<span>{{ gpg_section.availat_title }}</span>
<a href="{{ base_url }}/gpgkey.txt" target="_blank" rel="noopener noreferrer" >{{ base_url }}/gpgkey.txt</a>
</p>
<details class="gpg-details">
<summary>
<span class="summary-row">
{{ gpg_section.showkey_title }}
<a id="copy-gpg" class="copy-link" href="#" onclick="copyGPGKey()">{{ gpg_section.copy_title }}</a>
</span>
</summary>
<pre id="gpg-key">{{ gpg_section.value|linebreaksbr }}</pre>
</details>
</section>
<footer>
<p>© {{ year }} {{ copyright_author }}</p>
</footer>
</main>
<script src="{{ meta.script_js_url }}"></script>
</body>
</html>