From 05c0551be9e49a08553a8c4c049d6cf07aee1ef0 Mon Sep 17 00:00:00 2001 From: Toshaan Bharvani Date: Thu, 1 Apr 2021 21:23:29 +0200 Subject: [PATCH] add ready layout for ready content Signed-off-by: Toshaan Bharvani --- .../layouts/ready/list.html | 68 +++++++++++++++++++ .../layouts/ready/list.json | 5 ++ .../layouts/ready/single.html | 50 ++++++++++++++ 3 files changed, 123 insertions(+) create mode 100644 themes/openpowerfoundation/layouts/ready/list.html create mode 100644 themes/openpowerfoundation/layouts/ready/list.json create mode 100644 themes/openpowerfoundation/layouts/ready/single.html diff --git a/themes/openpowerfoundation/layouts/ready/list.html b/themes/openpowerfoundation/layouts/ready/list.html new file mode 100644 index 0000000..a69db1f --- /dev/null +++ b/themes/openpowerfoundation/layouts/ready/list.html @@ -0,0 +1,68 @@ +{{ partial "header.html" . }} + +{{ partial "navbar.html" . }} + +
+ +
+
+
+
+
+

{{ .Title }}

+
+
+
+
 
+
{{ .Content }}
+
 
+
+
+ +
+
+
 
+
+ + + + + {{ $searchjavascript := resources.Get "js/search.js" }} + {{ $searchjs := $searchjavascript | resources.Minify }} + +
+
+ +
+

Matching pages

+
+ +
+
 
+
+
+ +
+
+
+ {{ range .Data.Pages }} +
 
+ +
 
+ {{ end }} +
+
+
+ +
+ +{{ partial "footer.html" . }} diff --git a/themes/openpowerfoundation/layouts/ready/list.json b/themes/openpowerfoundation/layouts/ready/list.json new file mode 100644 index 0000000..c4c2fcc --- /dev/null +++ b/themes/openpowerfoundation/layouts/ready/list.json @@ -0,0 +1,5 @@ +{{- $.Scratch.Add "index" slice -}} +{{- range .Data.Pages -}} + {{- $.Scratch.Add "index" (dict "title" .Title "permalink" .Permalink "contents" .Plain "tags" .Params.tags) }} +{{- end -}} +{{- $.Scratch.Get "index" | jsonify -}} diff --git a/themes/openpowerfoundation/layouts/ready/single.html b/themes/openpowerfoundation/layouts/ready/single.html new file mode 100644 index 0000000..1731c0f --- /dev/null +++ b/themes/openpowerfoundation/layouts/ready/single.html @@ -0,0 +1,50 @@ +{{ partial "header.html" . }} + +{{ partial "navbar.html" . }} + +{{ $filename := .File.BaseFileName }} +{{ $datafile := index $.Site.Data.specifications $filename }} + +
+ +
+
+
+

{{ .Title }}

+

+ +
+
+
 
+
+
    + {{ if .Param "vendor" }} +
  • Vendor : {{ .Param "vendor" }}
  • + {{ end }} + {{ if .Param "criteria" }} +
  • Criteria Version : {{ .Param "criteria" }}
  • + {{ end }} +
+
+
+
    + {{ range .Params.tags }} +
  • {{ . }}
  • + {{ end }} +
+
+
 
+
+
+
 
+
+

{{ .Content }}

+
+
 
+
+
+
+ +
+ +{{ partial "footer.html" . }}