Skip to content

Commit

Permalink
changement page d'accueil
Browse files Browse the repository at this point in the history
  • Loading branch information
cbrousseau1 authored and slafayIGN committed Dec 3, 2024
1 parent b0155ec commit a656522
Show file tree
Hide file tree
Showing 24 changed files with 2 additions and 1,071 deletions.
26 changes: 1 addition & 25 deletions content/en/index.njk
Original file line number Diff line number Diff line change
Expand Up @@ -23,28 +23,4 @@ numberOfLatestPostsToShow: 3
</div>
</div>
</div>
<div class="fr-container">
{% set postsCount = collections.posts | filterCollectionLang | length %}
{% set latestPostsCount = postsCount | min(numberOfLatestPostsToShow) %}
<h1>
Latest {{ latestPostsCount }} Post
{% if latestPostsCount != 1 %}s{% endif %}
</h1>
{% set postslist = collections.posts | filterCollectionLang | head(-1 * numberOfLatestPostsToShow) %}
{% set postslistCounter = postsCount %}
{% include "postslist.njk" %}
{% set morePosts = postsCount - numberOfLatestPostsToShow %}
{% if morePosts > 0 %}
<p>
{{ morePosts }} more post
{% if morePosts != 1 %}s{% endif %}
can be found in <a href="{{ "/blog" | locale_url }}">the archive</a>.
</p>
{% endif %}
{# List every content page in the project #}
{#
<ul>
{%- for entry in collections.all %}<li><a href="{{ entry.url }}"><code>{{ entry.url }}</code></a></li>{%- endfor %}
</ul>
#}
</div>

24 changes: 0 additions & 24 deletions content/fr/blog/index.njk

This file was deleted.

96 changes: 0 additions & 96 deletions content/fr/blog/posts/accordeon.md

This file was deleted.

68 changes: 0 additions & 68 deletions content/fr/blog/posts/alerte.md

This file was deleted.

28 changes: 0 additions & 28 deletions content/fr/blog/posts/blog-post.md

This file was deleted.

84 changes: 0 additions & 84 deletions content/fr/blog/posts/carte.md

This file was deleted.

56 changes: 0 additions & 56 deletions content/fr/blog/posts/citation.md

This file was deleted.

Loading

0 comments on commit a656522

Please sign in to comment.