Browse Source

update about pages

* governance
* mission statement

Signed-off-by: Toshaan Bharvani <toshaan@vantosh.com>
jamesk-patch-1
Toshaan Bharvani 11 months ago
parent
commit
f971ade705
  1. 0
      assets/images/about/governance.jpg
  2. 0
      assets/images/about/missionstatement.jpg
  3. 6
      content/about/governance.md
  4. 6
      content/about/missionstatement.md
  5. 28
      themes/openpowerfoundation/layouts/about/single.html
  6. 33
      themes/openpowerfoundation/layouts/governance/single.html

0
assets/images/governance/governance.jpg → assets/images/about/governance.jpg

Before

Width:  |  Height:  |  Size: 659 KiB

After

Width:  |  Height:  |  Size: 659 KiB

0
assets/images/missionstatement.jpg → assets/images/about/missionstatement.jpg

Before

Width:  |  Height:  |  Size: 409 KiB

After

Width:  |  Height:  |  Size: 409 KiB

6
content/about/governance.md

@ -1,11 +1,7 @@ @@ -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
---


6
content/about/missionstatement.md

@ -1,9 +1,7 @@ @@ -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
---


28
themes/openpowerfoundation/layouts/about/single.html

@ -0,0 +1,28 @@ @@ -0,0 +1,28 @@
{{ partial "header.html" . }}
{{ partial "navbar.html" . }}
<main id="main" class="main governance">
<div class="container">
<div class="row no-gutters">
<div class="col-md-6 pr-3 pl-0">
<h1 class="h2 section-header my-3 my-md-5 pb-2">{{ .Title }}</h1>
<div class="content">{{ .Content }}</div>
</div>
<div class="col-md-6 pt-3 pt-lg-5 pl-0 pl-lg-3 pr-0">
{{ if .Param "image" }}
{{ $imagename := .Param "image" }}
{{ $imagelocation := (printf "%s/%s" "images/about/" $imagename) }}
{{ $imageresource := resources.Get $imagelocation }}
{{ if $imageresource }}
<figure class="figure d-flex pt-0 pt-lg-3">
{{ $image := $imageresource.Fit "600x600" }}
<img class="img-fluid" src="{{ $image.RelPermalink }}" alt="{{ .Title }}" title="{{ .Title }}">
</figure>
{{ end }}
{{ else }}
{{ .Title }}
{{ end }}
</div>
</div>
</div>
</main>
{{ partial "footer.html" . }}

33
themes/openpowerfoundation/layouts/governance/single.html

@ -1,33 +0,0 @@ @@ -1,33 +0,0 @@
{{ partial "header.html" . }}

{{ partial "navbar.html" . }}

<main id="main" class="main governance" >
<div class="container">
<div class="row no-gutters">
<div class="col-md-6 pr-3 pl-0">
<h1 class="h2 section-header my-3 my-md-5 pb-2">{{ .Title }}</h1>
<div class="content">
{{ .Content }}
</div>
</div>
<div class="col-md-6 pt-3 pt-lg-5 pl-0 pl-lg-3 pr-0">
{{ if .Param "image.name" }}
<figure class="figure d-flex pt-0 pt-lg-3">
{{ $imagename := .Param "image.name" }}
{{ $imagelocation := (printf "%s/%s" "images/governance/" $imagename) }}
{{ $imageresource := resources.Get $imagelocation }}
{{ if $imageresource }}
{{ $image := $imageresource.Fit "600x600" }}
<img class="img-fluid" src="{{ $image.RelPermalink }}" alt="{{ .Param "image.alt" }}" title="{{ .Param "image.alt" }}">
{{ end }}
</figure>
{{ else }}
{{ .Title }}
{{ end }}
</div>
</div>
</div>
</main>

{{ partial "footer.html" . }}
Loading…
Cancel
Save