feat: implement barebone zola templates

This commit is contained in:
Alexander Navarro 2024-11-10 21:45:59 +00:00
parent 9c20f5ed2e
commit f99a9ae2ac
198 changed files with 2434 additions and 227991 deletions

27
templates/base.html Normal file
View file

@ -0,0 +1,27 @@
<!DOCTYPE html>
<html lang={i18next.language}>
<head>
<meta charset="UTF-8" />
<meta name="description" content="Astro description" />
<meta name="viewport" content="width=device-width" />
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
<meta name="generator" content={Astro.generator} />
<HeadHrefLangs />
<title>{title}</title>
<ViewTransitions />
<!-- Reset and normilize styles -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/gardevoir" />
</head>
<body transition:animate="fade">
<header class="position-sticky py-1 py-lg-3">
<Navbar />
</header>
<main>
{% block content %} {% endblock %}
</main>
</body>
</html>

13
templates/index.html Normal file
View file

@ -0,0 +1,13 @@
{% extends "base.html" %}
{% block content %}
{{section.content | safe}}
<ul>
{% for sub in section.subsections %}
{% set sub = get_section(path=sub, metadata_only=true) %}
<li><a href="{{sub.permalink}}">{{sub.title | safe}}</a></li>
{% endfor %}
</ul>
{% endblock content %}

6
templates/page.html Normal file
View file

@ -0,0 +1,6 @@
{% extends "base.html" %}
{% block content %}
{{page.content | safe}}
{% endblock content %}

12
templates/section.html Normal file
View file

@ -0,0 +1,12 @@
{% extends "base.html" %}
{% block content %}
{{section.content | safe}}
<ul>
{% for page in section.pages %}
<li><a href="{{page.permalink}}">{{page.path | safe}}</a></li>
{% endfor %}
</ul>
{% endblock content %}