Finish testimonial shortcode

Signed-off-by: lucperkins <lucperkins@gmail.com>
This commit is contained in:
lucperkins 2020-03-10 10:53:06 -07:00
parent 3f0aec073d
commit 06f20df1a2
3 changed files with 10 additions and 12 deletions

View File

@ -143,8 +143,8 @@ $colors: mergeColorMaps(("secondary": ($secondary, $white), "twitter-blue": ($tw
margin: 0 auto margin: 0 auto
.is-testimonial-logo .is-testimonial-logo
max-height: 8rem max-height: 5rem
width: auto margin-bottom: 1.5rem
.is-page .is-page
display: flex display: flex

View File

@ -32,7 +32,7 @@ Below are details and quotes from some of our early adopters.
Check out what people are saying below. Check out what people are saying below.
<!-- Generated using the data in data/testimonials.yaml and the shortcode in layouts/shortcodes/testimonials.html --> <!-- Generated using the data in data/testimonials.yaml and the shortcode in layouts/shortcodes/testimonials.html -->
<!-- {{< testimonials >}} --> {{< testimonials >}}
## Officially supported platforms ## Officially supported platforms

View File

@ -1,19 +1,17 @@
{{ $testimonials := site.Data.testimonials }} {{ $testimonials := site.Data.testimonials }}
<section class="section"> <section class="section">
<div class="container"> <div class="container">
<div class="columns is-multiline is-variable is-8"> <div class="columns is-multiline is-variable is-4">
{{- range $testimonials -}} {{- range $testimonials -}}
{{- $img := printf "img/users/%s" .image | relURL -}} {{- $img := printf "img/users/%s" .image | relURL -}}
{{- $quote := .quote | markdownify -}} {{- $quote := .quote | markdownify -}}
<div class="column is-one-third"> <div class="column is-one-third has-text-centered">
<div class="has-text-centered"> <a href="{{ .link }}" target="_blank">
<a href="{{- .link -}}" target="_blank"> <img class="is-testimonial-logo" src="{{ $img }}" alt="{{ .name }} testimonial logo">
<img class="is-testimonial-logo" src="{{- $img -}}"> </a>
</a>
</div>
<div class="is-italic"> <div class="content is-italic">
{{- $quote -}} {{ $quote }}
</div> </div>
</div> </div>
{{- end -}} {{- end -}}