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", "title": "Recommendations Letter from TwenTIC",
"url": "http://www.drolosoft.com/2010/downloads/recomendacion.pdf", "url": "http://www.drolosoft.com/2010/downloads/recomendacion.pdf",
"type": "recommendation" "type": "recommendation",
"linkText": "Recommendations Letter",
"textAfter": "from TwenTIC"
}, },
{ {
"title": "Presentation Letter", "title": "Presentation Letter",
"url": "http://www.domestika.org/empleo/demanda/txeo", "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", "url": "http://www.behance.net/txeo",
"type": "portfolio" "type": "portfolio",
}, "textBefore": "Complete Portfolio.",
{ "linkText": "English"
"title": "Complete Portfolio (Spanish)",
"url": "http://www.domestika.org/portfolios/txeo",
"type": "portfolio"
}, },
{ {
"title": "LinkedIn Profile", "title": "LinkedIn Profile",
"url": "https://www.linkedin.com/in/juan-andr%C3%A9s-moreno-rubio-3277729/", "url": "https://www.linkedin.com/in/juan-andr%C3%A9s-moreno-rubio-3277729/",
"type": "profile" "type": "profile",
"linkText": "LinkedIn",
"textAfter": "Profile"
}, },
{ {
"title": "Tecnoempleo Profile", "title": "Tecnoempleo Profile",
"url": "https://www.tecnoempleo.com/juan-andres-moreno-rubio.mpt", "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)", "title": "Curriculum Vitae in PDF in Spanish",
"url": "http://www.morenoyrubio.com/cv/cv_jamr_2021_es.pdf", "url": "/?lang=es",
"type": "cv" "type": "cv",
"textBefore": "Curriculum Vitae in PDF in",
"linkText": "Spanish"
}, },
{ {
"title": "Currículum Vitae chronological (7 pages)", "title": "Curriculum Vitae chronological (7 pages)",
"url": "http://morenoyrubio.com/cv/cv_cronologico_jamr_2021_en.pdf", "url": "javascript:window.print();document.getElementById('lengthToggle').checked=true;toggleCVLength();document.getElementById('themeToggle').checked=true;toggleTheme();setTimeout(()=>window.print(),100);",
"type": "cv" "type": "cv",
"textBefore": "Curriculum Vitae",
"linkText": "chronological",
"textAfter": "(7 pages)"
} }
], ],
"other": { "other": {
+25 -16
View File
@@ -776,42 +776,51 @@
{ {
"title": "Cartas de recomendación de TwenTiC", "title": "Cartas de recomendación de TwenTiC",
"url": "http://www.drolosoft.com/2010/downloads/recomendacion.pdf", "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", "title": "Carta de presentación",
"url": "http://www.domestika.org/empleo/demanda/txeo", "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", "url": "http://www.behance.net/txeo",
"type": "portfolio" "type": "portfolio",
}, "textBefore": "Portfolio Completo.",
{ "linkText": "Inglés"
"title": "Portfolio Completo (Castellano)",
"url": "http://www.domestika.org/portfolios/txeo",
"type": "portfolio"
}, },
{ {
"title": "Perfil de LinkedIn", "title": "Perfil de LinkedIn",
"url": "https://www.linkedin.com/in/juan-andr%C3%A9s-moreno-rubio-3277729/", "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", "title": "Perfil de Tecnoempleo",
"url": "https://www.tecnoempleo.com/juan-andres-moreno-rubio.mpt", "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", "title": "Currículum Vitae en PDF en Inglés",
"url": "http://www.morenoyrubio.com/cv/cv_jamr_2021_en.pdf", "url": "/?lang=en",
"type": "cv" "type": "cv",
"textBefore": "Currículum Vitae en PDF en",
"linkText": "Inglés"
}, },
{ {
"title": "Currículum Vitae Cronológico", "title": "Currículum Vitae cronológico (7 páginas)",
"url": "http://morenoyrubio.com/cv/cv_cronologico_jamr_2021_es.pdf", "url": "javascript:window.print();document.getElementById('lengthToggle').checked=true;toggleCVLength();document.getElementById('themeToggle').checked=true;toggleTheme();setTimeout(()=>window.print(),100);",
"type": "cv" "type": "cv",
"textBefore": "Currículum Vitae",
"linkText": "cronológico",
"textAfter": "(7 páginas)"
} }
], ],
"other": { "other": {
+6 -3
View File
@@ -135,9 +135,12 @@ type Course struct {
} }
type Reference struct { type Reference struct {
Title string `json:"title"` Title string `json:"title"`
URL string `json:"url"` URL string `json:"url"`
Type string `json:"type"` // "recommendation", "portfolio", "profile", "cv", "presentation" 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 { type Other struct {
+1 -1
View File
@@ -211,7 +211,7 @@
<h3 class="section-title">{{if eq .Lang "es"}}Referencias{{else}}References{{end}}</h3> <h3 class="section-title">{{if eq .Lang "es"}}Referencias{{else}}References{{end}}</h3>
{{range .CV.References}} {{range .CV.References}}
<div class="reference-item"> <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> <small class="ref-type">({{.Type}})</small>
</div> </div>
{{end}} {{end}}