feat: ajoute les réseaux sociaux à l'accueil

This commit is contained in:
Kazhnuz 2024-04-06 17:07:20 +02:00
parent e43024cd15
commit 349e54ab84
2 changed files with 12 additions and 4 deletions

View file

@ -1,6 +1,6 @@
[ [
{"name":"Mastodon / Fedivers", "url":"https://corneill.es/@Kazhnuz"}, {"name":"Mastodon", "url":"https://corneill.es/@Kazhnuz", "showHome":true},
{"name":"Mastodon / Fedivers (perso)", "url":"https://toot.kobold.cafe/@Kazhnuz"}, {"name":"Fedivers (perso)", "url":"https://toot.kobold.cafe/@Kazhnuz", "showHome":true},
{"name":"Github", "url":"https://github.com/Kazhnuz"}, {"name":"Sheezy.art", "url":"https://sheezy.art/kazhnuz", "showHome":true},
{"name":"Sheezy.art", "url":"https://sheezy.art/kazhnuz"} {"name":"Github", "url":"https://github.com/Kazhnuz", "showHome":false}
] ]

View file

@ -18,6 +18,14 @@ layout: layouts/base.njk
<iframe id="iframe-rss" src="/rss/frame.php"> <iframe id="iframe-rss" src="/rss/frame.php">
</iframe> </iframe>
<div class="align-center mt-1">
{%- for link in social -%}
{%- if (link.showHome == true) -%}
<a href="{{link.url}}" class="btn btn-primary ml-1 mr-1">{{link.name}}</a>
{%- endif -%}
{%- endfor -%}
</div>
{% renderFile "./_includes/buttons.md" %} {% renderFile "./_includes/buttons.md" %}
</main> </main>