Skip to content

Commit 57449b3

Browse files
vwchummistakes
authored andcommittedSep 15, 2016
Add classnames to body element (#526)
* Expose layout type as class name on body element * Add ability to add classes to body via front matter
1 parent a60257d commit 57449b3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎_layouts/default.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
{% include head/custom.html %}
1111
</head>
1212

13-
<body>
13+
<body class="layout--{{ page.layout | default: layout.layout }}{% if page.classes or layout.classes %}{{ page.classes | default: layout.classes | join: ' ' | prepend: ' ' }}{% endif %}">
1414

1515
{% include browser-upgrade.html %}
1616
{% include masthead.html %}

0 commit comments

Comments
 (0)