File tree Expand file tree Collapse file tree 7 files changed +29
-9
lines changed Expand file tree Collapse file tree 7 files changed +29
-9
lines changed Original file line number Diff line number Diff line change @@ -10,12 +10,18 @@ <h2 data-pagefind-meta="title">{{ i18n $key }}</h2>
10
10
< a href ="https://github.com/orgs/fipguide/projects/3 "> {{ T "list-disclaimer-link"}}</ a > .
11
11
</ p >
12
12
</ div >
13
- < ul >
14
- {{ .Content }} {{ range .Pages }}
15
- < li >
16
- < a href ="{{ .RelPermalink }} "> {{ .Title }}</ a >
17
- </ li >
18
- {{ end }}
19
- </ ul >
13
+ < div class ="row ">
14
+ {{ .Content }} {{ range .Pages }}
15
+ < a href ="{{ .RelPermalink }} " class ="col-12 col-lg-4 col-sm-6 o-list__link ">
16
+ < div class ="o-list__picture ">
17
+ {{ $object := replace .Path (printf "/%s/" .Page.Type) "" }}
18
+ {{ partial "ico" (dict "icon" $object "theme" "logos" "size" "50") }}
19
+ </ div >
20
+ < div >
21
+ {{ .Title }}
22
+ </ div >
23
+ </ a >
24
+ {{ end }}
25
+ </ div >
20
26
</ div >
21
27
{{ end }}
Original file line number Diff line number Diff line change @@ -33,9 +33,10 @@ <h3 id="related">{{ T "_operator__list_title"}}</h3>
33
33
{{ $related := .Site.RegularPages.RelatedIndices . "country" }}
34
34
{{ with $related }}
35
35
{{ range . }}
36
+ {{ $object := replace .Path (printf "/%s/" .Page.Type) "" }}
36
37
< li >
37
38
< a id ="{{ .LinkTitle }} " href ="{{ .RelPermalink }} ">
38
- {{ partial "ico" (dict "icon" "view_cozy " ) }}
39
+ {{ partial "ico" (dict "icon" $object "theme" "logos" "size" "35 " ) }}
39
40
{{ .LinkTitle }}
40
41
</ a >
41
42
</ li >
@@ -52,9 +53,10 @@ <h3 id="related">{{ T "_operator__nearby"}}</h3>
52
53
< ul aria-labelledby ="related ">
53
54
{{ range . }}
54
55
{{ if eq .Page.Type "operator" }}
56
+ {{ $object := replace .Path (printf "/%s/" .Page.Type) "" }}
55
57
< li >
56
58
< a id ="{{ .LinkTitle }} " href ="{{ .RelPermalink }} ">
57
- {{ partial "ico" (dict "icon" "view_cozy" ) }}
59
+ {{ partial "ico" (dict "icon" $object "theme" "logos" "size" "35" ) }}
58
60
{{ .LinkTitle }}
59
61
</ a >
60
62
</ li >
You can’t perform that action at this time.
0 commit comments