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
This commit is contained in:
Vince Chu 2016-09-15 14:46:04 -04:00 committed by Michael Rose
parent d22057f595
commit 8de960039d

View File

@ -10,7 +10,7 @@
{% include head/custom.html %} {% include head/custom.html %}
</head> </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 browser-upgrade.html %}
{% include masthead.html %} {% include masthead.html %}