corrections de problèmes de liens inter articles et de display du about
This commit is contained in:
@@ -160,7 +160,7 @@ log:
|
||||
tag: grav
|
||||
debugger:
|
||||
enabled: false
|
||||
provider: clockwork
|
||||
provider: debugbar
|
||||
censored: false
|
||||
shutdown:
|
||||
close_connection: true
|
||||
@@ -178,6 +178,7 @@ images:
|
||||
retina_scale: '1'
|
||||
defaults:
|
||||
loading: auto
|
||||
decoding: auto
|
||||
watermark:
|
||||
image: 'system://images/watermark.png'
|
||||
position_y: center
|
||||
@@ -189,7 +190,7 @@ media:
|
||||
unsupported_inline_types: null
|
||||
allowed_fallback_types: null
|
||||
auto_metadata_exif: false
|
||||
upload_limit: 2097152
|
||||
upload_limit: 2147483648
|
||||
session:
|
||||
enabled: true
|
||||
initialize: true
|
||||
|
@@ -8,13 +8,14 @@
|
||||
<div class="article-header">
|
||||
{% if page.parent.title == "Articles" %}
|
||||
<div class="article-siblings">
|
||||
{% if not page.isFirst %}
|
||||
<a href="{{ page.nextSibling.url }}">{{ page.nextSibling.title }}<i class="fa-solid fa-chevron-left"></i> Article suivant</a>
|
||||
{{ dump(page.parent.collection.prevSibling(page.path)) }}
|
||||
{% if not page.parent.collection.isFirst(page.path) %}
|
||||
<a href="{{ page.parent.collection.nextSibling(page.path).url }}"><i class="fa-solid fa-chevron-left"></i> Article suivant</a>
|
||||
{% else %}
|
||||
<div></div>
|
||||
{% endif %}
|
||||
{% if not page.isLast %}
|
||||
<a href="{{ page.prevSibling.url }}">{{ page.prevSibling.title }} Article précédent <i class="fa-solid fa-chevron-right"></i></a>
|
||||
{% if not page.parent.collection.isLast(page.path) %}
|
||||
<a href="{{ page.parent.collection.prevSibling(page.path).url }}">Article précédent <i class="fa-solid fa-chevron-right"></i></a>
|
||||
{% endif %}
|
||||
</div>
|
||||
{% endif %}
|
||||
|
@@ -3,7 +3,7 @@
|
||||
{{ page.find('/a-propos').summary|raw }}
|
||||
</div>
|
||||
<div id="about-hidden">
|
||||
{{ page.find('/a-propos').content|slice(page.summary|length, page.content|length)|markdown(false) }}
|
||||
{{ page.find('/a-propos').content|slice(page.find('/a-propos').summary|length, page.find('/a-propos').content|length)|markdown(false) }}
|
||||
</div>
|
||||
<div id="about-arrow">
|
||||
<div></div>
|
||||
|
@@ -1,5 +1,5 @@
|
||||
<main>
|
||||
{% for article in page.find('/articles').children.published.order('date', 'desc') %}
|
||||
{% for article in page.find('/articles').collection %}
|
||||
<div class="article-card">
|
||||
<a href="{{ article.url }}" data-barba="link">
|
||||
<div class="img-cover">
|
||||
|
Reference in New Issue
Block a user