Fixes #43 - Standardisation des titres faite avec correction en h1 de ce qui ne devait pas être des h2 et --font-size-xl

This commit is contained in:
antonin gallon 2025-12-03 16:08:25 +01:00
parent 0c447209d9
commit fcf47818d0
8 changed files with 16 additions and 13 deletions

View file

@ -1,5 +1,5 @@
image: node:latest image: node:latest
#test
stages: stages:
- build and deploy - build and deploy

View file

@ -64,6 +64,7 @@ article h2 {
box-sizing: border-box; box-sizing: border-box;
font-weight: var(--font-weight-light); font-weight: var(--font-weight-light);
margin-bottom: var(--unit--vertical); margin-bottom: var(--unit--vertical);
font-size: var(--font-size-xl);
} }
.text__title { .text__title {

View file

@ -4,7 +4,7 @@
<article> <article>
<?php snippet('cover', slots: true) ?> <?php snippet('cover', slots: true) ?>
<?php slot('title') ?> <?php slot('title') ?>
<h2 class="main-title <?= setTitleFontSizeClass($page->title()) ?>"><?= $page->title() ?></h2> <h1 class="main-title"><?= $page->title() ?></h1>
<?= $page->presentation() ?> <?= $page->presentation() ?>
<?php endslot() ?> <?php endslot() ?>
<?php endsnippet() ?> <?php endsnippet() ?>

View file

@ -3,9 +3,7 @@
<article> <article>
<?php snippet('cover', ['isOpen' => true], slots: true) ?> <?php snippet('cover', ['isOpen' => true], slots: true) ?>
<?php slot('title') ?> <?php slot('title') ?>
<h2 <h1 class="main-title"><?= $page->title() ?></h1>
class="main-title fs-xl">
<?= $page->title() ?></h2>
<?php endslot() ?> <?php endslot() ?>
<?php endsnippet() ?> <?php endsnippet() ?>
<div id="main-content"> <div id="main-content">

View file

@ -3,9 +3,7 @@
<article> <article>
<?php snippet('cover', ['isOpen' => true], slots: true) ?> <?php snippet('cover', ['isOpen' => true], slots: true) ?>
<?php slot('title') ?> <?php slot('title') ?>
<h2 <h1 class="main-title"><?= $page->title() ?></h1>
class="main-title <?= setTitleFontSizeClass($page->title()) ?>">
<?= $page->title() ?></h2>
<p> <p>
<span class="light">par</span> <span class="light">par</span>
<a class="author" <a class="author"
@ -17,6 +15,10 @@
/ <a / <a
href="/categories/<?= $page->category() ?>"><?= $page->category() ?></a> href="/categories/<?= $page->category() ?>"><?= $page->category() ?></a>
</p> </p>
<p class="only-print">
<span class="light">imprimé le </span><span><?= \Kirby\Toolkit\Date::today()->format('d/m/Y'); ?></span><br>
<span class="light url"><?= $page->url() ?></span>
</p>
<?php endslot() ?> <?php endslot() ?>
<?php endsnippet() ?> <?php endsnippet() ?>

View file

@ -9,8 +9,12 @@
class="no-underline home-baseline" class="no-underline home-baseline"
title="lire l'éditorial" title="lire l'éditorial"
> >
<h2 class="main-title <?= setTitleFontSizeClass($site->subtitle()) ?>"><?= $site->subtitle()->inline() ?></h2> <h2 class="main-title"><?= $site->subtitle()->inline() ?></h2>
</a> </a>
<p class="only-print">
<span class="light">imprimé le </span><span><?= \Kirby\Toolkit\Date::today()->format('d/m/Y'); ?></span><br>
<span class="light url"><?= $page->url() ?></span>
</p>
<a href="#main-edito" class="main-edito-btn | no-underline" title="lire l'éditorial"> <a href="#main-edito" class="main-edito-btn | no-underline" title="lire l'éditorial">
<p <p
class="oggle-btn toggle-btn--left" class="oggle-btn toggle-btn--left"

View file

@ -3,9 +3,7 @@
<article> <article>
<?php snippet('cover', ['isOpen' => true], slots: true) ?> <?php snippet('cover', ['isOpen' => true], slots: true) ?>
<?php slot('title') ?> <?php slot('title') ?>
<h2 <h1 class="main-title"><?= $page->title() ?></h1>
class="main-title <?= setTitleFontSizeClass($page->title()) ?>">
<?= $page->title() ?></h2>
<div id="main-content"> <div id="main-content">
<?= $page->body() ?> <?= $page->body() ?>
</div> </div>

View file

@ -3,7 +3,7 @@
<article> <article>
<?php snippet('cover', array('isOpen' => true), slots: true) ?> <?php snippet('cover', array('isOpen' => true), slots: true) ?>
<?php slot('title') ?> <?php slot('title') ?>
<h2 class="main-title <?= setTitleFontSizeClass($page->title()) ?>"><?= $page->title() ?></h2> <h1 class="main-title"><?= $page->title() ?></h1>
<?= $page->body() ?> <?= $page->body() ?>
<form id="subscribe-form"> <form id="subscribe-form">
<label for="email"> <label for="email">