diff --git a/blueprints/modular/modular.yaml b/blueprints/modular/modular.yaml index 05817ae..017d81c 100644 --- a/blueprints/modular/modular.yaml +++ b/blueprints/modular/modular.yaml @@ -67,6 +67,15 @@ form: header: 'Header' default: 'Default' + header.display_title: + type: toggle + label: Display Title + highlight: false + default: false + options: + false: 'False' + true: 'True' + taxonomies: unset@: true fields: diff --git a/css/modular.css b/css/modular.css index a8e493b..72e6e9d 100644 --- a/css/modular.css +++ b/css/modular.css @@ -6,6 +6,11 @@ z-index: 1000; } +.modular__title{ + text-align: center; + margin-bottom: 3rem; +} + .m-t{margin-top: var(--rhythm);} .m-b{margin-bottom: var(--rhythm);} .m-tb{margin-top: var(--rhythm);margin-bottom: var(--rhythm);} @@ -16,4 +21,5 @@ .p-tb{padding-top: var(--rhythm);padding-bottom: var(--rhythm);} .r-default{} -.r-header{margin-top: calc(var(--nav-height)*-1);} \ No newline at end of file +.r-header{margin-top: calc(var(--nav-height)*-1);} + diff --git a/templates/partials/modular.html.twig b/templates/partials/modular.html.twig index 2fe70e2..76628cd 100644 --- a/templates/partials/modular.html.twig +++ b/templates/partials/modular.html.twig @@ -2,6 +2,7 @@ {% set modular_class = modular_class|default('') %} {% set modular_style = modular_style|default('') %} {% set modular_reveal = modular_reveal|default(0) %} +{% set modular_display_title = modular_display_title|default(page.header.display_title) %} {%- set margin -%} {%- if page.header.margin == 'top' %}m-t @@ -37,5 +38,6 @@ modular modular--{{ modular_name }}
+{% if modular_display_title %}

{{ page.title }}

{% endif %} {% block modular_content %}{% endblock %}