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>
18 lines
641 B
Twig
18 lines
641 B
Twig
<article class="card h-100">
|
|
{% if post.thumbnail %}
|
|
<a href="{{ post.url }}">
|
|
<img src="{{ post.thumbnail }}" class="card-img-top"
|
|
alt="{{ post.title|e('html_attr') }}"
|
|
style="aspect-ratio: 3/2; object-fit: cover;">
|
|
</a>
|
|
{% endif %}
|
|
<div class="card-body">
|
|
<h3 class="card-title h6">
|
|
<a href="{{ post.url }}" class="text-decoration-none text-body">{{ post.title }}</a>
|
|
</h3>
|
|
<p class="card-text text-body-secondary small">
|
|
<time datetime="{{ post.date_iso }}">{{ post.date }}</time>
|
|
</p>
|
|
</div>
|
|
</article>
|