Skip to content

Commit

Permalink
fix title, DSFR-ise tables in md files, fix filter
Browse files Browse the repository at this point in the history
  • Loading branch information
slafayIGN committed Feb 15, 2024
1 parent 8b9b648 commit bd87753
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion content/fr/personal-data/index.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: Exemple
title: Données personnelles
layout: layouts/page.njk
description: A compléter
slugOverride: donnees personnelles
Expand Down
8 changes: 7 additions & 1 deletion eleventy.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ module.exports = function (eleventyConfig) {
});

eleventyConfig.addFilter("filterTagList", function filterTagList(tags, addTags = []) {
return (tags || []).filter(tag => ["all", "nav", "post", "posts", "event"]
return (tags || []).filter(tag => ["all", "nav", "post", "posts", "events"]
.concat(addTags)
.indexOf(tag) === -1);
});
Expand All @@ -158,6 +158,12 @@ module.exports = function (eleventyConfig) {
});
});

eleventyConfig.amendLibrary("md", mdLib => {
mdLib.renderer.rules.table_open = function(tokens, idx) {
return '<table class="fr-table">';
};
});

eleventyConfig.amendLibrary("md", mdLib => {
mdLib.use(markdownItAttrs);
});
Expand Down

0 comments on commit bd87753

Please sign in to comment.