From 1e91353c8608986c304aa061c9e7a1d8df005934 Mon Sep 17 00:00:00 2001 From: isUnknown Date: Mon, 3 Feb 2025 15:29:26 +0100 Subject: [PATCH] #16 --- assets/css/src/nav.css | 2 +- site/blueprints/pages/year.yml | 7 +++ site/templates/year.php | 79 ++++++++++++++++++---------------- 3 files changed, 50 insertions(+), 38 deletions(-) diff --git a/assets/css/src/nav.css b/assets/css/src/nav.css index cca70b6..2f8542c 100644 --- a/assets/css/src/nav.css +++ b/assets/css/src/nav.css @@ -154,7 +154,7 @@ button.see-more { } /* ================= TEXT ITEM ================= */ -.panel .text { +.texts .text { margin-bottom: var(--unit--vertical); } .panel .text:first-child, diff --git a/site/blueprints/pages/year.yml b/site/blueprints/pages/year.yml index e8ea162..19bda70 100644 --- a/site/blueprints/pages/year.yml +++ b/site/blueprints/pages/year.yml @@ -7,6 +7,13 @@ image: columns: - width: 1/3 sections: + fieldsSection: + type: fields + fields: + openDate: + label: Date d'ouverture + type: date + display: DD/MM/YYYY texts: label: Textes type: pages diff --git a/site/templates/year.php b/site/templates/year.php index 73726d6..01861cb 100644 --- a/site/templates/year.php +++ b/site/templates/year.php @@ -1,39 +1,44 @@ - - +
-
- - -

title() ?>

-
edito() ?>
- -

textes :

-
    - children() as $article): ?> -
  • - -

    title() ?>

    -
    -
    -

    - par - author()->toPage()->title() ?>
    - publiƩ le published()->toDate('d/m/Y') ?>
    - dans parent()->title() ?> / category() ?> -

    +
    + true), slots: true) ?> + +

    title() ?>

    + subtitle()->isNotEmpty()): ?> +

    subtitle()->inline() ?>

    + +

    + ouverte depuis le openDate()->toDate('d/m/Y') ?> +

    + + + +
    + chapo()->isNotEmpty()): ?> +
    + chapo() ?>
    -
  • - -
- - -
-
\ No newline at end of file + +