1
1
< section class ="section blog-home border-top " id ="developmentcircle ">
2
2
< div class ="container ">
3
3
{{ with .Site.Data.homepage.developmentcircle }}
4
+ {{ $mainSiteUrl := .mainSiteUrl }}
4
5
< div class ="row justify-content-center ">
5
6
< div class ="col-lg-6 ">
6
7
< div class ="section-heading text-center ">
@@ -12,31 +13,31 @@ <h2 class="text-lg mb-3">{{ .title | markdownify }}</h2>
12
13
13
14
< div class ="card-deck ">
14
15
{{ $repo := (getJSON .url) }}
15
- {{ range first 3 $repo }}
16
- < div class ="blog-item card mb-4 border-0 ">
17
- {{ if .image }}
18
- < a href ="{{ .url }} " title ="{{ .title | markdownify }} "> < img src ="{{ .image | relURL }} " alt ="{{ .title | markdownify }} " class ="img-fluid w-100 " rel ="nofollow "> </ a >
19
- {{ end }}
20
- < div class ="blog-item-content p-4 ">
21
- < div class ="blog-meta mb-2 small ">
22
- < span class ="d-flex align-items-center text-black mr-4 ">
23
- < img class ="icon mr-2 " alt ="Clock icon " src ="/images/icons/clock.svg " />
24
- < span class ="d-inline-block "> {{ (time .date ).Format "January 02, 2006" }}</ span >
25
- </ span >
16
+ {{ range first 3 $repo.data }}
17
+ < div class ="blog-item card mb-4 border-0 ">
18
+ {{ if .image }}
19
+ < a href ="{{ $mainSiteUrl }}{{ .path }} " title ="{{ .title | markdownify }} "> < img src ="{{ .image | relURL }} " alt ="{{ .title | markdownify }} " class ="img-fluid w-100 " rel ="nofollow "> </ a >
20
+ {{ end }}
21
+ < div class ="blog-item-content p-4 ">
22
+ < div class ="blog-meta mb-2 small ">
23
+ < span class ="d-flex align-items-center text-black mr-4 ">
24
+ < img class ="icon mr-2 " alt ="Clock icon " src ="/images/icons/clock.svg " />
25
+ < span class ="d-inline-block "> {{ (time .publicationDate ).Format "January 02, 2006" }}</ span >
26
+ </ span >
26
27
27
- < span class ="d-flex align-items-center text-black mr-3 ">
28
- < img class ="icon mr-2 " alt ="Person icon " src ="/images/icons/person.svg " />
29
- < span class ="d-inline-block "> by {{ .authors }}</ span >
30
- </ span >
31
- </ div >
32
- < h3 class ="h4 mt-2 mb-3 "> < a href ="{{ .url }} " title ="{{ .title | markdownify }} "> {{ .title | markdownify }}</ a > </ h3 >
33
- < div class ="d-block font-italic mb-4 ">
34
- {{ .excerpt | plainify | truncate 100 }}
28
+ < span class ="d-flex align-items-center text-black mr-3 ">
29
+ < img class ="icon mr-2 " alt ="Person icon " src ="/images/icons/person.svg " />
30
+ < span class ="d-inline-block "> by {{ .authors }}</ span >
31
+ </ span >
32
+ </ div >
33
+ < h3 class ="h4 mt-2 mb-3 "> < a href ="{{ $mainSiteUrl }}{{ .path }} " title ="{{ .title | markdownify }} "> {{ .title | markdownify }}</ a > </ h3 >
34
+ < div class ="d-block font-italic mb-4 ">
35
+ {{ .excerpt | plainify | truncate 100 }}
36
+ </ div >
35
37
</ div >
36
38
</ div >
37
- </ div >
38
- {{ end }}
39
- {{ end }}
40
- </ div >
39
+ {{ end }}
40
+ </ div >
41
+ {{ end }}
41
42
</ div >
42
43
</ section >
0 commit comments