1
0
em.0x45.cz/templates/index.html

51 lines
1.5 KiB
HTML
Raw Permalink Normal View History

2021-12-02 11:53:48 +01:00
{% import "macros.html" as macros %}
2021-12-02 10:44:45 +01:00
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
2021-12-14 20:36:55 +01:00
<meta name="viewport" content="width=device-width, initial-scale=1.0">
2021-12-02 10:48:08 +01:00
<title>{% block title %}{{ config.title }}{% endblock %}</title>
2024-10-07 21:05:59 +02:00
<link rel="alternate" type="application/atom+xml" title="Atom" href="{{ get_url(path="/atom.xml") }}">
<link rel="stylesheet" href="{{ get_url(path="/style.css") }}">
<link rel="icon" href="{{ get_url(path="/favicon.svg") }}">
2021-12-02 10:44:45 +01:00
</head>
<body>
2021-12-02 10:48:08 +01:00
<header>
2021-12-14 20:36:55 +01:00
<div class="wrap">
<a href="{{ config.base_url }}" class="title">{{ config.title }}</a>
2022-11-28 15:11:08 +01:00
<div class="links">
2021-12-15 15:58:33 +01:00
{% if config.extra.repository_url %}
<a href="{{ config.extra.repository_url }}">Source</a>,
{% endif %}
2024-10-07 21:05:59 +02:00
<a href="{{ get_url(path="/atom.xml") }}">RSS/Atom</a>
2022-11-28 15:11:08 +01:00
</div>
2021-12-14 20:36:55 +01:00
</div>
2021-12-02 10:48:08 +01:00
</header>
2021-12-14 20:36:55 +01:00
<div class="wrap grid">
2022-11-28 15:11:08 +01:00
<nav>
2022-06-06 23:19:09 +02:00
<span class="title">Navigation</span>
2022-11-28 15:11:08 +01:00
<ul class="main">
2021-12-14 20:36:55 +01:00
{% for item in config.extra.nav %}
2022-06-06 23:19:09 +02:00
<li
{% if item.mobile_only %}
class="mobile-only"
{% endif %}
><a href="{{ get_url(path=item.path, trailing_slash=true) }}">{{ item.title }}</a></li>
2021-12-14 20:36:55 +01:00
{% endfor %}
</ul>
<span class="title">Categories</span>
{{ macros::list_taxonomy(kind="categories") }}
2022-11-28 15:11:08 +01:00
</nav>
2021-12-14 20:36:55 +01:00
<main>
{% block content %}
{{ macros::list_posts(section="posts", count=config.extra.latest_posts_count) }}
2024-05-06 12:24:42 +02:00
<div class="all-posts">
<a href="{{ get_url(path="/posts/") }}">All Posts &raquo;</a>
</div>
2021-12-14 20:36:55 +01:00
{% endblock %}
</main>
</div>
2021-12-04 22:05:33 +01:00
{% block script %}{% endblock %}
2021-12-02 10:44:45 +01:00
</body>
</html>