diff --git a/eleventy.config.js b/eleventy.config.js
index f32114c..2b86a10 100644
--- a/eleventy.config.js
+++ b/eleventy.config.js
@@ -85,6 +85,10 @@ module.exports = function(eleventyConfig) {
return articles.filter(article => !article.data.draft);
});
+ eleventyConfig.addFilter("onlyDraft", articles => {
+ return articles.filter(article => article.data.draft);
+ });
+
// Return all the tags used in a collection
eleventyConfig.addFilter("getAllTags", collection => {
let tags = new Map();
diff --git a/src/_pages/blog/draft.njk b/src/_pages/blog/draft.njk
new file mode 100644
index 0000000..44aab13
--- /dev/null
+++ b/src/_pages/blog/draft.njk
@@ -0,0 +1,17 @@
+---
+layout: home.njk
+---
+
+
Articles en construction
+
+ {% set articlesList = collections.articles | onlyDraft %}
+ {% if articlesList.len > 0 %}
+ {% include "articlesList.njk" %}
+ {% else %}
+
Tous les articles sont en ligne ! Retournez à l'accueil pour les consulter.
+ {% endif %}
+
+