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 }} + + + {{ .Title }} + + + {{ 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" . }}
{{ .Content }}