refactor(page): Renames to layout_css and some cosmetics
This commit is contained in:
parent
0df8ab1fdb
commit
c6f371a874
@ -4,7 +4,7 @@ weight = 1
|
||||
template = "page.html"
|
||||
|
||||
[extra]
|
||||
layoutcss = "col-12 col-md-10 mx-auto"
|
||||
layout_css = "col-12 col-md-10 mx-auto"
|
||||
+++
|
||||
|
||||
{% div() %}
|
||||
|
@ -20,13 +20,13 @@
|
||||
<div class="col-12 text-center mt-n0 mt-lg-n5">
|
||||
|
||||
{% 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 %}>
|
||||
<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 %}
|
||||
|
||||
{% if page.extra and page.extra.title %}
|
||||
<h1>{{ page.extra.title }}</h1>
|
||||
<h1>{{ page.extra.title }}</h1>
|
||||
{% else %}
|
||||
<h1>{{ page.title }}</h1>
|
||||
<h1>{{ page.title }}</h1>
|
||||
{% endif %}
|
||||
|
||||
<img src="{{ get_url(path='images/ion@2x.png', cachebust=true) }}" width="100" align="ion">
|
||||
@ -46,9 +46,9 @@
|
||||
|
||||
<main class="container">
|
||||
|
||||
<div class="row pb-5">
|
||||
<div class="row">
|
||||
|
||||
<div class="{% if page and page.extra and page.extra.layoutcss %}{{ page.extra.layoutcss }}{% else %}col-12{% endif %}">
|
||||
<div class="{% if page and page.extra and page.extra.layout_css %}{{ page.extra.layout_css }}{% else %}col-12{% endif %}">
|
||||
|
||||
{% block main_content %}
|
||||
|
||||
@ -64,7 +64,9 @@
|
||||
|
||||
</main>
|
||||
|
||||
{% block outside %}{% endblock %}
|
||||
|
||||
{% endblock %}
|
||||
|
||||
|
||||
{% block footer_contact %}{% endblock %}
|
||||
{% block footer_contact %}{% endblock %}
|
||||
|
Loading…
Reference in New Issue
Block a user