From e131686760d4325ed5316033d60d5ac81ada0d1c Mon Sep 17 00:00:00 2001 From: Mubashshir Date: Wed, 2 Aug 2023 14:19:46 +0600 Subject: Initial commit Signed-off-by: Mubashshir --- layouts/_default/baseof.html | 18 ++++++++++++++++++ layouts/index.html | 17 +++++++++++++++++ layouts/partials/app.html | 34 ++++++++++++++++++++++++++++++++++ 3 files changed, 69 insertions(+) create mode 100644 layouts/_default/baseof.html create mode 100644 layouts/index.html create mode 100644 layouts/partials/app.html (limited to 'layouts') diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html new file mode 100644 index 0000000..15e87f0 --- /dev/null +++ b/layouts/_default/baseof.html @@ -0,0 +1,18 @@ + + + + + + + {{ block "title" . }} {{ .Site.Title }} {{ end }} + + + + {{- block "main" . -}} + + {{- end -}} + {{- block "footer" . -}} + + {{- end -}} + + diff --git a/layouts/index.html b/layouts/index.html new file mode 100644 index 0000000..d0b2bab --- /dev/null +++ b/layouts/index.html @@ -0,0 +1,17 @@ +{{- define "title" -}} Home {{- end -}} + +{{- define "main" -}} +
+
+

{{ .Title }}

+ {{ with .Params.subtitle }} + {{ . }} + {{ end }} +
+
+ {{- range $app, $info := $.Site.Data.app }} + {{- partial "partials/app.html" (dict "id" $app "data" $info) -}} + {{ end -}} +
+
+{{- end -}} diff --git a/layouts/partials/app.html b/layouts/partials/app.html new file mode 100644 index 0000000..4ccd861 --- /dev/null +++ b/layouts/partials/app.html @@ -0,0 +1,34 @@ +
+
+ {{- with (printf "asset/icons/%s.png" .id | resources.Get) -}} +
+ logo +
+ {{- end }} +
+

+ {{- .data.name | safeHTML -}} + + + + + + + + +

+

{{- .data.info | safeHTML -}}

+ Install +
+
+ + {{- with (printf "asset/snaps/%s.png" .id| resources.Get) -}} +
+ logo +
+ {{- end -}} +
-- cgit v1.2.3