feat: update References section with formatted text, bold links, and dynamic CV links

This commit is contained in:
juanatsap
2025-11-07 18:40:02 +00:00
parent ab68078c48
commit c77ba32780
4 changed files with 58 additions and 37 deletions
+26 -17
View File
@@ -710,42 +710,51 @@
{
"title": "Recommendations Letter from TwenTIC",
"url": "http://www.drolosoft.com/2010/downloads/recomendacion.pdf",
"type": "recommendation"
"type": "recommendation",
"linkText": "Recommendations Letter",
"textAfter": "from TwenTIC"
},
{
"title": "Presentation Letter",
"url": "http://www.domestika.org/empleo/demanda/txeo",
"type": "presentation"
"type": "presentation",
"linkText": "Presentation Letter"
},
{
"title": "Complete Portfolio (English)",
"title": "Complete Portfolio. English",
"url": "http://www.behance.net/txeo",
"type": "portfolio"
},
{
"title": "Complete Portfolio (Spanish)",
"url": "http://www.domestika.org/portfolios/txeo",
"type": "portfolio"
"type": "portfolio",
"textBefore": "Complete Portfolio.",
"linkText": "English"
},
{
"title": "LinkedIn Profile",
"url": "https://www.linkedin.com/in/juan-andr%C3%A9s-moreno-rubio-3277729/",
"type": "profile"
"type": "profile",
"linkText": "LinkedIn",
"textAfter": "Profile"
},
{
"title": "Tecnoempleo Profile",
"url": "https://www.tecnoempleo.com/juan-andres-moreno-rubio.mpt",
"type": "profile"
"type": "profile",
"linkText": "Tecnoempleo",
"textAfter": "Profile"
},
{
"title": "Currículum Vitae in PDF (Spanish)",
"url": "http://www.morenoyrubio.com/cv/cv_jamr_2021_es.pdf",
"type": "cv"
"title": "Curriculum Vitae in PDF in Spanish",
"url": "/?lang=es",
"type": "cv",
"textBefore": "Curriculum Vitae in PDF in",
"linkText": "Spanish"
},
{
"title": "Currículum Vitae chronological (7 pages)",
"url": "http://morenoyrubio.com/cv/cv_cronologico_jamr_2021_en.pdf",
"type": "cv"
"title": "Curriculum Vitae chronological (7 pages)",
"url": "javascript:window.print();document.getElementById('lengthToggle').checked=true;toggleCVLength();document.getElementById('themeToggle').checked=true;toggleTheme();setTimeout(()=>window.print(),100);",
"type": "cv",
"textBefore": "Curriculum Vitae",
"linkText": "chronological",
"textAfter": "(7 pages)"
}
],
"other": {
+25 -16
View File
@@ -776,42 +776,51 @@
{
"title": "Cartas de recomendación de TwenTiC",
"url": "http://www.drolosoft.com/2010/downloads/recomendacion.pdf",
"type": "recommendation"
"type": "recommendation",
"linkText": "Cartas de recomendación",
"textAfter": "de TwenTiC"
},
{
"title": "Carta de presentación",
"url": "http://www.domestika.org/empleo/demanda/txeo",
"type": "presentation"
"type": "presentation",
"linkText": "Carta de presentación"
},
{
"title": "Portfolio Completo (Inglés)",
"title": "Portfolio Completo. Inglés",
"url": "http://www.behance.net/txeo",
"type": "portfolio"
},
{
"title": "Portfolio Completo (Castellano)",
"url": "http://www.domestika.org/portfolios/txeo",
"type": "portfolio"
"type": "portfolio",
"textBefore": "Portfolio Completo.",
"linkText": "Inglés"
},
{
"title": "Perfil de LinkedIn",
"url": "https://www.linkedin.com/in/juan-andr%C3%A9s-moreno-rubio-3277729/",
"type": "profile"
"type": "profile",
"linkText": "LinkedIn",
"textAfter": "Perfil"
},
{
"title": "Perfil de Tecnoempleo",
"url": "https://www.tecnoempleo.com/juan-andres-moreno-rubio.mpt",
"type": "profile"
"type": "profile",
"linkText": "Tecnoempleo",
"textAfter": "Perfil"
},
{
"title": "Currículum Vitae en PDF en Inglés",
"url": "http://www.morenoyrubio.com/cv/cv_jamr_2021_en.pdf",
"type": "cv"
"url": "/?lang=en",
"type": "cv",
"textBefore": "Currículum Vitae en PDF en",
"linkText": "Inglés"
},
{
"title": "Currículum Vitae Cronológico",
"url": "http://morenoyrubio.com/cv/cv_cronologico_jamr_2021_es.pdf",
"type": "cv"
"title": "Currículum Vitae cronológico (7 páginas)",
"url": "javascript:window.print();document.getElementById('lengthToggle').checked=true;toggleCVLength();document.getElementById('themeToggle').checked=true;toggleTheme();setTimeout(()=>window.print(),100);",
"type": "cv",
"textBefore": "Currículum Vitae",
"linkText": "cronológico",
"textAfter": "(7 páginas)"
}
],
"other": {
+3
View File
@@ -138,6 +138,9 @@ type Reference struct {
Title string `json:"title"`
URL string `json:"url"`
Type string `json:"type"` // "recommendation", "portfolio", "profile", "cv", "presentation"
TextBefore string `json:"textBefore,omitempty"` // Text before the link
LinkText string `json:"linkText,omitempty"` // Bold text inside the link
TextAfter string `json:"textAfter,omitempty"` // Text after the link
}
type Other struct {
+1 -1
View File
@@ -211,7 +211,7 @@
<h3 class="section-title">{{if eq .Lang "es"}}Referencias{{else}}References{{end}}</h3>
{{range .CV.References}}
<div class="reference-item">
<a href="{{.URL}}" target="_blank" rel="noopener noreferrer">{{.Title}}</a><br>
{{if .TextBefore}}{{.TextBefore}} {{end}}<a href="{{.URL}}" target="_blank" rel="noopener noreferrer"><strong>{{if .LinkText}}{{.LinkText}}{{else}}{{.Title}}{{end}}</strong></a>{{if .TextAfter}} {{.TextAfter}}{{end}}<br>
<small class="ref-type">({{.Type}})</small>
</div>
{{end}}