refactor: migrate to /blog subdirectory
This commit is contained in:
@@ -1,25 +1,25 @@
|
||||
<div class="post-list">
|
||||
{% for post in postslist | reverse %}
|
||||
{% for article in articlesList | reverse %}
|
||||
<article class="post-list-item">
|
||||
<header class="post-list-header">
|
||||
<h2>
|
||||
<a href="{{ post.url }}" class="post-list-link">{% if post.data.title %}{{ post.data.title }}{% else %}<code>{{ post.url }}</code>{% endif %}</a>
|
||||
<a href="{{ article.url }}" class="post-list-link">{% if article.data.title %}{{ article.data.title }}{% else %}<code>{{ article.url }}</code>{% endif %}</a>
|
||||
</h2>
|
||||
<div class="post-metadata">
|
||||
<div>
|
||||
Le <time datetime="{{ post.data.date | htmlDateString }}">{{ post.data.date | readableDate }}</time> {{ post.data.authors | readableAuthors }}
|
||||
Le <time datetime="{{ article.data.date | htmlDateString }}">{{ article.data.date | readableDate }}</time> {{ article.data.authors | readableAuthors }}
|
||||
</div>
|
||||
<ul >
|
||||
{%- for tag in post.data.tags | filterTagList %}
|
||||
{%- for tag in article.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>
|
||||
</div>
|
||||
</header>
|
||||
<p>{{ post.data.description }}</p>
|
||||
<p>{{ article.data.description }}</p>
|
||||
<footer class="post-list-footer">
|
||||
<a href="{{ post.url }}">Lire la suite</a>
|
||||
<a href="{{ article.url }}">Lire la suite</a>
|
||||
</footer>
|
||||
</article>
|
||||
{% endfor %}
|
Reference in New Issue
Block a user