From 00ad5932d73fca7ec60acf5a6fa64bab6fed0224 Mon Sep 17 00:00:00 2001 From: Vidhu Kant Sharma Date: Fri, 17 Nov 2023 17:10:16 +0530 Subject: first commit --- layouts/404.html | 4 ++++ layouts/_default/baseof.html | 11 +++++++++++ layouts/_default/list.html | 6 ++++++ layouts/_default/single.html | 3 +++ layouts/index.html | 3 +++ layouts/partials/head.html | 20 ++++++++++++++++++++ layouts/partials/header.html | 12 ++++++++++++ layouts/partials/release-wrapper.html | 3 +++ layouts/partials/release.html | 16 ++++++++++++++++ 9 files changed, 78 insertions(+) create mode 100644 layouts/404.html 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/index.html create mode 100644 layouts/partials/head.html create mode 100644 layouts/partials/header.html create mode 100644 layouts/partials/release-wrapper.html create mode 100644 layouts/partials/release.html (limited to 'layouts') diff --git a/layouts/404.html b/layouts/404.html new file mode 100644 index 0000000..6f307ba --- /dev/null +++ b/layouts/404.html @@ -0,0 +1,4 @@ +{{ define "main" }} +

(404) The page you requested was not found.

+

Go back home

+{{ end }} diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html new file mode 100644 index 0000000..a11fb92 --- /dev/null +++ b/layouts/_default/baseof.html @@ -0,0 +1,11 @@ + + + {{- partial "head.html" . -}} + + {{- partial "header.html" . -}} + +
+ {{- block "main" . }}{{- end }} +
+ + diff --git a/layouts/_default/list.html b/layouts/_default/list.html new file mode 100644 index 0000000..6d9af48 --- /dev/null +++ b/layouts/_default/list.html @@ -0,0 +1,6 @@ +{{ define "main" }} + {{ .Content }} + {{ range .Pages.ByDate.Reverse }} + {{ partial "release-wrapper.html" . }} + {{ end }} +{{ end }} diff --git a/layouts/_default/single.html b/layouts/_default/single.html new file mode 100644 index 0000000..84748f6 --- /dev/null +++ b/layouts/_default/single.html @@ -0,0 +1,3 @@ +{{ define "main" }} + {{ partial "release.html" . }} +{{ end }} diff --git a/layouts/index.html b/layouts/index.html new file mode 100644 index 0000000..e0e8308 --- /dev/null +++ b/layouts/index.html @@ -0,0 +1,3 @@ +{{ define "main" }} + {{ .Content }} +{{ end }} diff --git a/layouts/partials/head.html b/layouts/partials/head.html new file mode 100644 index 0000000..b0ea134 --- /dev/null +++ b/layouts/partials/head.html @@ -0,0 +1,20 @@ + + + + + + + + + + + + + + + + {{ if .Title }}{{ .Title }}{{ if eq .Section "blog" }}{{ if not .IsPage }} Blog Posts{{ end }}{{ end }} | {{if .Site.Params.domain }}{{ .Site.Params.domain }}{{ else }}{{ .Site.Title }}{{ end }}{{ else }}{{ .Site.Title }}{{ end }} + diff --git a/layouts/partials/header.html b/layouts/partials/header.html new file mode 100644 index 0000000..d192e56 --- /dev/null +++ b/layouts/partials/header.html @@ -0,0 +1,12 @@ + diff --git a/layouts/partials/release-wrapper.html b/layouts/partials/release-wrapper.html new file mode 100644 index 0000000..ecde519 --- /dev/null +++ b/layouts/partials/release-wrapper.html @@ -0,0 +1,3 @@ +
+ {{ partial "release.html" . }} +
diff --git a/layouts/partials/release.html b/layouts/partials/release.html new file mode 100644 index 0000000..1c5972a --- /dev/null +++ b/layouts/partials/release.html @@ -0,0 +1,16 @@ +
+

{{ .Params.version_name }}

+

+ Release date: + +
+ Release name: {{ .Params.version_name }} +
+ Version number: {{ .Params.version_number }} +

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