aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--_articles/2020-10-05-cargo2nix-dramatically-simpler-rust-in-nix.md1
-rw-r--r--_articles/2020-10-10-feature-flags-differences-between-backend-frontent-and-mobile.md1
-rw-r--r--_includes/categories.html30
-rw-r--r--a-propos.md2
-rw-r--r--about.md2
-rw-r--r--categorias.md8
-rw-r--r--categories.en.md8
-rw-r--r--categories.fr.md8
-rw-r--r--site.json6
-rw-r--r--sobre.md2
10 files changed, 65 insertions, 3 deletions
diff --git a/_articles/2020-10-05-cargo2nix-dramatically-simpler-rust-in-nix.md b/_articles/2020-10-05-cargo2nix-dramatically-simpler-rust-in-nix.md
index d4b5a41..c0ebb69 100644
--- a/_articles/2020-10-05-cargo2nix-dramatically-simpler-rust-in-nix.md
+++ b/_articles/2020-10-05-cargo2nix-dramatically-simpler-rust-in-nix.md
@@ -4,6 +4,7 @@ date: 2020-10-05
layout: post
lang: en
ref: cargo2nix-dramatically-simpler-rust-in-nix
+category: mediator
---
In the same vein of my earlier post on
diff --git a/_articles/2020-10-10-feature-flags-differences-between-backend-frontent-and-mobile.md b/_articles/2020-10-10-feature-flags-differences-between-backend-frontent-and-mobile.md
index 0f92dc6..87de6a5 100644
--- a/_articles/2020-10-10-feature-flags-differences-between-backend-frontent-and-mobile.md
+++ b/_articles/2020-10-10-feature-flags-differences-between-backend-frontent-and-mobile.md
@@ -4,6 +4,7 @@ date: 2020-10-10
layout: post
lang: en
ref: feature-flags-differences-between-backend-frontent-and-mobile
+category: presentation
---
*This article is derived from a [presentation]({% link _slides/2020-10-10-rollout-feature-flag-experiment-operational-toggle.slides %}).*
diff --git a/_includes/categories.html b/_includes/categories.html
new file mode 100644
index 0000000..7c91a93
--- /dev/null
+++ b/_includes/categories.html
@@ -0,0 +1,30 @@
+{% assign articles_with_categories = "" | split:"" %}
+{% for article in site.articles %}
+ {% if article.lang == page.lang %}
+ {% if article.category %}
+ {% assign articles_with_categories = articles_with_categories | push:article %}
+ {% endif %}
+ {% endif %}
+{% endfor %}
+{% assign articles_with_categories = articles_with_categories | reverse %}
+
+{% assign categories = "" | split:"" %}
+{% for article in articles_with_categories %}
+ {% assign categories = categories | push:article.category %}
+{% endfor %}
+
+{% assign unique_categories = categories | sort | uniq %}
+{% for category in unique_categories %}
+ <h2 id="{{ category }}">
+ <a href="#{{ category }}">{{ category }}</a>:
+ </h2>
+ <ul>
+ {% for article in articles_with_categories %}
+ {% if category == article.category %}
+ <li>
+ <a href="{{ article.url | relative_url }}">{{ article.title | escape }}</a> - {% include i18n-date.html date=article.date %}
+ </li>
+ {% endif %}
+ {% endfor %}
+ </ul>
+{% endfor %}
diff --git a/a-propos.md b/a-propos.md
index c4855c2..661f25e 100644
--- a/a-propos.md
+++ b/a-propos.md
@@ -28,3 +28,5 @@ regrouper-les en utilisant LaTeX dans recueils de chansons.
## Autres
[Liste de pastebins]({% link pastebins.fr.md %}).
+
+[Articles par catégory]({% link categories.fr.md %}).
diff --git a/about.md b/about.md
index dd5b4c3..0c07183 100644
--- a/about.md
+++ b/about.md
@@ -27,3 +27,5 @@ LaTeX sources into songbooks.
## Other things
[Pastebins listing]({% link pastebins.en.md %}).
+
+[Articles by category]({% link categories.en.md %}).
diff --git a/categorias.md b/categorias.md
new file mode 100644
index 0000000..8622ecd
--- /dev/null
+++ b/categorias.md
@@ -0,0 +1,8 @@
+---
+title: Artigos por categoria
+layout: page
+lang: pt
+ref: categories
+---
+
+{% include categories.html %}
diff --git a/categories.en.md b/categories.en.md
new file mode 100644
index 0000000..711875d
--- /dev/null
+++ b/categories.en.md
@@ -0,0 +1,8 @@
+---
+title: Articles by category
+layout: page
+lang: en
+ref: categories
+---
+
+{% include categories.html %}
diff --git a/categories.fr.md b/categories.fr.md
new file mode 100644
index 0000000..9dabe31
--- /dev/null
+++ b/categories.fr.md
@@ -0,0 +1,8 @@
+---
+title: Articles par catégorie
+layout: page
+lang: fr
+ref: categories
+---
+
+{% include categories.html %}
diff --git a/site.json b/site.json
index 2a0300a..f4e38d9 100644
--- a/site.json
+++ b/site.json
@@ -4,9 +4,9 @@
"pages": [
{% assign filtered_pages = "" | split:"" %}
{% for page in site.pages %}
- {% unless page.plaintext %}
- {% assign filtered_pages = filtered_pages | push:page %}
- {% endunless %}
+ {% unless page.plaintext %}
+ {% assign filtered_pages = filtered_pages | push:page %}
+ {% endunless %}
{% endfor %}
{% for page in filtered_pages %}
{
diff --git a/sobre.md b/sobre.md
index 5da4f5f..e1ba8ac 100644
--- a/sobre.md
+++ b/sobre.md
@@ -28,3 +28,5 @@ usando LaTeX em songbooks e hinários.
## Outros
[Lista de pastebins]({% link pastebins.pt.md %}).
+
+[Artigos por categoria]({% link categorias.md %}).