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

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