chore: favicon and old file rm
This commit is contained in:
BIN
ABSTRACTS.png
BIN
ABSTRACTS.png
Binary file not shown.
|
Before Width: | Height: | Size: 1.7 MiB |
@@ -9,7 +9,7 @@ FROM alpine:3.21
|
|||||||
RUN apk add --no-cache ca-certificates
|
RUN apk add --no-cache ca-certificates
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY --from=build /chaosmith-site .
|
COPY --from=build /chaosmith-site .
|
||||||
COPY index.html ABSTRACTS.png ABSTRACTS.webp ./
|
COPY index.html ABSTRACTS.webp favicon.ico favicon.svg ./
|
||||||
COPY src/ ./src/
|
COPY src/ ./src/
|
||||||
EXPOSE 8000
|
EXPOSE 8000
|
||||||
CMD ["./chaosmith-site"]
|
CMD ["./chaosmith-site"]
|
||||||
|
|||||||
@@ -4,6 +4,8 @@
|
|||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<title>{{.Title}}</title>
|
<title>{{.Title}}</title>
|
||||||
|
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
|
||||||
|
<link rel="alternate icon" href="/favicon.ico">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||||
{{if .Post.HTML}}
|
{{if .Post.HTML}}
|
||||||
<meta name="description" content="{{.Post.Description}}">
|
<meta name="description" content="{{.Post.Description}}">
|
||||||
|
|||||||
BIN
favicon.ico
Normal file
BIN
favicon.ico
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 15 KiB |
323
favicon.svg
Normal file
323
favicon.svg
Normal file
@@ -0,0 +1,323 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||||
|
<!-- Created with Inkscape (http://www.inkscape.org/) -->
|
||||||
|
|
||||||
|
<svg
|
||||||
|
width="512"
|
||||||
|
height="512"
|
||||||
|
viewBox="0 0 512 512"
|
||||||
|
version="1.1"
|
||||||
|
id="svg1"
|
||||||
|
xmlns:xlink="http://www.w3.org/1999/xlink"
|
||||||
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
|
xmlns:svg="http://www.w3.org/2000/svg">
|
||||||
|
<defs
|
||||||
|
id="defs1">
|
||||||
|
<linearGradient
|
||||||
|
id="linearGradient98">
|
||||||
|
<stop
|
||||||
|
style="stop-color:#8a6d0a;stop-opacity:1;"
|
||||||
|
offset="0.04520451"
|
||||||
|
id="stop96" />
|
||||||
|
<stop
|
||||||
|
style="stop-color:#470805;stop-opacity:1;"
|
||||||
|
offset="0.36469704"
|
||||||
|
id="stop97" />
|
||||||
|
<stop
|
||||||
|
style="stop-color:#000000;stop-opacity:1;"
|
||||||
|
offset="0.66844416"
|
||||||
|
id="stop98" />
|
||||||
|
</linearGradient>
|
||||||
|
<linearGradient
|
||||||
|
id="linearGradient95">
|
||||||
|
<stop
|
||||||
|
style="stop-color:#8a6d0a;stop-opacity:1;"
|
||||||
|
offset="0.04520451"
|
||||||
|
id="stop93" />
|
||||||
|
<stop
|
||||||
|
style="stop-color:#470805;stop-opacity:1;"
|
||||||
|
offset="0.36469704"
|
||||||
|
id="stop94" />
|
||||||
|
<stop
|
||||||
|
style="stop-color:#000000;stop-opacity:1;"
|
||||||
|
offset="0.6486302"
|
||||||
|
id="stop95" />
|
||||||
|
</linearGradient>
|
||||||
|
<linearGradient
|
||||||
|
id="linearGradient82">
|
||||||
|
<stop
|
||||||
|
style="stop-color:#8a6d0a;stop-opacity:1;"
|
||||||
|
offset="0.04520451"
|
||||||
|
id="stop80" />
|
||||||
|
<stop
|
||||||
|
style="stop-color:#470805;stop-opacity:1;"
|
||||||
|
offset="0.36469704"
|
||||||
|
id="stop81" />
|
||||||
|
<stop
|
||||||
|
style="stop-color:#000000;stop-opacity:1;"
|
||||||
|
offset="0.5735634"
|
||||||
|
id="stop82" />
|
||||||
|
</linearGradient>
|
||||||
|
<linearGradient
|
||||||
|
id="linearGradient72">
|
||||||
|
<stop
|
||||||
|
style="stop-color:#000000;stop-opacity:1;"
|
||||||
|
offset="0"
|
||||||
|
id="stop69" />
|
||||||
|
<stop
|
||||||
|
style="stop-color:#816609;stop-opacity:1;"
|
||||||
|
offset="0.49303558"
|
||||||
|
id="stop73" />
|
||||||
|
<stop
|
||||||
|
style="stop-color:#8a6d0a;stop-opacity:1;"
|
||||||
|
offset="0.83927834"
|
||||||
|
id="stop70" />
|
||||||
|
<stop
|
||||||
|
style="stop-color:#470805;stop-opacity:1;"
|
||||||
|
offset="0.94247276"
|
||||||
|
id="stop71" />
|
||||||
|
<stop
|
||||||
|
style="stop-color:#290806;stop-opacity:1;"
|
||||||
|
offset="0.98198497"
|
||||||
|
id="stop72" />
|
||||||
|
</linearGradient>
|
||||||
|
<linearGradient
|
||||||
|
id="linearGradient65">
|
||||||
|
<stop
|
||||||
|
style="stop-color:#000000;stop-opacity:1;"
|
||||||
|
offset="0"
|
||||||
|
id="stop62" />
|
||||||
|
<stop
|
||||||
|
style="stop-color:#8a6d0a;stop-opacity:1;"
|
||||||
|
offset="0.54639953"
|
||||||
|
id="stop63" />
|
||||||
|
<stop
|
||||||
|
style="stop-color:#470805;stop-opacity:1;"
|
||||||
|
offset="0.77290016"
|
||||||
|
id="stop64" />
|
||||||
|
<stop
|
||||||
|
style="stop-color:#000000;stop-opacity:1;"
|
||||||
|
offset="1"
|
||||||
|
id="stop65" />
|
||||||
|
</linearGradient>
|
||||||
|
<linearGradient
|
||||||
|
id="linearGradient35">
|
||||||
|
<stop
|
||||||
|
style="stop-color:#000000;stop-opacity:1;"
|
||||||
|
offset="0"
|
||||||
|
id="stop32" />
|
||||||
|
<stop
|
||||||
|
style="stop-color:#8a6d0a;stop-opacity:1;"
|
||||||
|
offset="0.54639953"
|
||||||
|
id="stop33" />
|
||||||
|
<stop
|
||||||
|
style="stop-color:#470805;stop-opacity:1;"
|
||||||
|
offset="0.8889032"
|
||||||
|
id="stop34" />
|
||||||
|
<stop
|
||||||
|
style="stop-color:#000000;stop-opacity:1;"
|
||||||
|
offset="1"
|
||||||
|
id="stop35" />
|
||||||
|
</linearGradient>
|
||||||
|
<linearGradient
|
||||||
|
id="linearGradient30">
|
||||||
|
<stop
|
||||||
|
style="stop-color:#8a6d0a;stop-opacity:1;"
|
||||||
|
offset="0.44352639"
|
||||||
|
id="stop28" />
|
||||||
|
<stop
|
||||||
|
style="stop-color:#470805;stop-opacity:1;"
|
||||||
|
offset="0.69636613"
|
||||||
|
id="stop29" />
|
||||||
|
<stop
|
||||||
|
style="stop-color:#000000;stop-opacity:1;"
|
||||||
|
offset="1"
|
||||||
|
id="stop30" />
|
||||||
|
</linearGradient>
|
||||||
|
<linearGradient
|
||||||
|
id="linearGradient12">
|
||||||
|
<stop
|
||||||
|
style="stop-color:#000000;stop-opacity:1;"
|
||||||
|
offset="0.41131714"
|
||||||
|
id="stop12" />
|
||||||
|
<stop
|
||||||
|
style="stop-color:#977806;stop-opacity:1;"
|
||||||
|
offset="0.41309214"
|
||||||
|
id="stop45" />
|
||||||
|
<stop
|
||||||
|
style="stop-color:#705908;stop-opacity:1;"
|
||||||
|
offset="0.42796844"
|
||||||
|
id="stop36" />
|
||||||
|
<stop
|
||||||
|
style="stop-color:#c49f0a;stop-opacity:1;"
|
||||||
|
offset="0.63810652"
|
||||||
|
id="stop44" />
|
||||||
|
<stop
|
||||||
|
style="stop-color:#000000;stop-opacity:1;"
|
||||||
|
offset="0.79596502"
|
||||||
|
id="stop13" />
|
||||||
|
<stop
|
||||||
|
style="stop-color:#e3b40b;stop-opacity:1;"
|
||||||
|
offset="0.82572395"
|
||||||
|
id="stop42" />
|
||||||
|
<stop
|
||||||
|
style="stop-color:#a7840a;stop-opacity:0;"
|
||||||
|
offset="0.82652164"
|
||||||
|
id="stop43" />
|
||||||
|
<stop
|
||||||
|
style="stop-color:#8a6d0a;stop-opacity:0;"
|
||||||
|
offset="1"
|
||||||
|
id="stop17" />
|
||||||
|
</linearGradient>
|
||||||
|
<radialGradient
|
||||||
|
xlink:href="#linearGradient12"
|
||||||
|
id="radialGradient13"
|
||||||
|
cx="252.90149"
|
||||||
|
cy="254.44734"
|
||||||
|
fx="252.90149"
|
||||||
|
fy="254.44734"
|
||||||
|
r="93.369492"
|
||||||
|
gradientTransform="matrix(-0.00852003,1.7691498,-1.789144,-0.00861632,710.35673,-188.94157)"
|
||||||
|
gradientUnits="userSpaceOnUse" />
|
||||||
|
<radialGradient
|
||||||
|
xlink:href="#linearGradient35"
|
||||||
|
id="radialGradient21-1"
|
||||||
|
cx="255.68401"
|
||||||
|
cy="255.99319"
|
||||||
|
fx="255.68401"
|
||||||
|
fy="255.99319"
|
||||||
|
r="256.30237"
|
||||||
|
gradientTransform="matrix(-1,0,0,0.99396864,509.65458,0.64094264)"
|
||||||
|
gradientUnits="userSpaceOnUse" />
|
||||||
|
<radialGradient
|
||||||
|
xlink:href="#linearGradient72"
|
||||||
|
id="radialGradient32"
|
||||||
|
cx="253.74409"
|
||||||
|
cy="255.07935"
|
||||||
|
fx="253.74409"
|
||||||
|
fy="255.07935"
|
||||||
|
r="257.599"
|
||||||
|
gradientTransform="matrix(1,0,0,0.99319964,0,1.7346302)"
|
||||||
|
gradientUnits="userSpaceOnUse" />
|
||||||
|
<radialGradient
|
||||||
|
xlink:href="#linearGradient65"
|
||||||
|
id="radialGradient21-1-5"
|
||||||
|
cx="255.68401"
|
||||||
|
cy="255.99319"
|
||||||
|
fx="255.68401"
|
||||||
|
fy="255.99319"
|
||||||
|
r="256.30237"
|
||||||
|
gradientTransform="matrix(-1,0,0,-0.99396864,510.2156,511.59575)"
|
||||||
|
gradientUnits="userSpaceOnUse" />
|
||||||
|
<radialGradient
|
||||||
|
xlink:href="#linearGradient72"
|
||||||
|
id="radialGradient32-9"
|
||||||
|
cx="253.74409"
|
||||||
|
cy="255.07935"
|
||||||
|
fx="253.74409"
|
||||||
|
fy="255.07935"
|
||||||
|
r="257.599"
|
||||||
|
gradientTransform="matrix(0.9999996,-8.8905549e-4,-8.7920825e-4,-0.98892354,0.7853844,509.63691)"
|
||||||
|
gradientUnits="userSpaceOnUse" />
|
||||||
|
<linearGradient
|
||||||
|
xlink:href="#linearGradient95"
|
||||||
|
id="linearGradient83"
|
||||||
|
x1="409.34177"
|
||||||
|
y1="257.08627"
|
||||||
|
x2="510.86865"
|
||||||
|
y2="257.08627"
|
||||||
|
gradientUnits="userSpaceOnUse" />
|
||||||
|
<linearGradient
|
||||||
|
xlink:href="#linearGradient30"
|
||||||
|
id="linearGradient85"
|
||||||
|
x1="409.34177"
|
||||||
|
y1="257.08627"
|
||||||
|
x2="510.86865"
|
||||||
|
y2="257.08627"
|
||||||
|
gradientUnits="userSpaceOnUse" />
|
||||||
|
<linearGradient
|
||||||
|
xlink:href="#linearGradient98"
|
||||||
|
id="linearGradient86"
|
||||||
|
gradientUnits="userSpaceOnUse"
|
||||||
|
x1="409.34177"
|
||||||
|
y1="257.08627"
|
||||||
|
x2="510.86865"
|
||||||
|
y2="257.08627"
|
||||||
|
gradientTransform="matrix(-1,0,0,1,510.57407,0)" />
|
||||||
|
<linearGradient
|
||||||
|
xlink:href="#linearGradient30"
|
||||||
|
id="linearGradient87"
|
||||||
|
gradientUnits="userSpaceOnUse"
|
||||||
|
x1="409.34177"
|
||||||
|
y1="257.08627"
|
||||||
|
x2="510.86865"
|
||||||
|
y2="257.08627"
|
||||||
|
gradientTransform="matrix(-1,0,0,1,510.57407,0)" />
|
||||||
|
<linearGradient
|
||||||
|
xlink:href="#linearGradient82"
|
||||||
|
id="linearGradient88"
|
||||||
|
gradientUnits="userSpaceOnUse"
|
||||||
|
gradientTransform="matrix(0,-1,-1,0,512.37129,512.37129)"
|
||||||
|
x1="409.34177"
|
||||||
|
y1="257.08627"
|
||||||
|
x2="510.86865"
|
||||||
|
y2="257.08627" />
|
||||||
|
<linearGradient
|
||||||
|
xlink:href="#linearGradient30"
|
||||||
|
id="linearGradient89"
|
||||||
|
gradientUnits="userSpaceOnUse"
|
||||||
|
gradientTransform="matrix(0,-1,-1,0,512.37129,512.37129)"
|
||||||
|
x1="409.34177"
|
||||||
|
y1="257.08627"
|
||||||
|
x2="510.86865"
|
||||||
|
y2="257.08627" />
|
||||||
|
<linearGradient
|
||||||
|
xlink:href="#linearGradient82"
|
||||||
|
id="linearGradient90"
|
||||||
|
gradientUnits="userSpaceOnUse"
|
||||||
|
x1="409.34177"
|
||||||
|
y1="257.08627"
|
||||||
|
x2="510.86865"
|
||||||
|
y2="257.08627"
|
||||||
|
gradientTransform="rotate(90,255.28703,257.08425)" />
|
||||||
|
<linearGradient
|
||||||
|
xlink:href="#linearGradient30"
|
||||||
|
id="linearGradient91"
|
||||||
|
gradientUnits="userSpaceOnUse"
|
||||||
|
x1="409.34177"
|
||||||
|
y1="257.08627"
|
||||||
|
x2="510.86865"
|
||||||
|
y2="257.08627"
|
||||||
|
gradientTransform="rotate(90,255.28703,257.08425)" />
|
||||||
|
</defs>
|
||||||
|
<g
|
||||||
|
id="layer1">
|
||||||
|
<path
|
||||||
|
style="fill:url(#linearGradient83);fill-opacity:1;stroke:url(#linearGradient85);stroke-width:2.13543;stroke-dasharray:none"
|
||||||
|
d="m 510.86865,2.3446542 -4.85397,76.4894118 -96.67292,175.304094 96.45431,180.00114 4.63535,77.68858"
|
||||||
|
id="path73" />
|
||||||
|
<path
|
||||||
|
style="fill:url(#radialGradient21-1);stroke:url(#radialGradient32);stroke-width:2.13543;stroke-dasharray:none;stroke-opacity:1"
|
||||||
|
d="m 504.72717,435.18197 6.18342,75.74678 -74.5101,-5.87424 L 4.9530346,77.239801 0.47006223,1.802194 75.47271,6.7242831 Z"
|
||||||
|
id="path7-0" />
|
||||||
|
<path
|
||||||
|
style="fill:url(#radialGradient21-1-5);stroke:url(#radialGradient32-9);stroke-width:2.13543;stroke-dasharray:none;stroke-opacity:1"
|
||||||
|
d="m 505.28819,77.054726 6.18342,-75.7467797 -74.5101,5.87424 L 5.5140508,434.99689 1.0310784,510.4345 76.033726,505.51241 Z"
|
||||||
|
id="path7-0-3" />
|
||||||
|
<path
|
||||||
|
style="fill:url(#radialGradient13);stroke:none;stroke-width:1.82945"
|
||||||
|
d="m 84.047499,95.557653 c 115.381421,-10.478413 239.764571,-54.963415 337.823141,0 51.21643,108.020757 72.56519,215.535287 0,321.458047 -121.203,84.18717 -224.80327,15.81737 -334.467292,0 C 3.8769133,315.17965 38.89341,205.69568 84.047499,95.557653 Z"
|
||||||
|
id="path5" />
|
||||||
|
<path
|
||||||
|
style="fill:url(#linearGradient86);fill-opacity:1;stroke:url(#linearGradient87);stroke-width:2.13543;stroke-dasharray:none"
|
||||||
|
d="M -0.29458176,2.3446542 4.5593882,78.834066 101.23231,254.13816 4.7779982,434.1393 0.14264824,511.82788"
|
||||||
|
id="path85" />
|
||||||
|
<path
|
||||||
|
style="fill:url(#linearGradient90);fill-opacity:1;stroke:url(#linearGradient91);stroke-width:2.13543;stroke-dasharray:none"
|
||||||
|
d="M 510.02663,512.66587 433.53722,507.8119 258.23313,411.13898 78.231987,507.59329 0.54340745,512.22864"
|
||||||
|
id="path87" />
|
||||||
|
<path
|
||||||
|
style="fill:url(#linearGradient88);fill-opacity:1;stroke:url(#linearGradient89);stroke-width:2.13543;stroke-dasharray:none"
|
||||||
|
d="M 510.02663,1.5026374 433.53722,6.3566074 258.23313,103.02953 78.231987,6.5752174 0.54340745,1.9398674"
|
||||||
|
id="path88" />
|
||||||
|
</g>
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 10 KiB |
10
main.go
10
main.go
@@ -83,6 +83,10 @@ func mimeHandler(next http.Handler) http.Handler {
|
|||||||
ct = "text/css"
|
ct = "text/css"
|
||||||
case "webp":
|
case "webp":
|
||||||
ct = "image/webp"
|
ct = "image/webp"
|
||||||
|
case "svg":
|
||||||
|
ct = "image/svg+xml"
|
||||||
|
case "ico":
|
||||||
|
ct = "image/x-icon"
|
||||||
}
|
}
|
||||||
if ct != "" {
|
if ct != "" {
|
||||||
next.ServeHTTP(&mimeWriter{ResponseWriter: w, override: ct}, r)
|
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) {
|
mux.HandleFunc("/ABSTRACTS.webp", func(w http.ResponseWriter, r *http.Request) {
|
||||||
http.ServeFile(w, r, "ABSTRACTS.webp")
|
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("/src/", http.StripPrefix("/src/", http.FileServer(http.Dir("src"))))
|
||||||
mux.Handle("/content/images/", http.StripPrefix("/content/images/", http.FileServer(http.Dir("content/images"))))
|
mux.Handle("/content/images/", http.StripPrefix("/content/images/", http.FileServer(http.Dir("content/images"))))
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user