Skip to content

Commit cbea27c

Browse files
committed
change(/templates/page): allow changing container and overriding breakpoints
This is going to destroy the page-sync-cache, isn't it?
1 parent 075af8e commit cbea27c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

templates/page.html

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,14 @@
3939
{% endblock body %}
4040

4141
{% block content %}
42-
<div class="wrap container" role="document">
42+
<div class="wrap container {{page.extra.container|default(value='')}}" role="document">
4343
<div class="content">
4444
<div class="row justify-content-center">
45+
{% if page.extra.breakpoints is defined %}
46+
<div class="{{page.extra.breakpoints}}">
47+
{% else %}
4548
<div class="col-md-12 col-lg-10 col-xxl-8">
49+
{% endif %}
4650
{% if page.taxonomies is defined %}
4751
<nav style="display:flex;flex-flow:row wrap;max-width:100%;font-size:0.9rem">
4852
{% set categories = page.taxonomies | get(key="categories", default=[]) %}

0 commit comments

Comments
 (0)