diff options
| author | Xe Iaso <me@xeiaso.net> | 2024-06-23 10:50:26 -0400 |
|---|---|---|
| committer | Xe Iaso <me@xeiaso.net> | 2024-06-23 10:50:26 -0400 |
| commit | f3f7c1f36d22cb19d38317c414ef33e59c9cfa01 (patch) | |
| tree | 028f781c3809fb96eaac7494955317962a3205f9 | |
| parent | 8f11c211d5771ff174ffc94f5b8e913d31a7b6b7 (diff) | |
| download | xesite-f3f7c1f36d22cb19d38317c414ef33e59c9cfa01.tar.xz xesite-f3f7c1f36d22cb19d38317c414ef33e59c9cfa01.zip | |
cmd/xesite: oh my god it's even dumber, i had to install mailcap
Signed-off-by: Xe Iaso <me@xeiaso.net>
| -rw-r--r-- | Earthfile | 8 | ||||
| -rw-r--r-- | cmd/xesite/main.go | 5 |
2 files changed, 4 insertions, 9 deletions
@@ -63,13 +63,13 @@ xesite: FROM alpine:edge WORKDIR /app + RUN apk add -U ca-certificates deno typst mailcap + ENV TYPST_FONT_PATHS=/app/fonts + COPY +build-xesite/xesite /app/xesite COPY +fonts/ttf /app/fonts COPY +dhall-json/dhall-to-json /usr/local/bin/dhall-to-json - RUN apk add -U ca-certificates deno typst - ENV TYPST_FONT_PATHS=/app/fonts - CMD ["/app/xesite"] LABEL org.opencontainers.image.source="https://github.com/Xe/site" @@ -78,4 +78,4 @@ xesite: all: BUILD --platform=linux/amd64 +xesite - BUILD --platform=linux/amd64 +patreon-saasproxy
\ No newline at end of file + BUILD --platform=linux/amd64 +patreon-saasproxy diff --git a/cmd/xesite/main.go b/cmd/xesite/main.go index 2b94054..03d2551 100644 --- a/cmd/xesite/main.go +++ b/cmd/xesite/main.go @@ -5,7 +5,6 @@ import ( "flag" "log" "log/slog" - "mime" "net" "net/http" "os" @@ -35,10 +34,6 @@ var ( siteURL = flag.String("site-url", "https://xeiaso.net/", "URL to use for the site") ) -func init() { - mime.AddExtensionType(".rss", "application/rss+xml") -} - func main() { flagenv.Parse() flag.Parse() |
