add: info template
This commit is contained in:
parent
138e5b7f64
commit
ac5354a601
7 changed files with 280 additions and 30 deletions
16
templates/info.html.twig
Normal file
16
templates/info.html.twig
Normal file
|
@ -0,0 +1,16 @@
|
|||
{% extends 'partials/base.html.twig' %}
|
||||
|
||||
{% block content %}
|
||||
<div class="row">
|
||||
{% set text_class = 'col-12' %}
|
||||
{% if page.media.images %}
|
||||
{% set text_class = 'col-12 col-md-6' %}
|
||||
<div class="col-12 col-md-6">
|
||||
<img width="100%" src="{{ page.media.images|first.url }}">
|
||||
</div>
|
||||
{% endif %}
|
||||
<div class="{{ text_class }}">
|
||||
{{ page.content }}
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
Loading…
Add table
Add a link
Reference in a new issue