You've already forked wp-bootstrap
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>
This commit is contained in:
21
views/pages/hero.html.twig
Normal file
21
views/pages/hero.html.twig
Normal file
@@ -0,0 +1,21 @@
|
||||
{% 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 %}
|
||||
Reference in New Issue
Block a user