From d26ecb989f5e5b9e06b34c106a3d391fd2910524 Mon Sep 17 00:00:00 2001 From: Vidhu Kant Sharma Date: Tue, 20 Sep 2022 22:35:52 +0530 Subject: First commit --- layouts/blog/baseof.html | 11 +++++++++++ layouts/blog/list.html | 19 +++++++++++++++++++ layouts/blog/single.html | 6 ++++++ 3 files changed, 36 insertions(+) create mode 100644 layouts/blog/baseof.html create mode 100644 layouts/blog/list.html create mode 100644 layouts/blog/single.html (limited to 'layouts/blog') diff --git a/layouts/blog/baseof.html b/layouts/blog/baseof.html new file mode 100644 index 0000000..0a6ab17 --- /dev/null +++ b/layouts/blog/baseof.html @@ -0,0 +1,11 @@ + + + {{- partial "head.html" . -}} + + {{- partial "nav.html" "blog" -}} +
+ {{- block "main" . }}{{- end }} +
+ {{- partial "footer.html" . -}} + + diff --git a/layouts/blog/list.html b/layouts/blog/list.html new file mode 100644 index 0000000..60d7a2f --- /dev/null +++ b/layouts/blog/list.html @@ -0,0 +1,19 @@ +{{ define "main" }} +
+

{{ if .Params.heading }}{{ .Params.heading }}{{ else }}{{ .Title }}{{ end }}

+ {{ range .Sections.ByDate.Reverse }} +

{{ .Title }}:

+ + {{ end }} +
+{{ end }} + diff --git a/layouts/blog/single.html b/layouts/blog/single.html new file mode 100644 index 0000000..155fc6b --- /dev/null +++ b/layouts/blog/single.html @@ -0,0 +1,6 @@ +{{ define "main" }} +
+

{{ .Title }}

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