refactor: add sass, minify HTML, remove i18n

This commit is contained in:
2022-10-20 16:10:47 +02:00
parent d211e28aa5
commit 8c0034d325
40 changed files with 405 additions and 197 deletions

View File

@@ -0,0 +1,7 @@
<div class="title">Autres liens</div>
<ul class="links">
{%- for entry in collections.all | eleventyNavigation %}
<li><a
href="{{ entry.url }}">{{ entry.title }}</a></li>
{%- endfor %}
</ul>

View File

@@ -0,0 +1,20 @@
{% for post in postslist | reverse %}
<article class="postlist-item">
<header class="postlist-header">
<h2>
<a href="{{ post.url }}" class="postlist-link">{% if post.data.title %}{{ post.data.title }}{% else %}<code>{{ post.url }}</code>{% endif %}</a>
</h2>
<ul class="post-metadata">
<li><time datetime="{{ post.data.date | htmlDateString }}">{{ post.data.date | readableDate }}</time></li>
{%- for tag in post.data.tags | filterTagList %}
{%- set tagUrl %}/tags/{{ tag | slugify }}/{% endset %}
<li><a href="{{ tagUrl }}" class="post-tag">#{{ tag }}</a>{%- if not loop.last %} {% endif %}</li>
{%- endfor %}
</ul>
</header>
<p>{{ post.data.resume }}</p>
<footer class="postlist-footer">
<a href="{{ post.url }}">Lire la suite</a>
</footer>
</article>
{% endfor %}

View File

@@ -0,0 +1,7 @@
<div class="title">Catégories</div>
<ul class="tags">
{% for tag in collections.all | getAllTags | filterTagList %}
{% set tagUrl %}/tags/{{ tag | slugify }}/{% endset %}
<li><a href="{{ tagUrl }}" class="post-tag">#{{ tag }}</a></li>
{% endfor %}
</ul>