added pagelist for taxonomy nav between pages and pageBox
This commit is contained in:
parent
05ddd75f83
commit
fc383a24fe
@ -58,10 +58,10 @@ paginate_by = 2
|
||||
paginate_path = "/blog-posts"
|
||||
|
||||
[[taxonomies]]
|
||||
name = "hiring_categories"
|
||||
name = "roles"
|
||||
feed = true
|
||||
paginate_by = 2
|
||||
paginate_path = "/blog-posts"
|
||||
paginate_path = "/join-us"
|
||||
|
||||
[extra]
|
||||
# Put all your custom variables here
|
||||
|
@ -132,29 +132,3 @@ Think about ourworld like a global digital backbone, which allows everyone to ex
|
||||
|||
|
||||
|
||||
{% end %}
|
||||
|
||||
---
|
||||
|
||||
{% row(style="lean center") %}
|
||||
|
||||
|||
|
||||
|
||||
### Create
|
||||
|
||||
|||
|
||||
|
||||
### Share
|
||||
|
||||
|||
|
||||
|
||||
### Develop
|
||||
|
||||
|||
|
||||
|
||||
### Ideate
|
||||
|
||||
|||
|
||||
|
||||
{% end %}
|
||||
|
||||
---
|
||||
|
@ -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
|
||||
template: "page.html"
|
||||
taxonomies:
|
||||
hiring_categories: ["Engineering"]
|
||||
roles: ["Develop", "Inspire", "Ideate"]
|
||||
---
|
||||
|
||||
{% 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
|
||||
|
||||
|||
|
||||
|
||||
|
@ -1,9 +0,0 @@
|
||||
{% extends "index.html" %}
|
||||
|
||||
{% block content %}
|
||||
|
||||
<main class="pt-16">
|
||||
{{section}}
|
||||
</main>
|
||||
|
||||
{% endblock content %}
|
@ -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>
|
||||
|
31
templates/partials/pageList.html
Normal file
31
templates/partials/pageList.html
Normal 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>
|
12
templates/roles/single.html
Normal file
12
templates/roles/single.html
Normal 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 %}
|
@ -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 %}
|
||||
|
Loading…
Reference in New Issue
Block a user