Skip to content

Commit

Permalink
Add classnames to body element (#526)
Browse files Browse the repository at this point in the history
* Expose layout type as class name on body element

* Add ability to add classes to body via front matter
  • Loading branch information
vwchu authored and mmistakes committed Sep 15, 2016
1 parent a60257d commit 57449b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion _layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
{% include head/custom.html %}
</head>

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

{% include browser-upgrade.html %}
{% include masthead.html %}
Expand Down

0 comments on commit 57449b3

Please sign in to comment.