You've already forked wp-bootstrap
Replace FSE block markup on the frontend with proper Bootstrap 5 HTML rendered through Twig templates. The Site Editor remains functional for admin editing while the public site outputs Bootstrap navbar, cards, pagination, grid layout, and responsive components. New PHP classes: TemplateController, ContextBuilder, NavWalker New Twig templates: 20 files (base, pages, partials, components) Enhanced TwigService with WordPress functions and globals Co-Authored-By: Claude <noreply@anthropic.com>
12 lines
330 B
Twig
12 lines
330 B
Twig
{% if posts|length > 0 %}
|
|
{% for post in posts %}
|
|
{% include 'components/card-post.html.twig' with {'post': post} only %}
|
|
{% endfor %}
|
|
|
|
{% include 'partials/pagination.html.twig' %}
|
|
{% else %}
|
|
<div class="alert alert-secondary" role="alert">
|
|
{{ __('No posts were found.') }}
|
|
</div>
|
|
{% endif %}
|