web2019/templates/page.html

77 lines
1.6 KiB
HTML
Raw Permalink Normal View History

{% extends 'section.html' %}
{% block styles %}
<style>
h5 {
margin-bottom: 2rem!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 %}>
2019-07-18 17:24:14 +08:00
{% endif %}
{% if not page.extra.logo_only %}
{% if page.extra and page.extra.title %}
<h1>{{ page.extra.title }}</h1>
{% else %}
<h1>{{ page.title }}</h1>
{% endif %}
2019-07-17 00:14:50 +08:00
{% else %}
<div></div>
2019-07-17 00:14:50 +08:00
{% 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 {% block maincss %}{% endblock %}">
2019-07-17 00:14:50 +08:00
<div class="row">
2019-07-17 00:14:50 +08:00
<div class="{% if page and page.extra and page.extra.layout_css %}{{ page.extra.layout_css }}{% else %}col-12{% endif %}">
2019-07-17 00:14:50 +08:00
{% block main_content %}
{% if page and page.content %}
{{ page.content | safe }}
{% endif %}
{% endblock %}
</div>
</div>
</main>
{% block outside %}{% endblock %}
2019-07-17 00:14:50 +08:00
{% endblock %}
{% block footer_contact %}{% endblock %}