feat: remove type labels from References and add default icon for Courses

This commit is contained in:
juanatsap
2025-11-07 18:51:02 +00:00
parent c77ba32780
commit 39e64811a1
2 changed files with 32 additions and 8 deletions
+22 -2
View File
@@ -809,8 +809,11 @@ iconify-icon {
/* Courses */
.course-item {
margin-bottom: 1rem;
padding-bottom: 0.8rem;
display: flex;
gap: 1.2rem;
align-items: flex-start;
margin-bottom: 2.5rem;
padding-bottom: 2rem;
border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}
@@ -820,6 +823,23 @@ iconify-icon {
margin-bottom: 0;
}
.course-icon {
flex-shrink: 0;
width: 60px;
height: 60px;
display: flex;
align-items: center;
justify-content: center;
}
.default-course-icon {
color: #999;
}
.course-content {
flex: 1;
}
.course-item strong {
font-size: 0.95em;
color: var(--text-dark);
+10 -6
View File
@@ -186,10 +186,15 @@
<h3 class="section-title">{{if eq .Lang "es"}}Cursos Realizados{{else}}Courses{{end}}</h3>
{{range .CV.Courses}}
<div class="course-item">
<strong>{{.Title}}</strong><br>
<small>{{.Institution}} - {{.Location}}</small><br>
<small>{{.Date}} ({{.Duration}})</small>
{{if .Description}}<p class="course-desc">{{.Description}}</p>{{end}}
<div class="course-icon">
<iconify-icon icon="mdi:school" width="60" height="60" class="default-course-icon"></iconify-icon>
</div>
<div class="course-content">
<strong>{{.Title}}</strong><br>
<small>{{.Institution}} - {{.Location}}</small><br>
<small>{{.Date}} ({{.Duration}})</small>
{{if .Description}}<p class="course-desc">{{.Description}}</p>{{end}}
</div>
</div>
{{end}}
</section>
@@ -211,8 +216,7 @@
<h3 class="section-title">{{if eq .Lang "es"}}Referencias{{else}}References{{end}}</h3>
{{range .CV.References}}
<div class="reference-item">
{{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>
{{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}}
</div>
{{end}}
</section>