From d25ec27fb1c3df175e1b98af1fdc26881d68a1ab Mon Sep 17 00:00:00 2001 From: Elizabeth Hunt Date: Sun, 5 Jan 2025 16:39:13 -0800 Subject: initial commit by simponic-infra --- templates/404.html | 7 +++++++ templates/base.html | 34 ++++++++++++++++++++++++++++++++++ templates/base_empty.html | 3 +++ templates/home.html | 3 +++ templates/name.tmpl | 3 +++ 5 files changed, 50 insertions(+) create mode 100644 templates/404.html create mode 100644 templates/base.html create mode 100644 templates/base_empty.html create mode 100644 templates/home.html create mode 100644 templates/name.tmpl (limited to 'templates') diff --git a/templates/404.html b/templates/404.html new file mode 100644 index 0000000..5210bfb --- /dev/null +++ b/templates/404.html @@ -0,0 +1,7 @@ +{{ define "content" }} +

page not found

+

but hey, at least you found our witty 404 page. that's something, right?

+ +

go back home

+ +{{ end }} diff --git a/templates/base.html b/templates/base.html new file mode 100644 index 0000000..8e18b67 --- /dev/null +++ b/templates/base.html @@ -0,0 +1,34 @@ +{{ define "base" }} + + + + whois simponic. + + + + + + + + + + + + + + + +
+
+

whois

+ home. + | + light mode. +
+
+ {{ template "content" . }} +
+ + + +{{ end }} diff --git a/templates/base_empty.html b/templates/base_empty.html new file mode 100644 index 0000000..6191ab9 --- /dev/null +++ b/templates/base_empty.html @@ -0,0 +1,3 @@ +{{ define "base" }} + {{ template "content" . }} +{{ end }} \ No newline at end of file diff --git a/templates/home.html b/templates/home.html new file mode 100644 index 0000000..e040cb3 --- /dev/null +++ b/templates/home.html @@ -0,0 +1,3 @@ +{{ define "content" }} +hello, my name is {{ .Latest.Name }}! +{{ end }} diff --git a/templates/name.tmpl b/templates/name.tmpl new file mode 100644 index 0000000..108b8a3 --- /dev/null +++ b/templates/name.tmpl @@ -0,0 +1,3 @@ +{{ define "content" }} +{{ .Latest.Name }} +{{ end }} \ No newline at end of file -- cgit v1.2.3-70-g09d2