From bcddd3bbbea1a64a3fa9d71254f143246116b5b3 Mon Sep 17 00:00:00 2001 From: Henrique Dias Date: Fri, 10 Nov 2023 14:23:27 +0100 Subject: feat: support for custom templates (#129) Adds a `-templates` flag that can be used to provide an alternative directory with templates for Sally to use. The new templates override the default set embedded in Sally. This includes a new 404 template so that 404 errors use the same theme as the rest of the website. Additionally, for HTTP status >400, this also sets the Cache-Control header to discourage CDNs like Cloudflare from caching the page. Resolves #125, #18 --- templates/404.html | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 templates/404.html (limited to 'templates/404.html') diff --git a/templates/404.html b/templates/404.html new file mode 100644 index 0000000..ab5b34a --- /dev/null +++ b/templates/404.html @@ -0,0 +1,11 @@ + + + + + + +
+

No packages found under: "{{ .Path }}".

+
+ + -- cgit v1.2.3