Commit d4e545f3 authored by Zachary Seguin's avatar Zachary Seguin
Browse files

Add support quicklinks to homepage

parent 3a0f91d8
Pipeline #265 passed with stages
in 11 seconds
---
title: Canadian Stuttering Assocation
support:
- support/for-me.md
- support/for-parents.md
- support/for-educators.md
---
......@@ -40,4 +40,24 @@
</div>
</div>
</div>
<div class="container mb-4">
<div class="row">
<div class="col-md-5 col-lg-4 order-md-12">
<h2 class="sr-only">Support quicklinks</h2>
{{- range .Params.support }}
{{- with $.GetPage . }}
<a class="no-underline" href="{{ .Permalink }}">
<div class="support-quicklink mb-2" style="border-bottom: 4px solid {{ .Params.secondary | default "black" }}; background: {{ .Params.primary | default "white" }}; color: {{ .Params.tertiary | default "black" }}">
<p class="p-3 m-0 h5 text-uppercase">{{ .Title }}</p>
</div>
</a>
{{- end }}
{{- end }}
</div>
<div class="col">
</div>
</div>
</div>
{{ end }}
......@@ -143,3 +143,11 @@ body > footer {
.site-disclaimer {
font-size: 0.9rem;
}
.support-quicklink:hover {
background: $gray-200 !important;
}
.no-underline:hover {
text-decoration: none;
}
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