Skip to content

Commit a38f742

Browse files
committed
💫 improve badges display and source
1 parent a3d713f commit a38f742

File tree

3 files changed

+68
-25
lines changed

3 files changed

+68
-25
lines changed

‎content/it-xp/2025-04-04-main-skills.md

Lines changed: 0 additions & 21 deletions
This file was deleted.

‎content/main-skill-badges.json

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
[
2+
{
3+
"logo": "openjdk",
4+
"name": "Java",
5+
"color": "black",
6+
"category": "dev"
7+
},
8+
{
9+
"logo": "python",
10+
"name": "Python",
11+
"color": "3776AB",
12+
"category": "dev"
13+
},
14+
{
15+
"logo": "go",
16+
"name": "Golang",
17+
"color": "black",
18+
"category": "dev"
19+
},
20+
{
21+
"logo": "typescript",
22+
"name": "Typescript",
23+
"color": "3776AB",
24+
"category": "dev"
25+
},
26+
{
27+
"logo": "linux",
28+
"name": "Linux",
29+
"color": "FCC624",
30+
"category": "devops"
31+
},
32+
{
33+
"logo": "github",
34+
"name": "Github%20CI",
35+
"color": "181717",
36+
"category": "devops"
37+
},
38+
{
39+
"logo": "ansible",
40+
"name": "Ansible",
41+
"color": "EE0000",
42+
"category": "devops"
43+
},
44+
{
45+
"logo": "docker",
46+
"name": "Docker",
47+
"color": "2496ED",
48+
"category": "devops"
49+
},
50+
{
51+
"logo": "kubernetes",
52+
"name": "Kubernetes",
53+
"color": "326CE5",
54+
"category": "devops"
55+
},
56+
{
57+
"logo": "terraform",
58+
"name": "Terraform",
59+
"color": "844FBA",
60+
"category": "devops"
61+
}
62+
]

‎templates/tech-file/list.html

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,11 +75,13 @@ <h2 class="font-semibold text-center mt-4">In a nutshell</h2>
7575
<div class="content-center">
7676
<h2 class="font-semibold text-center mt-4">{{ trans(key="main-skills", lang=lang) }}</h2>
7777
</div>
78-
<div class="flex flex-wrap justify-center">
78+
<div class="flex flex-wrap justify-center space-x-2 space-y-4">
7979

80-
{% set badges = get_page(path="it-xp/2025-04-04-main-skills.md") %}
81-
{{ badges.content | safe }}
82-
80+
{% set badges = load_data(path="content/main-skill-badges.json") %}
81+
<div></div>
82+
{% for img in badges %}
83+
<img src="https://img.shields.io/badge/{{ img.category }}-{{ img.name }}-{{ img.color }}?logo={{ img.logo }}" alt="{{ img.name }}" />
84+
{% endfor %}
8385
</div>
8486

8587
{% set it_xp_term = terms | filter(attribute="slug", value="it-xp") | first %}

0 commit comments

Comments
 (0)