From 87fcc2a4313d038811f66ea5410223a3ec22d0f2 Mon Sep 17 00:00:00 2001 From: Marc Vila Date: Sun, 10 Oct 2021 20:36:14 +0200 Subject: [PATCH] add possibility to hide the percentage number in skills --- _includes/about/skills.html | 4 +++- docs/_data/other-skills.yml | 2 ++ docs/_data/programming-skills.yml | 3 +++ 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/_includes/about/skills.html b/_includes/about/skills.html index 79a4b2659..bad02d606 100644 --- a/_includes/about/skills.html +++ b/_includes/about/skills.html @@ -9,7 +9,9 @@

{{ include.title }}

{{ skill.name }}

-

{{ skill.percentage }}%

+ {%- if skill.showPercentage -%} +

{{ skill.percentage }}%

+ {%- endif -%}
diff --git a/docs/_data/other-skills.yml b/docs/_data/other-skills.yml index 543d3bba1..2912c4439 100644 --- a/docs/_data/other-skills.yml +++ b/docs/_data/other-skills.yml @@ -1,7 +1,9 @@ - name: Adobe Photoshop percentage: 95 + showPercentage: true color: info - name: Adobe Illustrator percentage: 90 + showPercentage: true color: success \ No newline at end of file diff --git a/docs/_data/programming-skills.yml b/docs/_data/programming-skills.yml index b879a61fc..55b32a787 100644 --- a/docs/_data/programming-skills.yml +++ b/docs/_data/programming-skills.yml @@ -1,11 +1,14 @@ - name: HTML5/CSS3 percentage: 90 + showPercentage: true color: danger - name: Go percentage: 80 + showPercentage: true color: - name: Python percentage: 70 + showPercentage: true color: secondary \ No newline at end of file