diff options
author | garhve <git@garhve.com> | 2023-01-02 06:02:01 +0800 |
---|---|---|
committer | garhve <git@garhve.com> | 2023-01-02 06:02:01 +0800 |
commit | be772f40c42711de54a3331db2781b1511acba9d (patch) | |
tree | 0808a7750d3c1055b0e86071c219d872775b1f92 /themes/emily_zola_theme/templates/index.html | |
parent | 3ae5ecf803ed2d4ece2c9da6d91aae0f075c5b0c (diff) |
change to zola
Diffstat (limited to 'themes/emily_zola_theme/templates/index.html')
-rw-r--r-- | themes/emily_zola_theme/templates/index.html | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/themes/emily_zola_theme/templates/index.html b/themes/emily_zola_theme/templates/index.html new file mode 100644 index 0000000..795b7e1 --- /dev/null +++ b/themes/emily_zola_theme/templates/index.html @@ -0,0 +1,30 @@ +{% extends "base.html" %} + +{% block content %} + +{% set section = get_section(path="post/_index.md") %} +{% for page in section.pages %} + {% if loop.index0 == config.extra.indexposts %}{% break %}{% endif %} + <p> + <div class="date"> + {{ page.date }} + </div> + <div class="title"> + <a href="{{ page.permalink | safe }}">{{ page.title }}</a> + </div> + <div class="taxonomies_index"> + {% if page.taxonomies.categories %} + {% for category in page.taxonomies.categories %} +  <a href="{{ get_taxonomy_url(kind="categories", name=category) | safe }}">/{{ category }}</a> + {% endfor %} + {% endif %} + {% if page.taxonomies.tags %} + {% for tag in page.taxonomies.tags %} +  <a href="{{ get_taxonomy_url(kind="tags", name=tag) | safe }}">#{{ tag }}</a> + {% endfor %} + {% endif %} + </div> + </p> +{% endfor %} + +{% endblock content %} |