Skip to content

Commit

Permalink
Merge pull request sass#16 from oddbird/body_classes
Browse files Browse the repository at this point in the history
add body classes implementation
  • Loading branch information
jgerigmeyer committed Feb 17, 2023
2 parents 0463a62 + 7dbbe5f commit 50e5d54
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion source/_layouts/base.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,9 @@
</script>
</head>

<body data-layout="body">
{%- assign classes = page.filePathStem | replace: "/", " " | strip -%}

<body data-layout="body" class="{{ classes }}">
<!--[if lt IE 9]>
<p class="browserupgrade">
You are using an <strong>outdated</strong> browser. Please <a href="https://browsehappy.com/">upgrade your browser</a> to improve your experience and security.
Expand Down

0 comments on commit 50e5d54

Please sign in to comment.