From b637ff02f660b109d419d99df64c81940f7a8290 Mon Sep 17 00:00:00 2001 From: Anhgelus Morhtuuzh Date: Sat, 9 Nov 2024 21:24:31 +0100 Subject: feat(http): init golatt --- templates/page/base.gohtml | 23 +++++++++++++++++++++++ templates/page/opengraph.gohtml | 18 ++++++++++++++++++ 2 files changed, 41 insertions(+) create mode 100644 templates/page/base.gohtml create mode 100644 templates/page/opengraph.gohtml (limited to 'templates') diff --git a/templates/page/base.gohtml b/templates/page/base.gohtml new file mode 100644 index 0000000..2de2ba4 --- /dev/null +++ b/templates/page/base.gohtml @@ -0,0 +1,23 @@ +{{define "base"}} + + + + + + + {{ .Title }} + + {{template "opengraph-base" .SEO}} + + + {{if .Data.HasNav}} + {{template "navbar" .}} + {{end}} + {{template "body" .}} + {{if .Data.HasFooter}} + {{template "footer" .}} + {{end}} + + + +{{end}} \ No newline at end of file diff --git a/templates/page/opengraph.gohtml b/templates/page/opengraph.gohtml new file mode 100644 index 0000000..f51d561 --- /dev/null +++ b/templates/page/opengraph.gohtml @@ -0,0 +1,18 @@ +{{define "opengraph-base"}} + + + + + + + + + + + + + + + + +{{end}} -- cgit v1.2.3