Commit 2657117f authored by Zachary Seguin's avatar Zachary Seguin
Browse files

Add membership + style

parent c0949de0
Pipeline #248 passed with stages
in 11 seconds
......@@ -33,3 +33,9 @@ enableGitInfo = true
url = "/support/"
weight = 10
identifier = "support"
[[menu.membership]]
name = "Membership"
url = "/membership/"
weight = 10
identifier = "membership"
---
title: About us
menu: main
weight: 10
weight: 50
draft: false
toc: false
---
......@@ -13,7 +13,7 @@ The Canadian Stuttering Association is run entirely by the passion, energy and c
The Canadian Stuttering Association is a registered charity and a federal not-for-profit corporation in Canada.
Canada Revenu Agency (CRA) Charity Number
: 830606943RC0001
: 830 606 943 RC0001
Corporation Number
: 429745-8
---
title: Membership
menu: main
weight: 5
draft: false
toc: false
---
Expand your involvement with the Canadian Stuttering Association by becoming
a member! As a member, you will be connected with others from around Canada,
and have access to many events to support you with your stutter.
*A membership is not required to participate in Canadian Stuttering Association events,
however certain benefits may be available only to members.*
> Membership is **free**, however we encourage and welcome donations
> to help support our growth and outreach. We do not receive government
> funding or advertise on our website, but are funded by members and supporters.
We encourage our members to contribute experiences and ideas in ways that that are comfortable for them. We will not share your information with any other organization or person without your consent.
## Why become a member?
In a world of information, the Canadian Stuttering Association provides the personal touch and speaks up for people who stutter across Canada. A strong membership foundation will enable us to attract wider support as we grow. Funders and partner organizations always look for a strong membership base.
### Benefits
As a member, you gain access to:
* Our e-newsletter at least four times a year
* Opportunities to contribute your experiences and learn from other people
* Voting rights at meetings to help shape our work
* Satisfaction from being a part of our growth and outreach to people who stutter across Canada.
---
title: Newsletter
menu:
membership:
parent: "membership"
weight: 20
draft: false
toc: false
---
Our e-newsletter with tips, insights, website news and inspiring stories from people who stutter.
*When you subscribe Mailchimp will send a confirmation e-mail to the address you supply. Please respond to the confirmation email to complete the membership process. Check your junk mail folder if you do not see it right away.*
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -48,15 +48,34 @@ blockquote {
}
}
.sidebar-menu .active {
font-weight: bold;
}
.sidebar-menu {
font-size: 1rem;
.active {
font-weight: bold;
}
.section {
color: darken($primary, 20%);
}
.sidebar-menu .section {
color: darken($primary, 20%);
li:not(.section) {
margin-left: 5px;
padding-left: 10px;
border-left: 1px lighten($primary, 40%) solid;
}
}
dt {
border-bottom: 2px solid $gray-300;
margin-bottom: 6px;
}
body > footer {
font-size: 0.9rem;
text-align: center;
dt {
border-bottom: none;
}
}
{{ define "main" }}
<div class="container mt-4 mb-4">
<div class="row">
<div class="col order-lg-12">
<div class="row">
<div class="col">
<h1>{{ .Title }}</h1>
</div>
</div>
<div class="row">
{{- if (ne .Params.toc false) }}
<div class="col-md-3 toc order-md-12">
<p class="h6">On this page...</p>
{{ .TableOfContents }}
</div>
{{- end }}
<div class="col">
{{ .Content }}
</div>
</div>
<div class="row">
<div class="col mt-4 text-muted">
<p>Last updated: {{ .Lastmod.Format "2006-01-02" }}</p>
</div>
</div>
</div>
<div class="col-lg-3 sidebar">
{{- partial "menus/membership.html" . -}}
</div>
</div>
</div>
{{ end }}
{{ define "main" }}
<div class="container mt-4 mb-4">
<div class="row">
<div class="col order-lg-12">
<div class="row">
<div class="col">
<h1>{{ .Title }}</h1>
</div>
</div>
<div class="row">
{{- if (ne .Params.toc false) }}
<div class="col-md-3 toc order-md-12">
<p class="h6">On this page...</p>
{{ .TableOfContents }}
</div>
{{- end }}
<div class="col">
{{ .Content }}
</div>
</div>
<div class="row">
<div class="col mt-4 text-muted">
<p>Last updated: {{ .Lastmod.Format "2006-01-02" }}</p>
</div>
</div>
</div>
<div class="col-lg-3 sidebar">
{{- partial "menus/membership.html" . -}}
</div>
</div>
</div>
{{ end }}
......@@ -2,19 +2,11 @@
<div class="bg-light">
<div class="container">
<div class="row footer-text pt-4 pb-4">
<div class="col-md">
<p class="text-small">
</p>
</div>
<div class="col-md">
</div>
<div class="col-md">
<p>The Canadian Stuttering Association is a registered charity and a federal not-for-profit corporation.</p>
<dl>
<dt>Canada Revenue Agency (CRA)<br />Charity Number</dt>
<dd>830606943RC0001</dd>
<dd>830 606 943 RC0001</dd>
<dt>Corporation Number</dt>
<dd>429745-8</dd>
......
{{ $currentPage := . -}}
<div class="sidebar-menu">
{{ range .Site.Menus.membership -}}
{{- $active := (eq .Name $currentPage.Title) -}}
<a href="{{ .URL | absURL }}" class="section {{ if $active }} active{{ end }}">{{ .Name }}</a>
{{ if .HasChildren -}}
<ul class="list-unstyled">
{{ range .Children -}}
{{- $active := or ($currentPage.IsMenuCurrent "membership" .) ($currentPage.HasMenuCurrent "about" .) -}}
{{- $active = or $active (eq .Name $currentPage.Title) -}}
<li><a class="{{ if $active }}active{{ end }}" href="{{ .URL | absURL }}">{{ .Name }}</a></li>
{{ end -}}
</ul>
{{ end -}}
{{ end -}}
</div>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment