refactor: add sass, minify HTML, remove i18n
This commit is contained in:
7
src/_components/other_links.njk
Normal file
7
src/_components/other_links.njk
Normal 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>
|
20
src/_components/postslist.njk
Normal file
20
src/_components/postslist.njk
Normal 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 %}
|
7
src/_components/tagslist.njk
Normal file
7
src/_components/tagslist.njk
Normal 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>
|
Reference in New Issue
Block a user