Skip to content

Commit

Permalink
Fix categories
Browse files Browse the repository at this point in the history
  • Loading branch information
Jaden ACHAIN committed Nov 29, 2024
1 parent 9eb8ff7 commit dafd667
Show file tree
Hide file tree
Showing 9 changed files with 26 additions and 22 deletions.
8 changes: 7 additions & 1 deletion _includes/categories.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,18 @@
{% assign categories = page.categories | sort_natural %}
{% endif %}

{% assign linked_categories = "Personnel,Fiche,Reflexion,Recherche,Écriture" | split: "," %}

{%- unless categories.size == 0 -%}
<p class="subtitle is-uppercase post-categories">
<a href="{{site.baseurl}}/archives"><i class="fa fa-tags"></i></a>

{% for category in categories %}
<a class="tag is-link" href="{{site.baseurl}}/archives/#{{category|slugize}}">{{category}}</a>
{% if ignore_categories contains category %}
<a class="tag is-link" href="{{site.baseurl}}/{{category|slugize}}">{{category}}</a>
{% else %}
<a class="tag is-link" href="{{site.baseurl}}/archives/#{{category|slugize}}">{{category}}</a>
{% endif %}
{% unless forloop.last %}&nbsp;{% endunless %}
{% endfor %}
</p>
Expand Down
3 changes: 2 additions & 1 deletion _layouts/archives.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,13 @@
---

{% assign sorted_cats = site.categories | sort_natural %}
{% assign ignore_categories = "Personnel,Histoire,Univers" | split: "," %}

<div id="archives">
{% for category in sorted_cats %}
{% capture category_name %}{{ category | first }}{% endcapture %}

{% if category_name == 'Personnel' %}
{% if ignore_categories contains category_name %}
{% continue %}
{% endif %}
<div class="archive-group">
Expand Down
6 changes: 3 additions & 3 deletions _posts/2021-11-01-origine.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
---
title: Origine
title: Origine de ce blog
layout: post
post-image: "/assets/images/nature/racine.jpeg"
description: Les origines du projet, comment j'en suis arrivé à vouloir écrire.
description: Les origines du projet "Arkemie", comment j'en suis arrivé à vouloir écrire.
categories:
- Écriture
- Écriture
---

Quand j’étais au collège, j’aimais beaucoup écrire, j’avais écrit un roman et tout son univers.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@ title: L'univers d'Arkemie dans les grandes lignes
layout: post
post-image: "/assets/images/nature/forest.jpeg"
description: Époque, découvertes scientifiques majeures et grandes lignes de l’univers d’Arkemie.
categories:
- Construction
categories:
- Écriture
- Univers
---


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@ title: La société après la découverte de l'arkemie
layout: post
post-image: "/assets/images/nature/rain.jpeg"
description: Impact de l’Arkemie dans la société et dans ses diverses composantes.
categories:
- Construction
categories:
- Écriture
- Univers
---

Dans les sciences, la découverte des radiations permet de mettre en lumière une nouvelle propriété de certaines matières, la radioactivité.
Expand Down
3 changes: 2 additions & 1 deletion _posts/2022-12-27-jour-1.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ title: Jour 1
layout: post
post-image: "/assets/images/nature/brouillard.jpg"
description: "Levée du voile dans la douleur."
categories:
categories:
- Écriture
- Histoire
---

Expand Down
6 changes: 0 additions & 6 deletions construction.md

This file was deleted.

6 changes: 6 additions & 0 deletions ecriture.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
layout: category
category: 'Écriture'
title: Projet d'écriture
---

6 changes: 0 additions & 6 deletions histoire.md

This file was deleted.

0 comments on commit dafd667

Please sign in to comment.