Added titles to pages

This commit is contained in:
Caleb Gardner
2024-11-01 05:11:52 -05:00
parent 52f0d357a7
commit 6925ff9e0c
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -15,7 +15,7 @@ func portfolioRequest(w http.ResponseWriter, r *http.Request) {
return
}
if r.Header.Get("Hx-Request") == "true" {
w.Write([]byte(proj.FullHTMX(r.Context(), blogApp, selectedTech)))
w.Write([]byte("<title>Portfolio</title>" + proj.FullHTMX(r.Context(), blogApp, selectedTech)))
} else {
sendContent(w, r, proj.FullHTMX(r.Context(), blogApp, selectedTech), "Portfolio", "")
}