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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue