Skip to content

Commit b2988a6

Browse files
committed
fixes #33
1 parent 29a1934 commit b2988a6

File tree

2 files changed

+26
-24
lines changed

2 files changed

+26
-24
lines changed

data/homepage.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,8 @@ developmentcircle:
4141
enable : true
4242
title : "Development Circle"
4343
subtitle : ""
44-
url: "https://www.netcentric.biz/insights/jcr:content.blogposts.developer-circle.json"
44+
url: "https://www.netcentric.biz/insights/query-index.json?sheet=github"
45+
mainSiteUrl: "https://www.netcentric.biz"
4546

4647
################################ Careers ###################################
4748
careers:
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<section class="section blog-home border-top" id="developmentcircle">
22
<div class="container">
33
{{ with .Site.Data.homepage.developmentcircle }}
4+
{{ $mainSiteUrl := .mainSiteUrl }}
45
<div class="row justify-content-center">
56
<div class="col-lg-6">
67
<div class="section-heading text-center">
@@ -12,31 +13,31 @@ <h2 class="text-lg mb-3">{{ .title | markdownify }}</h2>
1213

1314
<div class="card-deck">
1415
{{ $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>
2627

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>
3537
</div>
3638
</div>
37-
</div>
38-
{{ end }}
39-
{{ end }}
40-
</div>
39+
{{ end }}
40+
</div>
41+
{{ end }}
4142
</div>
4243
</section>

0 commit comments

Comments
 (0)