diff --git a/themes/tsc_vfl/assets/css/main.scss b/themes/tsc_vfl/assets/css/main.scss index 72e53df..4183632 100644 --- a/themes/tsc_vfl/assets/css/main.scss +++ b/themes/tsc_vfl/assets/css/main.scss @@ -760,6 +760,13 @@ h1 { } } +.tsc-image, .tsc-gallery-img { + .credits { + font-style: italic; + float: right; + } +} + .youtube-video { max-width: 100%; } diff --git a/themes/tsc_vfl/layouts/shortcodes/tsc/news/gallery-image.html b/themes/tsc_vfl/layouts/shortcodes/tsc/news/gallery-image.html index 9bf13fa..79d2fac 100644 --- a/themes/tsc_vfl/layouts/shortcodes/tsc/news/gallery-image.html +++ b/themes/tsc_vfl/layouts/shortcodes/tsc/news/gallery-image.html @@ -24,4 +24,10 @@ src="{{ $img.RelPermalink }}" > + {{ with .Get "credits" }} +
Foto: {{ . }}
+ {{ end }} + {{ with .Get "caption" }} + {{ . }} + {{ end }} diff --git a/themes/tsc_vfl/layouts/shortcodes/tsc/news/inline-float.html b/themes/tsc_vfl/layouts/shortcodes/tsc/news/inline-float.html index 6248046..98122ca 100644 --- a/themes/tsc_vfl/layouts/shortcodes/tsc/news/inline-float.html +++ b/themes/tsc_vfl/layouts/shortcodes/tsc/news/inline-float.html @@ -1,4 +1,4 @@ -
+
{{ with .Get "href" }} {{ end }} @@ -7,16 +7,17 @@ {{- $filename := .Get "src" }} {{ $resource := .Page.Resources.Get $filename -}} src="{{ $resource.RelPermalink }}" - style=" - {{- with .Get "width" -}}max-width: min(90%, {{.}}px);{{- end -}} - " > {{ with .Get "href" }} {{ end }} + {{ with .Get "credits" }} +
Foto: {{ . }}
+ {{ end }} {{ with .Get "caption" }}
{{ . }}
{{ end }}
+