web2019/templates/page.html

70 lines
1.3 KiB
HTML
Raw Normal View History

{% extends 'section.html' %}
{% block styles %}
<style>
h2, h5 {
margin-bottom: 3rem!important;
}
</style>
{% endblock %}
2019-07-17 00:14:50 +08:00
{% block hero %}
<div class="container-fluid hero2 d-flex flex-column justify-content-center">
<div class="container">
2019-07-18 17:24:14 +08:00
<div class="row mt-4 mb-4">
2019-07-17 00:14:50 +08:00
<div class="col-12 text-center mt-n0 mt-lg-n5">
2019-07-18 17:24:14 +08:00
{% if page.extra and page.extra.logo %}
<img src="{{ get_url(path=page.extra.logo, cachebust=true) }}" alt="logo" {% if page.extra and page.extra.logo_size %}width="{{ page.extra.logo_size }}"{% endif %}>
{% endif %}
2019-07-17 00:14:50 +08:00
{% if page.extra and page.extra.title %}
<h1>{{ page.extra.title }}</h1>
{% else %}
<h1>{{ page.title }}</h1>
{% endif %}
<img src="{{ get_url(path='images/ion@2x.png', cachebust=true) }}" width="100" align="ion">
</div>
</div>
</div>
</div>
{% endblock %}
{% block main %}
<main class="container">
<div class="row pb-5">
<div class="col-12">
{% block main_content %}
{% if page and page.content %}
{{ page.content | safe }}
{% endif %}
{% endblock %}
</div>
</div>
</main>
{% endblock %}
{% block footer_contact %}{% endblock %}