From 0710bab08caffa9736bf7442d483ca9a6fd04708 Mon Sep 17 00:00:00 2001 From: Alban Gruin Date: Wed, 2 Feb 2022 13:52:35 +0100 Subject: pages: always show the current year in the copyright Signed-off-by: Alban Gruin --- src/pages.ml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/pages.ml b/src/pages.ml index 86396a4..e9f255a 100644 --- a/src/pages.ml +++ b/src/pages.ml @@ -1,5 +1,5 @@ (* - * Copyright (C) 2020, 2021 Alban Gruin + * Copyright (C) 2020 -- 2022 Alban Gruin * * ucs is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published @@ -15,6 +15,9 @@ * along with ucs. If not, see . *) +let year () = + Int.to_string CalendarLib.Calendar.(year @@ now ()) + let escape str = Stringext.replace_all_assoc str ["<", "<"; ">", ">"] @@ -34,7 +37,7 @@ let common content =
|} ^ content ^ {|
-- cgit v1.2.1