feat: implement barebone zola templates
This commit is contained in:
parent
9c20f5ed2e
commit
f99a9ae2ac
198 changed files with 2434 additions and 227991 deletions
36
themes/emily_zola_theme/templates/index.html
Normal file
36
themes/emily_zola_theme/templates/index.html
Normal 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 %}
|
||||
 <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 %}
|
||||
 <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 %}
|
||||
Loading…
Add table
Add a link
Reference in a new issue