Skip to content

Commit 15be074

Browse files
committed
16.0 RC2: new custom links for projects, detect RTW versions
1 parent d0addbe commit 15be074

5 files changed

Lines changed: 9 additions & 6 deletions

File tree

.eleventy.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ module.exports = function (eleventyConfig) {
1313
eleventyConfig.addShortcode("version", function() {
1414
let json = require('./package.json');
1515
let version = json.version || 'unknown';
16-
let release = json.release ? ` (${json.release})` : '';
16+
let release = json.release && json.release !== 'RTW' ? ` (${json.release})` : '';
1717
return `${version}${release}`;
1818
});
1919

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-
info: "/epiCalendar"
5+
custom_links: [{icon: "🛈", 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 & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +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/"}]
78
star: star
89
---

src/static/macros.njk

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,11 @@ permalink: false
3030
{% if project.data.source %}
3131
<a href="{{ project.data.source }}" target="_blank" rel="noopener noreferrer"><i class="fa-brands fa-square-github"></i></a>
3232
{% endif %}
33-
{% if project.data.info %}
34-
<br>
35-
<a href="{{ project.data.info }}" target="_blank" rel="noopener noreferrer">🛈</a>
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 %}
3638
{% endif %}
3739
</td>
3840

0 commit comments

Comments
 (0)