From a6862a7782d2420310ef21d32f842055f219c006 Mon Sep 17 00:00:00 2001 From: Michael Mayer Date: Thu, 19 Jan 2023 21:16:33 +0100 Subject: [PATCH] Templates: Refactor app.gohtml to use snippets Signed-off-by: Michael Mayer --- assets/templates/app.gohtml | 10 ++-------- assets/templates/logo.gohtml | 1 + assets/templates/quotes.gohtml | 7 +++++++ 3 files changed, 10 insertions(+), 8 deletions(-) create mode 100644 assets/templates/logo.gohtml create mode 100644 assets/templates/quotes.gohtml diff --git a/assets/templates/app.gohtml b/assets/templates/app.gohtml index 59df46f58..b37e08a3f 100644 --- a/assets/templates/app.gohtml +++ b/assets/templates/app.gohtml @@ -13,13 +13,7 @@ {{ .config.About }}
- One picture is worth a thousand words. - It's not the camera, but who's behind the camera. - The pictures you want tomorrow, you have to take today. - A camera captures light, our mind captures images. - If you can shoot on the street you can shoot anything. - When asked what equipment you use, say it's your eyes. - Photography is the only language that can be understood anywhere in the world. + {{template "quotes.gohtml" .}}
{{end}} @@ -30,7 +24,7 @@
diff --git a/assets/templates/logo.gohtml b/assets/templates/logo.gohtml new file mode 100644 index 000000000..0c758c1ac --- /dev/null +++ b/assets/templates/logo.gohtml @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/assets/templates/quotes.gohtml b/assets/templates/quotes.gohtml new file mode 100644 index 000000000..e4325c239 --- /dev/null +++ b/assets/templates/quotes.gohtml @@ -0,0 +1,7 @@ +One picture is worth a thousand words. +It's not the camera, but who's behind the camera. +The pictures you want tomorrow, you have to take today. +A camera captures light, our mind captures images. +If you can shoot on the street you can shoot anything. +When asked what equipment you use, say it's your eyes. +Photography is the only language that can be understood anywhere in the world. \ No newline at end of file