From f971ade705a53518d18b0e1f71be9dcb04a43c46 Mon Sep 17 00:00:00 2001 From: Toshaan Bharvani Date: Mon, 3 Jan 2022 21:46:50 +0100 Subject: [PATCH] update about pages * governance * mission statement Signed-off-by: Toshaan Bharvani --- .../{governance => about}/governance.jpg | Bin .../images/{ => about}/missionstatement.jpg | Bin content/about/governance.md | 6 +--- content/about/missionstatement.md | 6 ++-- .../layouts/about/single.html | 28 +++++++++++++++ .../layouts/governance/single.html | 33 ------------------ 6 files changed, 31 insertions(+), 42 deletions(-) rename assets/images/{governance => about}/governance.jpg (100%) rename assets/images/{ => about}/missionstatement.jpg (100%) create mode 100644 themes/openpowerfoundation/layouts/about/single.html delete mode 100644 themes/openpowerfoundation/layouts/governance/single.html diff --git a/assets/images/governance/governance.jpg b/assets/images/about/governance.jpg similarity index 100% rename from assets/images/governance/governance.jpg rename to assets/images/about/governance.jpg diff --git a/assets/images/missionstatement.jpg b/assets/images/about/missionstatement.jpg similarity index 100% rename from assets/images/missionstatement.jpg rename to assets/images/about/missionstatement.jpg diff --git a/content/about/governance.md b/content/about/governance.md index 61a71df..18834f0 100644 --- a/content/about/governance.md +++ b/content/about/governance.md @@ -1,11 +1,7 @@ --- title: Governance +image: governance.jpg date: 2021-09-25 -image: - name: governance.jpg - alt: Governance -type: governance -layout: single draft: false --- diff --git a/content/about/missionstatement.md b/content/about/missionstatement.md index 12cf4f2..9c2b3d1 100644 --- a/content/about/missionstatement.md +++ b/content/about/missionstatement.md @@ -1,9 +1,7 @@ --- -title: "Mission Statement" +title: Mission Statement +image: missionstatement.jpg date: 2021-03-06 -image: - file: missionstatement.jpg - size: 350x350 draft: false --- diff --git a/themes/openpowerfoundation/layouts/about/single.html b/themes/openpowerfoundation/layouts/about/single.html new file mode 100644 index 0000000..63c558b --- /dev/null +++ b/themes/openpowerfoundation/layouts/about/single.html @@ -0,0 +1,28 @@ +{{ partial "header.html" . }} +{{ partial "navbar.html" . }} +
+
+
+
+

{{ .Title }}

+
{{ .Content }}
+
+
+ {{ if .Param "image" }} + {{ $imagename := .Param "image" }} + {{ $imagelocation := (printf "%s/%s" "images/about/" $imagename) }} + {{ $imageresource := resources.Get $imagelocation }} + {{ if $imageresource }} +
+ {{ $image := $imageresource.Fit "600x600" }} + {{ .Title }} +
+ {{ end }} + {{ else }} + {{ .Title }} + {{ end }} +
+
+
+
+{{ partial "footer.html" . }} diff --git a/themes/openpowerfoundation/layouts/governance/single.html b/themes/openpowerfoundation/layouts/governance/single.html deleted file mode 100644 index 3867e83..0000000 --- a/themes/openpowerfoundation/layouts/governance/single.html +++ /dev/null @@ -1,33 +0,0 @@ -{{ partial "header.html" . }} - -{{ partial "navbar.html" . }} - -
-
-
-
-

{{ .Title }}

-
- {{ .Content }} -
-
-
- {{ if .Param "image.name" }} -
- {{ $imagename := .Param "image.name" }} - {{ $imagelocation := (printf "%s/%s" "images/governance/" $imagename) }} - {{ $imageresource := resources.Get $imagelocation }} - {{ if $imageresource }} - {{ $image := $imageresource.Fit "600x600" }} - {{ .Param - {{ end }} -
- {{ else }} - {{ .Title }} - {{ end }} -
-
-
-
- -{{ partial "footer.html" . }}