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 }}
-
- {{ .Date.Format "02.01.2006" }} - {{ with .Param "source" }}{{ . }}{{ end }} +
+ {{ range .Pages.ByPublishDate.Reverse }} +
+

{{ .Title }}

+ +
{{ .Content }}
-
{{ .Content }}
+ {{ end }}
- - {{ end }} {{ partial "totop" }} {{ end }} diff --git a/themes/tsc_vfl/layouts/shortcodes/tsc/press/dld.html b/themes/tsc_vfl/layouts/shortcodes/tsc/press/dld.html new file mode 100644 index 0000000..dc71bcf --- /dev/null +++ b/themes/tsc_vfl/layouts/shortcodes/tsc/press/dld.html @@ -0,0 +1,7 @@ + +{{ $res := page.Resources.GetMatch (.Get "url") }} + + {{ .Inner }} + diff --git a/themes/tsc_vfl/layouts/shortcodes/tsc/press/img.html b/themes/tsc_vfl/layouts/shortcodes/tsc/press/img.html new file mode 100644 index 0000000..9550210 --- /dev/null +++ b/themes/tsc_vfl/layouts/shortcodes/tsc/press/img.html @@ -0,0 +1,7 @@ + +
+ {{- $res := page.Resources.GetMatch (.Get "src") -}} + +