refactor(page): Renames to layout_css and some cosmetics

This commit is contained in:
sovanna 2019-07-19 12:45:30 +02:00
parent 0df8ab1fdb
commit c6f371a874
2 changed files with 9 additions and 7 deletions

View File

@ -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() %}

View File

@ -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,6 +64,8 @@
</main>
{% block outside %}{% endblock %}
{% endblock %}