Skip to content

Commit 320487b

Browse files
committed
16.1: fix accesibility issues, allow <i> custom icons, fix missing icons
1 parent c983fbb commit 320487b

4 files changed

Lines changed: 25 additions & 13 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/content/collections/projects/epicalendar.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: epiCalendar
33
desc: web (and python) app that downloads your personal University of Oviedo calendar in ICS or CSV format.
44
source: https://github.com/miermontoto/epiCalendar
5-
custom_links: [{icon: "🛈", url: "/epiCalendar"}]
5+
links: [{icon: '<i class="fa-solid fa-circle-info"></i>', url: "/epiCalendar"}]
66
demo: https://epicalendar.mier.info
77
permalink: /epiCalendar/
88
icons: [devicon-flask-original, devicon-python-plain, devicon-react-plain]

src/content/collections/projects/web.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ desc: my personal portfolio, the very website you are looking at right now.
44
source: https://github.com/miermontoto/miermontoto
55
icons: [devicon-eleventy-plain, fa-brands fa-markdown, devicon-firebase-plain, devicon-sass-original]
66
status: https://dashboard.mier.info/api/badge/1/uptime/48?style=flat-square
7-
custom_links: [{icon: "β", url: "https://mier-f6277--beta-ski9fkat.web.app/"}]
7+
links: [{icon: "β", url: "https://mier-f6277--beta-ski9fkat.web.app/"}]
88
star: star
99
---

src/static/macros.njk

Lines changed: 22 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,20 @@ permalink: false
1010

1111
{% macro renderProjects(projects) %}
1212
<table id="projects">
13-
{% for project in projects %}
14-
{{ renderProject(project) }}
15-
{% endfor %}
13+
<thead hidden>
14+
<tr>
15+
<th>Project</th>
16+
<th>Links</th>
17+
<th>Description</th>
18+
<th>Icons</th>
19+
{# <th>Image</th> #}
20+
</tr>
21+
</thead>
22+
<tbody>
23+
{% for project in projects %}
24+
{{ renderProject(project) }}
25+
{% endfor %}
26+
</tbody>
1627
</table>
1728
{% endmacro %}
1829

@@ -28,14 +39,15 @@ permalink: false
2839

2940
<td class="project-links">
3041
{% if project.data.source %}
31-
<a href="{{ project.data.source }}" target="_blank" rel="noopener noreferrer"><i class="fa-brands fa-square-github"></i></a>
32-
{% endif %}
33-
{% if project.data.custom_links %}
34-
{% for link in project.data.custom_links %}
35-
<br>
36-
<a href="{{ link.url }}" target="_blank" rel="noopener noreferrer">{{ link.icon }}</a>
37-
{% endfor %}
42+
<a href="{{ project.data.source }}" target="_blank" rel="noopener noreferrer"
43+
aria-label="go to the source code for the {{ project.data.name | slug }} project">
44+
<i class="fa-brands fa-square-github"></i>
45+
</a>
3846
{% endif %}
47+
{% for link in project.data.links %}
48+
<br>
49+
<a href="{{ link.url }}" target="_blank" rel="noopener noreferrer">{{ link.icon | safe }}</a>
50+
{% endfor %}
3951
</td>
4052

4153
<td class="project-description">

0 commit comments

Comments
 (0)