From 4cba396cd9634909ee4ada2c931f773b81e4ecb4 Mon Sep 17 00:00:00 2001 From: Toshaan Bharvani Date: Sun, 2 Jan 2022 04:10:42 +0100 Subject: [PATCH] change the specifications layout page Signed-off-by: Toshaan Bharvani --- .../layouts/specifications/list.html | 13 ++----- .../layouts/specifications/single.html | 39 +++++++++++++++---- 2 files changed, 36 insertions(+), 16 deletions(-) diff --git a/themes/openpowerfoundation/layouts/specifications/list.html b/themes/openpowerfoundation/layouts/specifications/list.html index f053074..b77b4f1 100644 --- a/themes/openpowerfoundation/layouts/specifications/list.html +++ b/themes/openpowerfoundation/layouts/specifications/list.html @@ -1,9 +1,6 @@ {{ partial "header.html" . }} - {{ partial "navbar.html" . }} -
-
@@ -18,9 +15,9 @@
 
- - - + + + {{ $searchjavascript := resources.Get "js/search.js" }} {{ $searchjs := $searchjavascript | resources.Minify }} @@ -47,7 +44,7 @@
- {{ range .Data.Pages }} + {{ range .Data.Pages.ByTitle }}
 
{{ .Title }} @@ -57,7 +54,5 @@
-
- {{ partial "footer.html" . }} diff --git a/themes/openpowerfoundation/layouts/specifications/single.html b/themes/openpowerfoundation/layouts/specifications/single.html index 79bab77..b203ed5 100644 --- a/themes/openpowerfoundation/layouts/specifications/single.html +++ b/themes/openpowerfoundation/layouts/specifications/single.html @@ -1,10 +1,7 @@ {{ partial "header.html" . }} - {{ partial "navbar.html" . }} - {{ $filename := .File.BaseFileName }} {{ $datafile := index $.Site.Data.specifications $filename }} -
@@ -13,7 +10,7 @@

-
+
{{ if $datafile.versions }} {{ range last 1 $datafile.versions }} @@ -21,17 +18,32 @@ {{ .date }} {{ end }} {{ end }} + {{ if .Param "group" }} + {{ $group := printf "%s/%s" "groups" (.Param "group") }} + {{ with $.Site.GetPage $group }} + Owned by : {{ .Title }} + {{ end }} + {{ end }}
+
+{{ if .Param "publicreview" }}
-
+
+
+
+
+
+{{ end }} +
+

{{ .Content }}

{{ if $datafile.versions }}
    - {{ range sort $datafile.versions "number" "desc" }} + {{ range sort $datafile.versions "date" "desc" }}
  • @@ -39,7 +51,9 @@ {{ .date }}
    {{ .description }}
    - + {{ if .download }} + + {{ end }}
  • {{ end }} @@ -47,6 +61,17 @@ {{ end }}
+{{ if .Params.tags }} +
+
+
+ {{ range .Params.tags }} + {{ . }} + {{ end }} +
+
+
+{{ end }}