]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Fix duplicate `main` element.
authorXhmikosR <xhmikosr@gmail.com>
Tue, 27 Mar 2018 09:49:29 +0000 (12:49 +0300)
committerXhmikosR <xhmikosr@gmail.com>
Tue, 27 Mar 2018 11:53:43 +0000 (14:53 +0300)
_layouts/default.html
_layouts/examples.html

index 59f5c122b8dfbe68d3843803253ccc262ccaff6b..28f4cdccb061f33ff6a79de54695106884e6d0b9 100644 (file)
@@ -8,7 +8,7 @@
 
     {% include docs-navbar.html %}
 
-    {% if page.layout == "simple" %}
+    {% if page.layout == "simple" or page.layout == "examples" %}
       {{ content }}
     {% else %}
       <main id="content" role="main">
index 768f577fb49ddce2205b64c3b39fd04c75ee5826..1f8fbcdec78313ad001663fe377e8b58883cf487 100644 (file)
@@ -11,6 +11,6 @@ layout: default
   {% include ads.html %}
 </header>
 
-<main class="bd-content p-5" role="main">
+<main class="bd-content p-5" id="content" role="main">
   {{ content }}
 </main>