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

@ -58,10 +58,10 @@ paginate_by = 2
paginate_path = "/blog-posts" paginate_path = "/blog-posts"
[[taxonomies]] [[taxonomies]]
name = "hiring_categories" name = "roles"
feed = true feed = true
paginate_by = 2 paginate_by = 2
paginate_path = "/blog-posts" paginate_path = "/join-us"
[extra] [extra]
# Put all your custom variables here # Put all your custom variables here

View File

@ -132,29 +132,3 @@ Think about ourworld like a global digital backbone, which allows everyone to ex
||| |||
{% end %} {% end %}
---
{% row(style="lean center") %}
|||
### Create
|||
### Share
|||
### Develop
|||
### Ideate
|||
{% end %}
---

View File

@ -5,7 +5,7 @@ insert_anchor_links: "left"
updated: 2019-04-11T20:33:00-05:00 # Comment-out this line with a # if content is unchanged updated: 2019-04-11T20:33:00-05:00 # Comment-out this line with a # if content is unchanged
template: "page.html" template: "page.html"
taxonomies: taxonomies:
hiring_categories: ["Engineering"] roles: ["Develop", "Inspire", "Ideate"]
--- ---
{% row(bgPath="/images/bernhard-eisenmann-unsplash.jpg") %} {% row(bgPath="/images/bernhard-eisenmann-unsplash.jpg") %}
@ -143,7 +143,7 @@ Think about ourworld like a global digital backbone, which allows everyone to ex
||| |||
### Create ### Creator
||| |||

View File

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

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