diff options
author | metamuffin <metamuffin@yandex.com> | 2022-01-01 00:25:28 +0100 |
---|---|---|
committer | metamuffin <metamuffin@yandex.com> | 2022-01-01 00:25:28 +0100 |
commit | 0e450b2133ba5ac38450e152f5950cb3221e1e88 (patch) | |
tree | c694f9121ff7b9e31b78a94836831eaea807dab4 | |
parent | abb4aa6f47e91cffe7775095d8949b65af100480 (diff) | |
download | metamuffin-website-0e450b2133ba5ac38450e152f5950cb3221e1e88.tar metamuffin-website-0e450b2133ba5ac38450e152f5950cb3221e1e88.tar.bz2 metamuffin-website-0e450b2133ba5ac38450e152f5950cb3221e1e88.tar.zst |
update copyright year
-rw-r--r-- | LICENCE | 2 | ||||
-rw-r--r-- | source/index.ts | 2 | ||||
-rw-r--r-- | views/layout.pug | 2 |
3 files changed, 3 insertions, 3 deletions
@@ -3,7 +3,7 @@ sources are licenced under the third version of the GNU Affero Public Licence on Sources can be found on https://codeberg.org/metamuffin/website metamuffin.org - metamuffin's website -Copyright (C) 2021 metamuffin +Copyright (C) 2021, 2022 metamuffin This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by diff --git a/source/index.ts b/source/index.ts index a9ee059..d3373aa 100644 --- a/source/index.ts +++ b/source/index.ts @@ -14,7 +14,7 @@ const templates: Map<string, compileTemplate> = new Map() async function render(response: Response, request: Request, name: string) { const template = templates.get(name) ?? compile(await Deno.readTextFile(`./views/${name}.pug`), { filename: `./views/${name}.pug`, name: name }) templates.set(name, template) - let js = request.url.search == "?with-evil-javascript-enabled" + const js = request.url.search == "?with-evil-javascript-enabled" response.body = template({ js, ...renderEnv }) } diff --git a/views/layout.pug b/views/layout.pug index ac5eefc..9043a6b 100644 --- a/views/layout.pug +++ b/views/layout.pug @@ -27,6 +27,6 @@ html(lang="en") hr footer p metamuffin.org version of commit #{commit} - p copyright (C) 2021 metamuffin + p copyright (C) 2021, 2022 metamuffin p see #[a(href="/licence") licence]. p sources can be found on #[a(href="https://codeberg.org/metamuffin/website") codeberg]. |