File tree Expand file tree Collapse file tree 2 files changed +70
-0
lines changed Expand file tree Collapse file tree 2 files changed +70
-0
lines changed Original file line number Diff line number Diff line change
1
+ {{ $baseurl := .Site.BaseURL }}
2
+
3
+ < div >
4
+ {{ if .Truncated }}
5
+ < a aria-label ="En savoir plus sur {{ .Title }} " href ="{{ .Permalink }} ">
6
+ {{ end }}
7
+ {{ with .Resources.GetMatch .Params.cover }}
8
+ {{ with .Fill "336x200 Center webp q100" }}
9
+ < div class ="img-container " style ="background-image: url('{{ .RelPermalink }}') "> </ div >
10
+ {{ end }}
11
+ {{ end }}
12
+ {{ if .Truncated }}
13
+ </ a >
14
+ {{ end }}
15
+ < div >
16
+ < h2 >
17
+ {{ if .Truncated }}
18
+ < a aria-label ="En savoir plus sur {{ .Title }} " href ="{{ .Permalink }} "> {{ .Title }}</ a >
19
+ {{ else }}
20
+ {{ .Title }}
21
+ {{ end }}
22
+ </ h2 >
23
+ < ul class ="tags ">
24
+ {{ range $index, $tag := .Params.tags }}
25
+ < li > < a aria-label ="Tag {{ $tag }} " href ="/tags/{{ $tag | urlize }}/ "> {{ $tag }}</ a > </ li >
26
+ {{ end }}
27
+ </ ul >
28
+ < p > {{ .Summary | truncate 100 }}</ p >
29
+ {{ if .Truncated }}
30
+ < a aria-label ="Voir tous les articles " class ="read-more " href ="{{ .Permalink }} "> En savoir plus
31
+ {{ partial "arrow_right.html" . }}
32
+ </ a >
33
+ {{ end }}
34
+ </ div >
35
+ </ div >
Original file line number Diff line number Diff line change
1
+ {{ define "main" }}
2
+
3
+ < section id ="blogs ">
4
+ < div class ="wrapper ">
5
+ < h1 >
6
+ Blog
7
+ </ h1 >
8
+ </ div >
9
+
10
+ < section id ="articles ">
11
+ < div class ="wrapper ">
12
+ {{ range $index, $page := .Paginator.Pages }}
13
+ {{ .Render "li" }}
14
+ {{ end }}
15
+ </ div >
16
+ {{ if or (.Paginator.HasPrev) (.Paginator.HasNext) }}
17
+ < div class ="pagination ">
18
+ {{ if .Paginator.HasPrev }}
19
+ < a href ="{{ .Paginator.Prev.URL }} " class ="previous-page ">
20
+ < div class ="arrow "> {{ partial "arrow_left.html" . }}</ div >
21
+ Page précédente
22
+ </ a >
23
+ {{ end }}
24
+ {{ if .Paginator.HasNext }}
25
+ < a href ="{{ .Paginator.Next.URL }} " class ="next-page ">
26
+ Page suivante
27
+ < div class ="arrow "> {{ partial "arrow_right.html" . }}</ div >
28
+ </ a >
29
+ {{ end }}
30
+ </ div >
31
+ {{ end }}
32
+ </ section >
33
+
34
+ </ section >
35
+ {{end}}
You can’t perform that action at this time.
0 commit comments