add page or document role to body tag if defined in page source
authorDan Allen <dan@opendevise.com>
Sun, 19 Apr 2020 08:54:37 +0000 (02:54 -0600)
committerDan Allen <dan@opendevise.com>
Sun, 19 Apr 2020 08:54:37 +0000 (02:54 -0600)
src/layouts/default.hbs

index 080d561..eef835d 100644 (file)
@@ -3,7 +3,7 @@
   <head>
 {{> head defaultPageTitle='Untitled'}}
   </head>
-  <body class="article">
+  <body class="article{{#with (or page.attributes.role page.role)}} {{this}}{{/with}}">
 {{> header}}
 {{> body}}
 {{> footer}}