feat: add Udemy courses and fix footer i18n + golangci-lint errors

- Add 5 Udemy courses with PDF certificate links (Go, Fyne, HTMX)
- Fix cv-footer.html to use CV data instead of hardcoded values
- Add i18n labels for footer (linkedin, github, domestika, email, phone)
- Fix 11 golangci-lint errors:
  - errcheck: proper Close() error handling in email/security/tests
  - staticcheck: simplify return and merge variable declaration
  - unused: remove legacy sendEmail and formatMessage functions
This commit is contained in:
juanatsap
2025-12-02 14:11:36 +00:00
parent 3edeb5274d
commit ff74946d2d
15 changed files with 70 additions and 111 deletions
+2 -9
View File
@@ -44,11 +44,7 @@ func isTextBrowser(r *http.Request) bool {
// Check Accept header - if client prefers text/plain
accept := r.Header.Get("Accept")
if strings.HasPrefix(accept, "text/plain") {
return true
}
return false
return strings.HasPrefix(accept, "text/plain")
}
// ==============================================================================
@@ -72,10 +68,7 @@ func (h *CVHandler) PlainText(w http.ResponseWriter, r *http.Request) {
}
// Check icons parameter (default: true)
showIcons := true
if r.URL.Query().Get("icons") == "false" {
showIcons = false
}
showIcons := r.URL.Query().Get("icons") != "false"
// Prepare template data using shared helper (loads CV data)
data, err := h.prepareTemplateData(langCode)