Skip to content
This repository has been archived by the owner on Jul 11, 2023. It is now read-only.

Commit

Permalink
Add classnames to body element (mmistakes#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
makaroniame committed Sep 15, 2016
1 parent 2bdd368 commit 8f83290
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 8f83290

Please sign in to comment.