refactor: review categories position

This commit is contained in:
2022-10-28 17:28:37 +02:00
parent c3ee5e2de1
commit d239b0814d
8 changed files with 109 additions and 78 deletions

View File

@@ -1,19 +0,0 @@
---
layout: home.njk
permalink: 404.html
eleventyExcludeFromCollections: true
---
# Cette page n'existe pas !
Vous avez fait fausse route ¯\_(ツ)_/¯
[Aller à la page daccueil](/)
{#
Read more: https://www.11ty.dev/docs/quicktips/not-found/
This will work for both GitHub pages and Netlify:
* https://help.github.com/articles/creating-a-custom-404-page-for-your-github-pages-site/
* https://www.netlify.com/docs/redirects/#custom-404
#}

18
src/_pages/404.njk Normal file
View File

@@ -0,0 +1,18 @@
---
layout: home.njk
permalink: 404.html
eleventyExcludeFromCollections: true
---
<div class="main-content">
<p>Cette page n'existe pas !</p>
<p>ous avez fait fausse route ¯\_(ツ)_/¯</p>
<p><a href="/">Aller à la page daccueil</a></p>
</div>
<aside class="right-side">
{% include "tagslist.njk" %}
{% include "other_links.njk" %}
</aside>

View File

@@ -4,7 +4,14 @@ eleventyNavigation:
key: Tous les articles
order: 3
---
<h1>Tous les articles</h1>
{% set postslist = collections.posts %}
{% include "postslist.njk" %}
<div class="main-content">
<h1>Tous les articles</h1>
<nav>
{% include "tagslist.njk" %}
</nav>
{% set postslist = collections.posts %}
{% include "postslist.njk" %}
</div>
<aside class="right-side">
{% include "other_links.njk" %}
</aside>

View File

@@ -4,17 +4,17 @@ eleventyNavigation:
key: Accueil
order: 1
---
{% set maxPosts = collections.posts.length | min(5) %}
{#<h1>{% if maxPosts == 1 %}Article{% else %}Derniers articles{% endif %}</h1>#}
<h1 class="main-title">Blog numérique responsable</h1>
<p class="sub-title">par le collectif IT's on us</p>
{% set postslist = collections.posts | head(-5) %}
{% set postslistCounter = collections.posts | length %}
{% include "postslist.njk" %}
{#List all of the pages in the project#}
{#<ul>#}
{# {%- for entry in collections.all %}#}
{# <li><a href="{{ entry.url }}"><code>{{ entry.url }}</code></a></li>#}
{# {%- endfor %}#}
{#</ul>#}
<div class="main-content">
{% set maxPosts = collections.posts.length | min(5) %}
<h1 class="main-title">Blog numérique responsable</h1>
<p class="sub-title">par le collectif IT's on us</p>
<nav>
{% include "tagslist.njk" %}
</nav>
{% set postslist = collections.posts | head(-5) %}
{% set postslistCounter = collections.posts | length %}
{% include "postslist.njk" %}
</div>
<aside class="right-side">
{% include "other_links.njk" %}
</aside>

View File

@@ -14,7 +14,13 @@ eleventyComputed:
title: Tags “{{ tag }}”
permalink: /tags/{{ tag | slugify }}/
---
<h1>#{{ tag }}</h1>
<div class="main-content">
<h1>#{{ tag }}</h1>
{% set postslist = collections[ tag ] %}
{% include "postslist.njk" %}
{% set postslist = collections[ tag ] %}
{% include "postslist.njk" %}
</div>
<aside class="right-side">
{% include "tagslist.njk" %}
{% include "other_links.njk" %}
</aside>