feat: create index and about pages
This commit is contained in:
parent
cc39ed4c4e
commit
0c71f81c78
8 changed files with 61 additions and 21 deletions
18
templates/partials/articles.html
Normal file
18
templates/partials/articles.html
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
<ul class="articles">
|
||||
{% for page in section.pages %}
|
||||
{%- if max_articles is defined and loop.index > max_articles -%}{%- break -%}{%- endif -%}
|
||||
<li>
|
||||
<h2 class="title">
|
||||
<a href="{{ page.permalink }}">{{ page.title }}</a>
|
||||
</h2>
|
||||
<span class="date">
|
||||
<meta itemprop="datePublished" content="{{ page.date | date(format='%+') }}">
|
||||
{{ page.date | date(format='%d %B %Y') }}
|
||||
</span>
|
||||
</p class="description">
|
||||
<span>{{ page.summary | safe }}</span>
|
||||
<span><a class="read-more" href="{{ page.permalink }}">Lire la suite...</a></span>
|
||||
</p>
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
Loading…
Add table
Add a link
Reference in a new issue