From 08b286faf55b0e2539d19e12395a67728556e085 Mon Sep 17 00:00:00 2001 From: Christian Wolf Date: Wed, 14 Feb 2024 13:54:18 +0100 Subject: [PATCH] Create shortcodes and integration of press articles --- themes/tsc_vfl/assets/css/main.scss | 30 +++++++++++++++++++ themes/tsc_vfl/layouts/_default/press.html | 25 +++++++--------- .../layouts/shortcodes/tsc/press/dld.html | 7 +++++ .../layouts/shortcodes/tsc/press/img.html | 7 +++++ 4 files changed, 54 insertions(+), 15 deletions(-) create mode 100644 themes/tsc_vfl/layouts/shortcodes/tsc/press/dld.html create mode 100644 themes/tsc_vfl/layouts/shortcodes/tsc/press/img.html diff --git a/themes/tsc_vfl/assets/css/main.scss b/themes/tsc_vfl/assets/css/main.scss index e4f6782..9d65b05 100644 --- a/themes/tsc_vfl/assets/css/main.scss +++ b/themes/tsc_vfl/assets/css/main.scss @@ -969,6 +969,36 @@ table.time { } } +.press-articles { + margin: 0 0 2em; + + .press-article { + border-bottom: solid 1px $color-hor-line; + margin: 0 0 3em; + padding: 0 0 3em; + + &:nth-last-of-type(1) { + border-bottom: none; + padding: 0; + margin: 0; + } + + .press-img img { + display: block; + margin: 1em auto; + } + + .metadata { + span { + display: block; + &.date { + font-weight: bold; + } + } + } + } +} + .iframe-generic { display: block; width: 100%; diff --git a/themes/tsc_vfl/layouts/_default/press.html b/themes/tsc_vfl/layouts/_default/press.html index 8e834fd..cff8ef9 100644 --- a/themes/tsc_vfl/layouts/_default/press.html +++ b/themes/tsc_vfl/layouts/_default/press.html @@ -3,22 +3,17 @@

{{ .Title }}

{{ .Content }} - {{ range .Pages.ByPublishDate.Reverse }} -
-
{{ .Title }}
-