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

View file

@ -0,0 +1,36 @@
{% extends "base.html" %}
{% block content %}
{% set section = get_section(path="post/_index.md") %}
{% for page in section.pages %}
{% if loop.index0 == config.extra.emily_indexposts %}{% break %}{% endif %}
<p>
<div class="text-slate-200 text-sm">
{{ page.date }}
</div>
<a class="no-underline text-sky-200 text-xl" href="{{ page.permalink | safe }}">{{ page.title }}</a>
<div>
{% if page.taxonomies.categories %}
{% for category in page.taxonomies.categories %}
&emsp;<a class="no-underline text-slate-50" href="{{ get_taxonomy_url(kind="categories", name=category) | safe }}">/{{ category }}</a>
{% endfor %}
{% endif %}
{% if page.taxonomies.tags %}
{% for tag in page.taxonomies.tags %}
&emsp;<a class="no-underline text-slate-50" href="{{ get_taxonomy_url(kind="tags", name=tag) | safe }}">#{{ tag }}</a>
{% endfor %}
{% endif %}
</div>
</p>
{% endfor %}
<p>
<a class="no-underline text-slate-50 flex items-start" href="/post">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" class="w-5 h-5">
<path fill-rule="evenodd" d="M10 18a8 8 0 100-16 8 8 0 000 16zM6.75 9.25a.75.75 0 000 1.5h4.59l-2.1 1.95a.75.75 0 001.02 1.1l3.5-3.25a.75.75 0 000-1.1l-3.5-3.25a.75.75 0 10-1.02 1.1l2.1 1.95H6.75z" clip-rule="evenodd" />
</svg>
archives</a>
</p>
{% endblock content %}