feat: add articles section
This commit is contained in:
parent
6aa8bdc754
commit
43c2e0853b
9 changed files with 67 additions and 24 deletions
|
|
@ -1 +0,0 @@
|
|||
<a class="zola-anchor" href="#{{ id }}" aria-label="Anchor link for: {{ id }}">#</a>
|
||||
|
|
@ -1,17 +1,23 @@
|
|||
{% extends "base.html" %}
|
||||
|
||||
{% block content %}
|
||||
<h1 class="title">
|
||||
<h1 class="section-title">
|
||||
{{ section.title }}
|
||||
</h1>
|
||||
<ul>
|
||||
<!-- If you are using pagination, section.pages will be empty.
|
||||
You need to use the paginator object -->
|
||||
<ul class="articles">
|
||||
{% for page in section.pages %}
|
||||
<li>
|
||||
<a href="{{ page.permalink | safe }}">{{ page.title }}</a>
|
||||
{% if page.description %}{{ page.description }}{% endif %}
|
||||
{{ page.summary }}
|
||||
<h2 class="title">
|
||||
<a href="{{ page.permalink | safe }}">{{ 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 | safe }}">Lire la suite...</a></span>
|
||||
</p>
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
|
|
|
|||
|
|
@ -1,15 +1,15 @@
|
|||
<header>
|
||||
<nav>
|
||||
<div class="home-title">
|
||||
<a href="{{ get_url(path='/') }}">{{ config.title }}</a>
|
||||
<a href="/">{{ config.title }}</a>
|
||||
</div>
|
||||
<div class="nav-bar">
|
||||
<ul class="nav-links">
|
||||
<li>
|
||||
<a href="/articles">Articles</a>
|
||||
<a href="{{ get_url(path='@/articles/_index.md') }}">Articles</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="/a-propos">À propos</a>
|
||||
<a href="{{ get_url(path='@/a-propos.md') }}">À propos</a>
|
||||
</li>
|
||||
<li class="menu-icons-container">
|
||||
<ul class="menu-icons-group">
|
||||
|
|
|
|||
1
templates/partials/anchor-link.html
Normal file
1
templates/partials/anchor-link.html
Normal file
|
|
@ -0,0 +1 @@
|
|||
<a class="zola-anchor" href="#{{ id }}">#</a>
|
||||
|
|
@ -1,9 +0,0 @@
|
|||
{% extends "base.html" %}
|
||||
|
||||
{% block content %}
|
||||
<h1 class="title">
|
||||
{{ page.title }}
|
||||
</h1>
|
||||
<p class="subtitle"><strong>{{ page.date }}</strong></p>
|
||||
{{ page.content | safe }}
|
||||
{% endblock content %}
|
||||
Loading…
Add table
Add a link
Reference in a new issue