Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 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
3 changes: 3 additions & 0 deletions assets/svg/logos/eurostar.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions assets/svg/logos/ns.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions assets/svg/logos/sncb.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions assets/svg/logos/zsr.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified content/news/2/image.webp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
21 changes: 14 additions & 7 deletions layouts/operator/list.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,19 @@ <h2 data-pagefind-meta="title">{{ i18n $key }}</h2>
<a href="https://github.com/orgs/fipguide/projects/3">{{ T "list-disclaimer-link"}}</a>.
</p>
</div>
<ul>
{{ .Content }} {{ range .Pages }}
<li>
<a href="{{ .RelPermalink }}">{{ .Title }}</a>
</li>
{{ end }}
</ul>
<div>
{{ .Content }} {{ range .Pages }}
<a href="{{ .RelPermalink }}" class="col-12 col-lg-4 col-sm-6 o-list__link">
<div class="o-list__picture">
{{ $object := replace .Path (printf "/%s/" .Page.Type) "" }}
{{ partial "ico" (dict "icon" $object "theme" "logos" "size" "50") }}
</div>
<div>
{{ .Title }}
</div>
<br>
</a>
{{ end }}
</div>
</div>
{{ end }}
6 changes: 4 additions & 2 deletions layouts/partials/sidemenu.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,10 @@ <h3 id="related">{{ T "_operator__list_title"}}</h3>
{{ $related := .Site.RegularPages.RelatedIndices . "country" }}
{{ with $related }}
{{ range . }}
{{ $object := replace .Path (printf "/%s/" .Page.Type) "" }}
<li>
<a id="{{ .LinkTitle }}" href="{{ .RelPermalink }}">
{{ partial "ico" (dict "icon" "view_cozy" ) }}
{{ partial "ico" (dict "icon" $object "theme" "logos" "size" "35" ) }}
{{ .LinkTitle }}
</a>
</li>
Expand All @@ -52,9 +53,10 @@ <h3 id="related">{{ T "_operator__nearby"}}</h3>
<ul aria-labelledby="related">
{{ range . }}
{{ if eq .Page.Type "operator" }}
{{ $object := replace .Path (printf "/%s/" .Page.Type) "" }}
<li>
<a id="{{ .LinkTitle }}" href="{{ .RelPermalink }}">
{{ partial "ico" (dict "icon" "view_cozy" ) }}
{{ partial "ico" (dict "icon" $object "theme" "logos" "size" "35") }}
{{ .LinkTitle }}
</a>
</li>
Expand Down