From 690653c952f9dd2e8232530dc0be964f20cc3ad5 Mon Sep 17 00:00:00 2001 From: Keegan Rankin Date: Wed, 30 Aug 2023 13:28:34 -0700 Subject: [PATCH] Revert addition of authoring details from title paragraph Ensure authoring details still display on every full node with author(s) --- agaric/sass/agaric/_component.hero.scss | 12 +----------- agaric/templates/layout/node--full.html.twig | 13 ++++++------- .../templates/paragraph/paragraph--title.html.twig | 6 ------ 3 files changed, 7 insertions(+), 24 deletions(-) diff --git a/agaric/sass/agaric/_component.hero.scss b/agaric/sass/agaric/_component.hero.scss index be61a6f..e04f9c1 100644 --- a/agaric/sass/agaric/_component.hero.scss +++ b/agaric/sass/agaric/_component.hero.scss @@ -150,17 +150,7 @@ font-size: $size-5; line-height: 1.4em; } - .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 { + .title + .subtitle { margin-top: 1em; } } diff --git a/agaric/templates/layout/node--full.html.twig b/agaric/templates/layout/node--full.html.twig index 8f86e1b..76e3512 100644 --- a/agaric/templates/layout/node--full.html.twig +++ b/agaric/templates/layout/node--full.html.twig @@ -106,16 +106,15 @@ {% endif %} - {% if content.field_authors is not empty %} -

Written by {{ content.field_authors }}

-

Posted on

- {% endif %} -{% elseif content.field_authors is not empty %} -{# TODO fix this this looks wrong? #} - +{% endif %} +{% if content.field_authors is not empty %} +
+ + +
{% endif %}
diff --git a/agaric/templates/paragraph/paragraph--title.html.twig b/agaric/templates/paragraph/paragraph--title.html.twig index 2e4acf1..bb7c68b 100644 --- a/agaric/templates/paragraph/paragraph--title.html.twig +++ b/agaric/templates/paragraph/paragraph--title.html.twig @@ -78,12 +78,6 @@
{{ content.field_title }} {{ content.field_subtitle }} -
- {{ authors }} -
-
- Posted on {{ date }} -
{% else %}