projects
/
eg-antora.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1f96f6b
)
add page or document role to body tag if defined in page source
author
Dan Allen
<dan@opendevise.com>
Sun, 19 Apr 2020 08:54:37 +0000
(
02:54
-0600)
committer
Dan Allen
<dan@opendevise.com>
Sun, 19 Apr 2020 08:54:37 +0000
(
02:54
-0600)
src/layouts/default.hbs
patch
|
blob
|
history
diff --git
a/src/layouts/default.hbs
b/src/layouts/default.hbs
index
080d561
..
eef835d
100644
(file)
--- a/
src/layouts/default.hbs
+++ b/
src/layouts/default.hbs
@@
-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}}