From fea0ef77c8c98dfadd2f9d29804653293fd31c99 Mon Sep 17 00:00:00 2001 From: a73x Date: Sun, 25 Aug 2024 15:14:41 +0100 Subject: feat: add templating --- templates/index.html | 44 ++++++++++++++++++++++++++++++++++++++ templates/layouts/default.html | 48 ++++++++++++++++++++++++++++++++++++++++++ templates/layouts/header.html | 8 +++++++ templates/posts.html | 4 ++++ 4 files changed, 104 insertions(+) create mode 100644 templates/index.html create mode 100644 templates/layouts/default.html create mode 100644 templates/layouts/header.html create mode 100644 templates/posts.html (limited to 'templates') diff --git a/templates/index.html b/templates/index.html new file mode 100644 index 0000000..ee1a64c --- /dev/null +++ b/templates/index.html @@ -0,0 +1,44 @@ +{{template "base" .}} +{{define "content"}} + +

daily learnings

+

#go

+ +

#git

+ + +

Books

+ +{{end}} diff --git a/templates/layouts/default.html b/templates/layouts/default.html new file mode 100644 index 0000000..cfb0c17 --- /dev/null +++ b/templates/layouts/default.html @@ -0,0 +1,48 @@ +{{define "base"}} + + + + + + + + + a73x + + + + + {{ template "header.html" . }} + {{ template "content" . }} + + + +{{end}} diff --git a/templates/layouts/header.html b/templates/layouts/header.html new file mode 100644 index 0000000..be02def --- /dev/null +++ b/templates/layouts/header.html @@ -0,0 +1,8 @@ + +

a73x

+ diff --git a/templates/posts.html b/templates/posts.html new file mode 100644 index 0000000..75d3801 --- /dev/null +++ b/templates/posts.html @@ -0,0 +1,4 @@ +{{template "base" .}} +{{define "content"}} +

Posts

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