Skip to content

Commit

Permalink
add possibility to hide the percentage number in skills
Browse files Browse the repository at this point in the history
  • Loading branch information
LaQuay committed Oct 10, 2021
1 parent 8aa1397 commit 87fcc2a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
4 changes: 3 additions & 1 deletion _includes/about/skills.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ <h2 class="mb-3">{{ include.title }}</h2>
<p class="mb-1">{{ skill.name }}</p>
</div>
<div class="col-2 text-right">
<p class="mb-1 text-muted">{{ skill.percentage }}%</p>
{%- if skill.showPercentage -%}
<p class="mb-1 text-muted">{{ skill.percentage }}%</p>
{%- endif -%}
</div>
</div>

Expand Down
2 changes: 2 additions & 0 deletions docs/_data/other-skills.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
- name: Adobe Photoshop
percentage: 95
showPercentage: true
color: info

- name: Adobe Illustrator
percentage: 90
showPercentage: true
color: success
3 changes: 3 additions & 0 deletions docs/_data/programming-skills.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 87fcc2a

Please sign in to comment.