Control 11ty-Generated Headings' Display via Front Matter (#1715)

* controlling 11ty generated headings' display via frontmatter

* addressing PR feedback

* addressing additional PR feedback
This commit is contained in:
Brian Talbot
2025-11-04 14:10:59 -05:00
committed by GitHub
parent 46812e08c5
commit e2c7286ccc
2 changed files with 5 additions and 5 deletions

View File

@@ -27,9 +27,8 @@
</script>
</head>
<body class="layout-{{ layout | stripExtension }} page-{{ pageClass or page.fileSlug or 'home' }}{{ ' page-wide' if wide }}">
{% if hasBanner == undefined %}
{% set hasBanner = true %}
{% endif %}
{% if hasBanner == undefined %}{% set hasBanner = true %}{% endif %}
{% if hasGeneratedTitle == undefined %}{% set hasGeneratedTitle = true %}{% endif %}
{% set defaultWaPageAttributes = defaultWaPageAttributes or { view: 'desktop', 'disable-navigation-toggle': true, 'mobile-breakpoint': 1180, 'disable-sticky': 'banner' } %}
{% set waPageAttributes = waPageAttributes or {} %}
@@ -120,7 +119,9 @@
<div id="flashes">{% server "flashes" %}</div>
{% block header %}
<h1 class="title">{{ title }}</h1>
{% if hasGeneratedTitle %}
<h1 class="title">{{ title }}</h1>
{% endif %}
{% endblock %}
{% block beforeContent %}{% endblock %}

View File

@@ -122,7 +122,6 @@
--secondary-color: var(--wa-color-neutral-30);
}
}
/* #endregion */
/* #region funsies + cosmetics */