From 0e450b2133ba5ac38450e152f5950cb3221e1e88 Mon Sep 17 00:00:00 2001 From: metamuffin Date: Sat, 1 Jan 2022 00:25:28 +0100 Subject: update copyright year --- LICENCE | 2 +- source/index.ts | 2 +- views/layout.pug | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/LICENCE b/LICENCE index 51d5445..5c60cc5 100644 --- a/LICENCE +++ b/LICENCE @@ -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 = 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]. -- cgit v1.2.3-70-g09d2