Skip to content

Commit cf80248

Browse files
committed
feat: updated attributes
1 parent 29bd890 commit cf80248

2 files changed

Lines changed: 14 additions & 33 deletions

File tree

content/about-us/index.de.md

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -26,19 +26,3 @@ Um individuellen Fragen bestmöglich zu begegnen, betreiben wir zusätzlich die
2626
Doch ohne unsere großartige [Community](https://discord.gg/5nWS9Eu9zz "FIP Guide Community auf Discord") wäre das Projekt nicht dort, wo es heute steht. Daher ein herzliches Dankeschön an alle, die uns unterstützen – sei es durch Übersetzungen, Feedback oder das Teilen wertvoller Informationen zur Nutzung von FIP!
2727

2828
Besonderen Dank gilt dabei [Toni Arndt](https://www.linkedin.com/in/toni-arndt-683228174/ "LinkedIn-Profil von Toni Arndt") sowie Kolleg:innen der DB, SNCF, PKP und ČD für zahlreiche inhaltliche Unterstützungen.
29-
30-
{{% float-image
31-
src="test.jpeg"
32-
alt="Das FIP Guide Team"
33-
width="50%"
34-
position="right"
35-
%}}
36-
{{% /float-image %}}
37-
{{% float-image
38-
src="testN3.jpeg"
39-
alt="Das FIP Guide Team"
40-
caption="Das FIP Guide"
41-
width="50%"
42-
position="left"
43-
%}}
44-
{{% /float-image %}}

layouts/partials/image.html

Lines changed: 14 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,8 @@
1818
{{- $figStyles = $figStyles | append (printf "width: %s" $width) -}}
1919
{{- end -}}
2020

21+
{{- $metaInformation := false -}}
2122
{{- $iptcCopyrightNotice := "" -}}
22-
{{- $iptcHeadline := "" -}}
23-
{{- $iptcCaptionAbstract := "" -}}
2423
{{- $artist := "" -}}
2524

2625
{{- if and (ne $extension "svg") (ne $extension "gif") -}}
@@ -29,17 +28,13 @@
2928
{{- with .IPTC -}}
3029
{{- with (index . "CopyrightNotice") -}}
3130
{{- $iptcCopyrightNotice = . -}}
32-
{{- end -}}
33-
{{- with (index . "Headline") -}}
34-
{{- $iptcHeadline = . -}}
35-
{{- end -}}
36-
{{- with (index . "Caption-Abstract") -}}
37-
{{- $iptcCaptionAbstract = . -}}
31+
{{ $metaInformation = true -}}
3832
{{- end -}}
3933
{{- end -}}
4034
{{- with .Exif -}}
4135
{{- with (index . "Artist") -}}
4236
{{- $artist = . -}}
37+
{{ $metaInformation = true -}}
4338
{{- end -}}
4439
{{- end -}}
4540
{{- end -}}
@@ -64,22 +59,24 @@
6459
{{- end -}}
6560
style="{{ delimit $imgStyles "; " | safeCSS }}"
6661
/>
67-
{{- if or (.caption) ($iptcCopyrightNotice) ($artist) -}}
62+
{{- if or (.caption) ($metaInformation) -}}
6863
<hr aria-hidden="true" />
6964
<figcaption>
7065
{{- with .caption -}}
7166
{{- . -}}
7267
{{- end -}}
73-
{{- if and (.caption) (or ($iptcCopyrightNotice) ($artist)) -}}
68+
{{- if and (.caption) ($metaInformation) -}}
7469
<br aria-hidden="true" />
7570
{{- end -}}
76-
© 
77-
{{- with $artist -}}
78-
{{ . }}, 
79-
{{- end -}}
80-
{{- with $iptcCopyrightNotice -}}
81-
{{- . | safeHTML -}}
82-
{{- end -}}
71+
{{- if $metaInformation -}}
72+
© 
73+
{{- with $artist -}}
74+
{{ . }}, 
75+
{{- end -}}
76+
{{- with $iptcCopyrightNotice -}}
77+
{{- . | safeHTML -}}
78+
{{- end -}}
79+
{{ end }}
8380
</figcaption>
8481
{{- end -}}
8582
</figure>

0 commit comments

Comments
 (0)