Files
cv-site/templates/partials/sections/references.html
T
juanatsap f25f2de8b3 fix: Use direct shortcut URLs in references instead of modal
## Problem
- References section PDF link opened modal dialog
- Modal doesn't work in PDF or non-browser environments
- Link was not usable when CV exported as PDF

## Solution
- Changed from `onclick="openPdfModal()"` to direct shortcut URL
- Spanish CV: `/cv-jamr-2025-es.pdf`
- English CV: `/cv-jamr-2025-en.pdf`
- Language-aware: Uses {{$.Lang}} template variable
- Year-aware: Uses {{$.CurrentYear}} for auto-updates

## Benefits
-  Works in any environment (PDF, browser, external links)
-  Direct download without JavaScript/modal
-  Shareable, permanent URLs
-  Auto-updates yearly with no code changes

Technical details:
- File: templates/partials/sections/references.html:16
- Uses shortcut URLs created in previous feature
- Maintains target="_blank" and security attributes
2025-11-20 12:40:25 +00:00

34 lines
1.6 KiB
HTML

{{define "section-references"}}
<!-- References Section -->
{{if .CV.References}}
<section id="references" class="cv-section component-wrapper">
<!-- Actual Content -->
<div class="actual-content">
<details open>
<summary>
<h3 class="section-title">
<iconify-icon icon="mdi:link-variant" width="24" height="24" class="section-icon"></iconify-icon>
{{if eq .Lang "es"}}Referencias{{else}}References{{end}}
</h3>
</summary>
{{range .CV.References}}
<div class="reference-item">
{{if .TextBefore}}{{.TextBefore}} {{end}}{{if eq .Action "downloadPDF"}}<a href="/cv-jamr-{{$.CurrentYear}}-{{$.Lang}}.pdf" target="_blank" rel="noopener noreferrer"><strong>{{if .LinkText}}{{.LinkText}}{{else}}{{.Title}}{{end}}</strong></a>{{else}}<a href="{{.URL}}" {{if and (eq .Type "cv") (ne .URL "/?lang=en") (ne .URL "/?lang=es")}}download{{else}}target="_blank" rel="noopener noreferrer"{{end}}><strong>{{if .LinkText}}{{.LinkText}}{{else}}{{.Title}}{{end}}</strong></a>{{end}}{{if .TextAfter}} {{.TextAfter}}{{end}}
</div>
{{end}}
</details>
</div>
<!-- Skeleton Content -->
<div class="skeleton-content">
<div class="skeleton-section">
<div class="skeleton skeleton-section-title"></div>
<div class="skeleton skeleton-reference-item"></div>
<div class="skeleton skeleton-reference-item" style="width: 80%;"></div>
<div class="skeleton skeleton-reference-item" style="width: 90%;"></div>
</div>
</div>
</section>
{{end}}
{{end}}