about summary refs log tree commit diff stats
path: root/layouts
diff options
context:
space:
mode:
authorJason Yee2016-04-22 20:01:32 -0700
committerdigitalcraftsman2016-08-19 19:20:33 +0200
commitdbf82dbcff55348edc6825216208d1ed0d78dcc7 (patch)
treeea180c8bd84aa0226e64239595d175ed4a1cf18b /layouts
parent61243733ec7ce5f2f8fe938f6e6518f05f2e5dfa (diff)
downloadhyde-dbf82dbcff55348edc6825216208d1ed0d78dcc7.tar.lz
hyde-dbf82dbcff55348edc6825216208d1ed0d78dcc7.tar.zst
hyde-dbf82dbcff55348edc6825216208d1ed0d78dcc7.zip
Add layout-reverse body class code to single and list templates.
Diffstat (limited to 'layouts')
-rw-r--r--layouts/_default/list.html2
-rw-r--r--layouts/_default/single.html2
2 files changed, 2 insertions, 2 deletions
diff --git a/layouts/_default/list.html b/layouts/_default/list.html
index 23d4afc..7659d47 100644
--- a/layouts/_default/list.html
+++ b/layouts/_default/list.html
@@ -1,5 +1,5 @@
 {{ partial "head.html" . }}
-<body class="{{ .Site.Params.themeColor }}">
+<body class="{{ .Site.Params.themeColor }} {{if .Site.Params.layoutReverse}}layout-reverse{{end}}">
 
 {{ partial "sidebar.html" . }}
 
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index 6bd2524..96c9f94 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -1,5 +1,5 @@
 	{{ partial "head.html" . }}
-	<body class="{{ .Site.Params.themeColor }}">
+	<body class="{{ .Site.Params.themeColor }} {{if .Site.Params.layoutReverse}}layout-reverse{{end}}">
 		{{ partial "sidebar.html" . }}
 
 		<div class="content container">