Files
wp-bootstrap/views/pages/hero.html.twig
magdev cc8dc9d357
All checks were successful
Create Release Package / PHP Lint (push) Successful in 57s
Create Release Package / Build Release (push) Successful in 1m23s
v0.2.0 - Design Editor: templates, patterns, header/footer variations
Full Design Editor compatibility with custom block categories, page templates,
header/footer variations, and navigation styles. Both FSE (admin) and Twig
(frontend) sides kept in sync.

Co-Authored-By: Claude <noreply@anthropic.com>
2026-02-08 16:05:29 +01:00

22 lines
715 B
Twig

{% extends 'base.html.twig' %}
{% block main_class %}{% endblock %}
{% block content %}
<section class="bg-primary text-white py-5 mb-5{% if post.thumbnail %} position-relative overflow-hidden{% endif %}">
{% if post.thumbnail %}
<div class="position-absolute top-0 start-0 w-100 h-100" style="background: url('{{ post.thumbnail }}') center/cover no-repeat; opacity: 0.3;"></div>
{% endif %}
<div class="container position-relative py-5 text-center">
<h1 class="display-4 fw-bold">{{ post.title }}</h1>
</div>
</section>
<div class="container">
<article>
<div class="post-content">
{{ post.content|raw }}
</div>
</article>
</div>
{% endblock %}