update about pages

* governance
* mission statement

Signed-off-by: Toshaan Bharvani <toshaan@vantosh.com>
newmemberlevels
Toshaan Bharvani 3 years ago
parent 3779011376
commit f971ade705

Before

Width:  |  Height:  |  Size: 659 KiB

After

Width:  |  Height:  |  Size: 659 KiB

Before

Width:  |  Height:  |  Size: 409 KiB

After

Width:  |  Height:  |  Size: 409 KiB

@ -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
---


@ -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
---


@ -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" . }}

@ -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