fix: cross-section search and CSS loading for chat widget

- agent.go: add section="search" that queries experience, projects,
  skills, and courses simultaneously — fixes missing results when
  a technology spans multiple CV sections (e.g. Java at Insa)
- head-styles.html: use modular CSS in development mode and load
  chat CSS separately — fixes unstyled page when bundle is stale
This commit is contained in:
juanatsap
2026-04-08 00:44:16 +01:00
parent f67126e8c3
commit eddc424962
2 changed files with 43 additions and 8 deletions
+9 -2
View File
@@ -1,7 +1,14 @@
{{define "head-styles"}}
<!-- CSS - Always use bundled CSS (built via 'make css-prod') -->
<!-- Individual CSS files are merged into one bundle to reduce HTTP requests -->
{{if .IsProduction}}
<!-- CSS - Bundled CSS (built via 'make css-prod') -->
<link rel="stylesheet" href="/static/dist/bundle.min.css?v=20251206b">
{{else}}
<!-- CSS - Modular (development) -->
<link rel="stylesheet" href="/static/css/main.css">
{{end}}
{{if .ChatEnabled}}
<link rel="stylesheet" href="/static/css/04-interactive/_chat.css">
{{end}}
<!-- Print styles - loaded separately, only applied when printing -->
<link rel="stylesheet" href="/static/css/print.css" media="print">
{{end}}