diff --git a/_data/config.json b/_data/config.json new file mode 100644 index 0000000..b15438c --- /dev/null +++ b/_data/config.json @@ -0,0 +1,48 @@ +{ + "featuredSites":[ + {"nom":"Kobold Cafe", "url":"https://kobold.cafe/"}, + {"nom":"Site 2", "url":"#"}, + {"nom":"Site 3", "url":"#"} + ], + "siteBlocks":[ + { + "nom":"Social", + "sites":[ + {"nom":"Mastodon", "url":"https://mastodon.social/"}, + {"nom":"Pixelfed", "url":"https://pixelfed.fr/"}, + {"nom":"Tumblr", "url":"https://tumblr.com/"} + ] + }, + { + "nom":"Sites hébergés", + "sites":[ + {"nom":"Kazhnuz Space", "url":"https://kazhnuz.space/"}, + {"nom":"Quarante Douze", "url":"https://quarante-douze.net/"}, + {"nom":"Withelias", "url":"https://withelias.kobold.cafe/"}, + {"nom":"Distant Flare", "url":"https://distantflare.kobold.cafe/"}, + {"nom":"Fanstuff Garden", "url":"https://fanstuff.garden/"} + ] + }, + { + "nom":"Favoris", + "sites":[ + {"nom":"Neocities", "url":"https://neocities.org/"}, + {"nom":"Webidev", "url":"https://webidev.com/"} + ] + }, + { + "nom":"Arts créatifs", + "sites":[ + {"nom":"Bandcamp", "url":"https://bandcamp.com/"}, + {"nom":"Webtoon", "url":"https://webtoon.com/"} + ] + }, + { + "nom":"Tutoriels", + "sites":[ + {"nom":"Docs accessibilités", "url":"https://quarante-douze.net/liens-et-guides-sur-laccessibilite/"}, + {"nom":"Docs web", "url":"https://quarante-douze.net/liens-et-guides-pour-le-dev-web/"} + ] + } + ] +} \ No newline at end of file diff --git a/_includes/layouts/parent.njk b/_includes/layouts/parent.njk index 4e63223..6f01b2a 100644 --- a/_includes/layouts/parent.njk +++ b/_includes/layouts/parent.njk @@ -22,55 +22,22 @@
- - - - - - - - - + {%- for siteBlock in config.siteBlocks -%} + + {%- endfor -%}