aboutsummaryrefslogtreecommitdiffhomepage
path: root/nuldoc-src/components/global_footer.ts
diff options
context:
space:
mode:
Diffstat (limited to 'nuldoc-src/components/global_footer.ts')
-rw-r--r--nuldoc-src/components/global_footer.ts12
1 files changed, 12 insertions, 0 deletions
diff --git a/nuldoc-src/components/global_footer.ts b/nuldoc-src/components/global_footer.ts
new file mode 100644
index 0000000..4c9d245
--- /dev/null
+++ b/nuldoc-src/components/global_footer.ts
@@ -0,0 +1,12 @@
+import { Config } from "../config.ts";
+import { el, Element, text } from "../dom.ts";
+
+export function globalFooter(config: Config): Element {
+ return el(
+ "footer",
+ [["class", "footer"]],
+ text(
+ `© ${config.blog.siteCopyrightYear} ${config.blog.author}`,
+ ),
+ );
+}