From 6963f58102c368967cb7f0ed3fce5f978493177d Mon Sep 17 00:00:00 2001 From: Mateja Date: Thu, 28 Jan 2021 22:16:01 +0100 Subject: First commit. --- layouts/_default/baseof.html | 34 ++++++++++++++++++++++++++++++++++ layouts/_default/list.html | 9 +++++++++ layouts/_default/single.html | 3 +++ layouts/blog/single.html | 7 +++++++ layouts/index.html | 3 +++ 5 files changed, 56 insertions(+) create mode 100644 layouts/_default/baseof.html create mode 100644 layouts/_default/list.html create mode 100644 layouts/_default/single.html create mode 100644 layouts/blog/single.html create mode 100644 layouts/index.html (limited to 'layouts') diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html new file mode 100644 index 0000000..07a8f32 --- /dev/null +++ b/layouts/_default/baseof.html @@ -0,0 +1,34 @@ + + + + + + + + + + + + + + + + {{ .Title }} + + + + +
+ {{ block "main" . }}{{ end }} +
+ + + + diff --git a/layouts/_default/list.html b/layouts/_default/list.html new file mode 100644 index 0000000..2fcfeba --- /dev/null +++ b/layouts/_default/list.html @@ -0,0 +1,9 @@ +{{ define "main" }} +{{ .Content }} +

Posts

+ +{{ end }} diff --git a/layouts/_default/single.html b/layouts/_default/single.html new file mode 100644 index 0000000..9983b08 --- /dev/null +++ b/layouts/_default/single.html @@ -0,0 +1,3 @@ +{{ define "main" }} +{{ .Content }} +{{ end }} diff --git a/layouts/blog/single.html b/layouts/blog/single.html new file mode 100644 index 0000000..4db531d --- /dev/null +++ b/layouts/blog/single.html @@ -0,0 +1,7 @@ +{{ define "main" }} +

{{ .Title }}

+ +{{ .Date.Format "2 Jan 2006" }} + +{{ .Content }} +{{ end }} diff --git a/layouts/index.html b/layouts/index.html new file mode 100644 index 0000000..9983b08 --- /dev/null +++ b/layouts/index.html @@ -0,0 +1,3 @@ +{{ define "main" }} +{{ .Content }} +{{ end }} -- cgit v1.2.3