From 71f01e6dd0153bf831769a0ea4180f59d3459b87 Mon Sep 17 00:00:00 2001 From: crapStone Date: Sun, 17 Nov 2024 16:43:06 +0100 Subject: [PATCH] run formatters --- README.md | 1 + flake.lock | 10 +++++----- html/html.go | 2 +- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 7b73bb4..4bcd393 100644 --- a/README.md +++ b/README.md @@ -88,6 +88,7 @@ This will trigger a build of the PR which will build a docker image to be used f A custom error page template can be served by creating `custom/error.html`. Data available to the template includes: + - `{{ .StatusCode }}`: The HTTP status code (e.g. 404) - `{{ .StatusText }}`: The textual name associated with the status code (e.g. Not Found) - `{{ .Message }}`: The reason for the error diff --git a/flake.lock b/flake.lock index 90d377f..861cc42 100644 --- a/flake.lock +++ b/flake.lock @@ -5,11 +5,11 @@ "systems": "systems" }, "locked": { - "lastModified": 1726560853, - "narHash": "sha256-X6rJYSESBVr3hBoH0WbKE5KvhPU5bloyZ2L4K60/fPQ=", + "lastModified": 1731533236, + "narHash": "sha256-l0KFg5HjrsfsO/JpG+r7fRrqm12kzFHyUHqHCVpMMbI=", "owner": "numtide", "repo": "flake-utils", - "rev": "c1dfcf08411b08f6b8615f7d8971a2bfa81d5e8a", + "rev": "11707dc2f618dd54ca8739b309ec4fc024de578b", "type": "github" }, "original": { @@ -20,8 +20,8 @@ "nixpkgs": { "locked": { "lastModified": 0, - "narHash": "sha256-8fnFlXBgM/uSvBlLWjZ0Z0sOdRBesyNdH0+esxqizGc=", - "path": "/nix/store/rqicl40jqw5d93l43s1xq0bm6yy0gpx4-source", + "narHash": "sha256-x07g4NcqGP6mQn6AISXJaks9sQYDjZmTMBlKIvajvyc=", + "path": "/nix/store/2w8kz6zh3aq80f1dypiin222fry1rv51-source", "type": "path" }, "original": { diff --git a/html/html.go b/html/html.go index 8b34e9f..ffede7f 100644 --- a/html/html.go +++ b/html/html.go @@ -3,9 +3,9 @@ package html import ( _ "embed" "net/http" - "text/template" // do not use html/template here, we sanitize the message before passing it to the template "os" "path" + "text/template" // do not use html/template here, we sanitize the message before passing it to the template "codeberg.org/codeberg/pages/server/context" "github.com/microcosm-cc/bluemonday"