Skip to content

Commit 084f7d3

Browse files
committed
Add layout classes to main sections in layout
1 parent a655d5c commit 084f7d3

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

_layouts/default.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
{% include head/full.html %}
55
</head>
66

7-
<body data-spy="scroll" data-target="#page-toc" data-offset="0">
7+
<body class="layout-{{ page.layout }}" data-spy="scroll" data-target="#page-toc" data-offset="0">
88
{% include navigation.html %}
99
{% include masthead.html %}
1010

_layouts/full.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
---
44

55
<div class="container">
6-
<div class="scope-markdown" role="main">
6+
<main class="layout-full__main scope-markdown">
77
{% include anchor_headings.html html=content anchorBody="#" anchorClass="heading-anchor" %}
8-
</div>
8+
</main>
99

1010
{% include disqus.html %}
1111
</div>

_layouts/page.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
<div class="container">
66
<div class="row">
7-
<main class="col-md-9">
7+
<main class="col-md-9 layout-page__main">
88
<section class="mobile-toc border mb-3 p-3 d-md-none">
99
<div class="d-flex align-items-center">
1010
<h2 class="mb-0">Table of Contents</h2>
@@ -36,7 +36,7 @@ <h2 class="mb-0">Table of Contents</h2>
3636
</section>
3737
</main>
3838

39-
<aside class="col-md-3 d-none d-md-block hidden-print">
39+
<aside class="col-md-3 layout-page__sidebar d-none d-md-block hidden-print">
4040
<nav id="page-toc" class="page-sidebar">
4141
{% include toc.html
4242
html=content

0 commit comments

Comments
 (0)