Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion content/operator/ns/index.de.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ Dieser kann [Online](https://www.ns.nl/en/tickets/icd-supplement) bzw. in der NS
Inhaber einer OV-Chipkarte können am Zuschlagsschalter im Bahnhof zu [Off-Peak Zeiten](https://www.ns.nl/en/travel-information/off-peak-hours.html) einen vergünstigten Zuschlag für 1,92 € (40 % Rabatt) erwerben. [^1] [^2] [^3] [^4]
{{< /highlight >}}

![Intercity Direct Netz, Spag85, [CC BY-SA 4.0](https://creativecommons.org/licenses/by-sa/4.0), via [Wikimedia Commons](https://commons.wikimedia.org/wiki/File:Intercity_direct_network.jpg)](intercity-direct-map.webp)
![Intercity Direct Netz](intercity-direct-map.jpg)

{{% /train-category %}}

Expand Down
2 changes: 1 addition & 1 deletion content/operator/ns/index.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ The supplement can be purchased [online](https://www.ns.nl/en/tickets/icd-supple
Holders of an OV-chipkaart can buy a discounted supplement for € 1.92 (40 % discount) at the supplement counter in the station during [off-peak times](https://www.ns.nl/en/travel-information/off-peak-hours.html). [^1] [^2] [^3] [^4]
{{< /highlight >}}

![Intercity Direct Network, Spag85, [CC BY-SA 4.0](https://creativecommons.org/licenses/by-sa/4.0), via [Wikimedia Commons](https://commons.wikimedia.org/wiki/File:Intercity_direct_network.jpg)](intercity-direct-map.webp)
![Intercity Direct Network](intercity-direct-map.jpg)

{{% /train-category %}}

Expand Down
2 changes: 1 addition & 1 deletion content/operator/ns/index.fr.md
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ Ce supplément peut être acheté [en ligne](https://www.ns.nl/en/tickets/icd-su
Les détenteurs d'une carte OV-chipkaart peuvent acheter un supplément à tarif réduit de 1,92 € (40 % de réduction) au guichet pendant les [heures creuses](https://www.ns.nl/en/travel-information/off-peak-hours.html). [^1] [^2] [^3] [^4]
{{< /highlight >}}

![Réseau Intercity Direct, Spag85, [CC BY-SA 4.0](https://creativecommons.org/licenses/by-sa/4.0), via [Wikimedia Commons](https://commons.wikimedia.org/wiki/File:Intercity_direct_network.jpg)](intercity-direct-map.webp)
![Réseau Intercity Direct](intercity-direct-map.jpg)

{{% /train-category %}}

Expand Down
Binary file added content/operator/ns/intercity-direct-map.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed content/operator/ns/intercity-direct-map.webp
Binary file not shown.
41 changes: 39 additions & 2 deletions layouts/partials/image.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,29 @@
{{- $figStyles = $figStyles | append (printf "width: %s" $width) -}}
{{- end -}}

{{- $metaInformation := false -}}
{{- $iptcCopyrightNotice := "" -}}
{{- $artist := "" -}}

{{- if and (ne $extension "svg") (ne $extension "gif") -}}
{{- if reflect.IsImageResourceWithMeta $image -}}
{{- with $image.Meta -}}
{{- with .IPTC -}}
{{- with (index . "CopyrightNotice") -}}
{{- $iptcCopyrightNotice = . -}}
{{ $metaInformation = true -}}
{{- end -}}
{{- end -}}
{{- with .Exif -}}
{{- with (index . "Artist") -}}
{{- $artist = . -}}
{{ $metaInformation = true -}}
{{- end -}}
{{- end -}}
{{- end -}}
{{- end -}}
{{- end -}}


<figure style="{{ delimit $figStyles "; " | safeCSS }}">
<img
Expand All @@ -36,10 +59,24 @@
{{- end -}}
style="{{ delimit $imgStyles "; " | safeCSS }}"
/>
{{- if .caption -}}
{{- if or (.caption) ($metaInformation) -}}
<hr aria-hidden="true" />
<figcaption>
{{- .caption -}}
{{- with .caption -}}
{{- . -}}
{{- end -}}
{{- if and (.caption) ($metaInformation) -}}
<br aria-hidden="true" />
{{- end -}}
{{- if $metaInformation -}}
© 
{{- with $artist -}}
{{ . }}, 
{{- end -}}
{{- with $iptcCopyrightNotice -}}
{{- . | safeHTML -}}
{{- end -}}
{{ end }}
</figcaption>
{{- end -}}
</figure>
Loading