Load testimonials by tag instead of by name
- Allow loading testimonials by tag instead of name. - Remove the code to load testimonials by name. - Add a `limit` and `offset` to create different lists on the same page - e.g. on the team coaching page where I have two testimonial sections.
This commit is contained in:
parent
59bb9af6d1
commit
fc3e30eddd
9 changed files with 46 additions and 78 deletions
|
@ -20,14 +20,7 @@ Learn to test things like:
|
|||
|
||||
{% block content_bottom %}
|
||||
<div class="space-y-12">
|
||||
{% include 'testimonials.html.twig' with {
|
||||
names: [
|
||||
"Matthieu Scarset",
|
||||
"Mike Karthauser",
|
||||
"Tawny Bartlett",
|
||||
"Scott Euser",
|
||||
]
|
||||
} %}
|
||||
{% include 'testimonials' with { tag: 'subscription' } %}
|
||||
|
||||
{{ parent() }}
|
||||
</div>
|
||||
|
|
|
@ -2,10 +2,6 @@
|
|||
title: Book a 1-on-1 consulting call
|
||||
link: https://savvycal.com/opdavies/consulting-call
|
||||
price: 350
|
||||
testimonials:
|
||||
- Tawny Bartlett
|
||||
- Tom Evans
|
||||
- Michael Itkoff
|
||||
faqs:
|
||||
-
|
||||
- What happens after I pay?
|
||||
|
@ -62,9 +58,7 @@ faqs:
|
|||
|
||||
{# Social proof #}
|
||||
|
||||
{% include 'testimonials' with {
|
||||
names: page.testimonials,
|
||||
} %}
|
||||
{% include 'testimonials' with { tag: 'call' } %}
|
||||
|
||||
{# Overcome objections #}
|
||||
|
||||
|
|
|
@ -10,14 +10,7 @@ title: Register for daily software development emails
|
|||
|
||||
{% block content_bottom %}
|
||||
{% include 'testimonials.html.twig' with {
|
||||
names: [
|
||||
'Alexander Carr',
|
||||
'Adam Nuttall',
|
||||
'Mike Karthauser',
|
||||
'Marcos Duran',
|
||||
'Stephen Mulvihill',
|
||||
'Patty O\'Callaghan',
|
||||
],
|
||||
tag: 'daily',
|
||||
title: 'What subscribers have said',
|
||||
} %}
|
||||
|
||||
|
|
|
@ -45,6 +45,4 @@ Seats are available at <span class="font-bold">{{ page.is_early_bird ? 'an early
|
|||
|
||||
<hr />
|
||||
|
||||
{% include 'testimonials.html.twig' with {
|
||||
names: page.testimonials,
|
||||
} %}
|
||||
{% include 'testimonials' with { tag: 'testing' } %}
|
||||
|
|
|
@ -31,10 +31,8 @@ Here are [all my products and services][pricing]. If you still can't find what y
|
|||
{% endblock %}
|
||||
|
||||
{% block content_bottom %}
|
||||
{% include 'testimonials.html.twig' with {
|
||||
{% include 'testimonials' with {
|
||||
title: 'Kind words from clients, subscribers, and past colleagues',
|
||||
merge: true,
|
||||
names: ["Matthieu Scarset"],
|
||||
} %}
|
||||
|
||||
{% include 'daily-email-form.html.twig' with {
|
||||
|
|
|
@ -182,23 +182,7 @@ And we'll figure out what's best for you.
|
|||
|
||||
---
|
||||
|
||||
{% include 'testimonials.html.twig' with {
|
||||
names: [
|
||||
'Joe Howell',
|
||||
'Jon Hallett',
|
||||
'Michael Itkoff',
|
||||
'Mick Felton',
|
||||
'Duncan Davidson',
|
||||
'Adam Cuddihy',
|
||||
'Huw Davies',
|
||||
'Brian Hartwell',
|
||||
'Holly Ross',
|
||||
'Josh Mitchell',
|
||||
'Brian Healy',
|
||||
'Daniel Easterbrook',
|
||||
'Anonymous',
|
||||
],
|
||||
} %}
|
||||
{% include 'testimonials' with { tag: 'subscription' } %}
|
||||
|
||||
{% endblock %}
|
||||
|
||||
|
|
|
@ -88,9 +88,10 @@ meta:
|
|||
<p>If you need lighter-touch guidance and advice, I also offer one-time consulting calls and pair programming sessions.</p>
|
||||
</section>
|
||||
|
||||
{% include 'testimonials.html.twig' with {
|
||||
names: ['Mike Karthauser', 'Tawny Bartlett', 'Joe Howell', 'Scott Euser', 'Mick Felton'],
|
||||
title: 'More that others have said',
|
||||
{% include 'testimonials' with {
|
||||
tag: 'coaching',
|
||||
limit: 5,
|
||||
title: 'What others have said',
|
||||
} %}
|
||||
|
||||
{# Uniqueness #}
|
||||
|
@ -130,8 +131,9 @@ meta:
|
|||
} %}
|
||||
</div>
|
||||
|
||||
{% include 'testimonials.html.twig' with {
|
||||
names: ['Duncan Davidson', 'Adam Cuddihy', 'Alan Hatch', 'Anonymous'],
|
||||
{% include 'testimonials' with {
|
||||
tag: 'coaching',
|
||||
offset: 5,
|
||||
title: 'More that others have said',
|
||||
} %}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue