-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Jaden ACHAIN
committed
Nov 29, 2024
1 parent
e08657b
commit a745c8c
Showing
2 changed files
with
14 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,19 @@ | ||
{% assign sorted_cats = site.categories | sort_natural %} | ||
{% assign linked_categories = "Personnel,Fiche,Réflexion,Recherche,Écriture" | split: "," %} | ||
|
||
<div class="navbar-item has-dropdown is-hoverable"> | ||
<a class="navbar-link"> | ||
MORE | ||
Catégories | ||
</a> | ||
<div class="navbar-dropdown has-background-black is-left"> | ||
{% for sitepage in site.html_pages %} | ||
{% unless sitepage.url == '/' or sitepage.url == '/404' or sitepage.url == '/blog' %} | ||
<a href="{{sitepage.url | absolute_url}}" | ||
class="navbar-item has-text-grey-light {% if page.url == sitepage.url | absolute_url %}is-active{% endif %}"> | ||
{{sitepage.title}} | ||
</a> | ||
{% endunless %} | ||
{% endfor %} | ||
<!-- <hr class="navbar-divider"> | ||
<a class="navbar-item"> | ||
Report an issue | ||
</a> --> | ||
{% for category in sorted_cats %} | ||
{% capture category_name %}{{ category | first }}{% endcapture %} | ||
{% if linked_categories contains category_name %} | ||
<a href="{{site.baseurl}}/{{category|slugify: 'latin'}}" | ||
class="navbar-item"> | ||
{{category_name}} | ||
</a> | ||
{% endif %} | ||
{% endfor %} | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters