Skip to content

Commit 790944a

Browse files
committed
Icons corresponding to links made clickable
Signed-off-by: Victor-Chris <[email protected]>
1 parent de100c6 commit 790944a

File tree

3 files changed

+29
-14
lines changed

3 files changed

+29
-14
lines changed

website/content/en/_index.html

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -22,20 +22,8 @@
2222
</p>
2323
{{% /blocks/lead %}}
2424
{{< blocks/section color="dark" type="row" >}}
25-
{{% blocks/feature icon="fa-solid fa-code" title="Install Lima" %}}
26-
<a class="mr-3 mb-4 text-secondary" href="{{< relref "/docs/installation" >}}">
27-
Get Lima Here <i class="fas fa-arrow-alt-circle-right ml-2"></i></a>
28-
{{% /blocks/feature %}}
29-
30-
{{% blocks/feature icon="fa-solid fa-chalkboard" title="Try Lima" %}}
31-
<a class="mr-3 mb-4 text-secondary" href="{{< relref "/docs/usage" >}}">
32-
Get started with Lima <i class="fas fa-arrow-alt-circle-right ml-2"></i></a>
33-
{{% /blocks/feature %}}
34-
35-
{{% blocks/feature icon="fa-brands fa-github" title="Contributions welcome" %}}
36-
<a class="mr-3 mb-4 text-secondary" href="{{< relref "/community" >}}">
37-
Join the Lima community <i class="fas fa-arrow-alt-circle-right ml-2"></i></a>
38-
{{% /blocks/feature %}}
25+
26+
{{< blocks/helpfullinks >}}
3927

4028
{{< /blocks/section >}}
4129

website/data/helpfullinks.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
- header: Install Lima
2+
icon: fa-solid fa-code
3+
link: /docs/installation
4+
label: Get Lima Here
5+
- header: Try Lima
6+
icon: fa-solid fa-chalkboard
7+
link: /docs/usage
8+
label: Get started with Lima
9+
- header: Contributions welcome
10+
icon: fa-brands fa-github
11+
link: /community
12+
label: Join the Lima community
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{{ $usedBy := site.Data.helpfullinks -}}
2+
3+
{{ range $usedBy -}}
4+
<div class="col-lg-4 mb-5 mb-lg-0 text-center">
5+
<a class="text-primary" href="{{ .link }}">
6+
<div class="mb-4 h1">
7+
<i class="{{ .icon }}"></i>
8+
</div>
9+
<h4 class="h3">{{ .header }}</h4>
10+
</a>
11+
<a class="mr-3 mb-4 text-secondary" href="{{ .link }}">
12+
{{ .label }} <i class="fas fa-arrow-alt-circle-right ml-2"></i>
13+
</a>
14+
</div>
15+
{{- end }}

0 commit comments

Comments
 (0)