From 492f2df4e93fa151e7809203bca7b92379694665 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Sat, 21 Sep 2024 10:09:37 +0200 Subject: Migrate /coins to Go templates --- src/templates.go | 1 + src/templates/coins.html.tmpl | 46 +++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 47 insertions(+) create mode 100644 src/templates/coins.html.tmpl diff --git a/src/templates.go b/src/templates.go index 3e34f47..6649b28 100644 --- a/src/templates.go +++ b/src/templates.go @@ -23,6 +23,7 @@ var ( templates = map[string]*template.Template{ "/": buildTemplate("index"), "/about": buildTemplate("about"), + "/coins": buildTemplate("coins"), "/jargon": buildTemplate("jargon"), "/language": buildTemplate("language"), } diff --git a/src/templates/coins.html.tmpl b/src/templates/coins.html.tmpl new file mode 100644 index 0000000..d231ed5 --- /dev/null +++ b/src/templates/coins.html.tmpl @@ -0,0 +1,46 @@ +{{ define "content" }} +
+ {{ template "navbar" . }} +

{{ .T "Euro Coins" }}

+
+
+

+ {{ .T "On this section of the site you can find everything there is to know about the coins of the Eurozone." }} +

+
+
+ +
+
+{{ end }} -- cgit v1.2.3