Section id can be set from a page header

This commit is contained in:
meaz 2020-02-22 11:23:34 +01:00
parent 23e14d0718
commit 3d98d77ef9
1 changed files with 7 additions and 1 deletions

View File

@ -1,5 +1,11 @@
{% block content %}
<section id="{{ page.slug }}">
{% if page.header.section_id %}
<section id="{{ page.header.section_id }}">
{% else %}
<section id="{{ page.slug }}">
{% endif %}
<div class="fullbar" style="background-color:{{ page.header.bgcolor }}; padding:{{ page.header.padding }};">
<div class="fullbar-content" style="color:{{ page.header.fontcolor }}; text-align:{{ page.header.text_align }};">
{{ page.content }}