diff --git a/ABSTRACTS.png b/ABSTRACTS.png
deleted file mode 100644
index 3c8bbc0..0000000
Binary files a/ABSTRACTS.png and /dev/null differ
diff --git a/Dockerfile b/Dockerfile
index e8f929f..f79951e 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -9,7 +9,7 @@ FROM alpine:3.21
RUN apk add --no-cache ca-certificates
WORKDIR /app
COPY --from=build /chaosmith-site .
-COPY index.html ABSTRACTS.png ABSTRACTS.webp ./
+COPY index.html ABSTRACTS.webp favicon.ico favicon.svg ./
COPY src/ ./src/
EXPOSE 8000
CMD ["./chaosmith-site"]
diff --git a/blog/templates/base.html b/blog/templates/base.html
index 8a66e80..d7659ec 100644
--- a/blog/templates/base.html
+++ b/blog/templates/base.html
@@ -4,6 +4,8 @@
{{.Title}}
+
+
{{if .Post.HTML}}
diff --git a/favicon.ico b/favicon.ico
new file mode 100644
index 0000000..34186ea
Binary files /dev/null and b/favicon.ico differ
diff --git a/favicon.svg b/favicon.svg
new file mode 100644
index 0000000..f616ec2
--- /dev/null
+++ b/favicon.svg
@@ -0,0 +1,323 @@
+
+
+
+
diff --git a/main.go b/main.go
index 787aabc..8987df6 100644
--- a/main.go
+++ b/main.go
@@ -83,6 +83,10 @@ func mimeHandler(next http.Handler) http.Handler {
ct = "text/css"
case "webp":
ct = "image/webp"
+ case "svg":
+ ct = "image/svg+xml"
+ case "ico":
+ ct = "image/x-icon"
}
if ct != "" {
next.ServeHTTP(&mimeWriter{ResponseWriter: w, override: ct}, r)
@@ -100,6 +104,12 @@ func main() {
mux.HandleFunc("/ABSTRACTS.webp", func(w http.ResponseWriter, r *http.Request) {
http.ServeFile(w, r, "ABSTRACTS.webp")
})
+ mux.HandleFunc("/favicon.ico", func(w http.ResponseWriter, r *http.Request) {
+ http.ServeFile(w, r, "favicon.ico")
+ })
+ mux.HandleFunc("/favicon.svg", func(w http.ResponseWriter, r *http.Request) {
+ http.ServeFile(w, r, "favicon.svg")
+ })
mux.Handle("/src/", http.StripPrefix("/src/", http.FileServer(http.Dir("src"))))
mux.Handle("/content/images/", http.StripPrefix("/content/images/", http.FileServer(http.Dir("content/images"))))