From 2e7f90350d16765c5c526c4397c918735cda7d02 Mon Sep 17 00:00:00 2001 From: Keegan Rankin Date: Thu, 13 Jul 2023 17:55:35 -0700 Subject: [PATCH] Add date to paragraph title template --- agaric/sass/agaric/_component.hero.scss | 12 +++++++++++- .../templates/paragraph/paragraph--title.html.twig | 7 ++++++- 2 files changed, 17 insertions(+), 2 deletions(-) diff --git a/agaric/sass/agaric/_component.hero.scss b/agaric/sass/agaric/_component.hero.scss index e04f9c1..be61a6f 100644 --- a/agaric/sass/agaric/_component.hero.scss +++ b/agaric/sass/agaric/_component.hero.scss @@ -150,7 +150,17 @@ font-size: $size-5; line-height: 1.4em; } - .title + .subtitle { + .authors { + color: currentColor; + font-size: $size-5; + line-height: 1em; + } + .created-date { + color: currentColor; + font-size: $size-5; + line-height: 1em; + } + .title + .subtitle, .created-date { margin-top: 1em; } } diff --git a/agaric/templates/paragraph/paragraph--title.html.twig b/agaric/templates/paragraph/paragraph--title.html.twig index 11b053f..2e4acf1 100644 --- a/agaric/templates/paragraph/paragraph--title.html.twig +++ b/agaric/templates/paragraph/paragraph--title.html.twig @@ -78,7 +78,12 @@
{{ content.field_title }} {{ content.field_subtitle }} - {{ authors }} +
+ {{ authors }} +
+
+ Posted on {{ date }} +
{% else %}