Tweak card spacing and allow for custom styling (#636)

This commit is contained in:
Patrice Chalin 2021-02-08 12:24:55 -05:00 committed by GitHub
parent b10982cf51
commit 749e2c933e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 4 deletions

View File

@ -37,7 +37,7 @@ and other [CNCF technologies](https://www.cncf.io/projects/) in the past year
{{% cards "customer_success_stories" %}}
<div class="text-center my-5">
<div class="text-center my-4">
<a class="btn btn-secondary"
href="{{< param url_use_grpc >}}"
target="_blank"

View File

@ -8,8 +8,9 @@
*/ -}}
{{ $card_info := index .Page.Params (.Get 0) -}}
{{ $styling := (.Get 1) | default "mt-4 mb-4" -}}
<div class="mt-5 row justify-content-center">
<div class="row justify-content-center {{ $styling }}">
{{ range $card_info -}}
<div class="col-9 col-lg-4 pb-4 pb-lg-0">
@ -19,11 +20,11 @@
<div class="h4 card-title">
{{/* The blank line above ensures the following is processed as markdown */}}
{{ .title }}
{{ .title | safeHTML }}
</div>
{{/* The blank line above ensures the following is processed as markdown */}}
{{ .desc }}
{{ .desc | safeHTML }}
</div>
</div>