Working on the actual web pages

This commit is contained in:
Caleb Gardner
2024-07-31 06:53:05 -05:00
parent f86cdb0554
commit 91c122e212
4 changed files with 46 additions and 5 deletions
+2
View File
@@ -23,11 +23,13 @@ func portfolioRequest(w http.ResponseWriter, r *http.Request) {
sendIndexWithContent(w, "Error getting portfolio")
return
}
langs := make(map[string]struct{})
out := ""
for _, p := range proj {
out += fmt.Sprintf(portfolioTitle, p.Title)
out += fmt.Sprintf(portfolioLink, p.Repository, p.Repository)
for _, l := range p.Languages {
langs[l.Language] = struct{}{}
out += fmt.Sprintf(portfolioLanguage, l.Language, l.Dates)
}
out += fmt.Sprintf(portfolioDesc, p.Description)