added pagelist for taxonomy nav between pages and pageBox

This commit is contained in:
timurgordon
2022-02-24 13:58:51 +03:00
parent 05ddd75f83
commit fc383a24fe
9 changed files with 51 additions and 50 deletions

View File

@@ -1,9 +0,0 @@
{% extends "index.html" %}
{% block content %}
<main class="pt-16">
{{section}}
</main>
{% endblock content %}

View File

@@ -7,7 +7,7 @@
{% set category = path_array[2] %}
The Latest from ThreeFold
{% if taxonomy == "categories" %} -
{{category | replace(from='-', to=' ' ) | title}}
{{category | replace(from='-', to=' ' ) | title}}
{% endif %}
</h1>
<div>

View File

@@ -0,0 +1,31 @@
<div id="list"></div>
<div class="mx-40 flex justify-around text-center">
<a href="/join-us#list">All</a>
{% set taxonomy = get_taxonomy(kind="roles") %}
{% set roles = taxonomy.items %}
{% for role in roles %}
{% set path = role.name | slugify %}
{% set fullpath = "/roles/" ~ path ~ "#list" %}
<a href={{fullpath}}> {{role.name}} </a>
{% endfor %}
</div>
<hr>
<div class="pt-16">
<div class="mx-20 flex">
{% if paginator %}
{% for page in paginator.pages %}
<div class="w-3/12 m-8" >
{% include "partials/pageBox.html" %}
</div>
{% endfor %}
{% else %}
{% for page in section.pages %}
<div class="w-3/12 m-8" >
{% include "partials/pageBox.html" %}
</div>
{% endfor %}
{% endif %}
</div>
</div>

View File

@@ -0,0 +1,12 @@
{% extends "index.html" %}
{% block content %}
{% set section = get_section(path="join-us/_index.md")%}
<main class="pt-16">
{{ section.content | safe}}
<hr>
{% include "partials/pageList.html" %}
</main>
{% endblock content %}

View File

@@ -4,15 +4,8 @@
<main class="pt-16">
{{ section.content | safe}}
<div class="mx-20 flex">
{% for page in section.pages %}
<div class="w-3/12 m-8" >
{% include "partials/pageBox.html" %}
</div>
{% endfor %}
</div>
<hr>
{% include "partials/pageList.html" %}
</main>
{% endblock content %}