Browse Source

Add layout-reverse body class code to single and list templates.

Jason Yee 8 years ago
parent
commit
dbf82dbcff
2 changed files with 2 additions and 2 deletions
  1. 1
    1
      layouts/_default/list.html
  2. 1
    1
      layouts/_default/single.html

+ 1
- 1
layouts/_default/list.html View File

@@ -1,5 +1,5 @@
1 1
 {{ partial "head.html" . }}
2
-<body class="{{ .Site.Params.themeColor }}">
2
+<body class="{{ .Site.Params.themeColor }} {{if .Site.Params.layoutReverse}}layout-reverse{{end}}">
3 3
 
4 4
 {{ partial "sidebar.html" . }}
5 5
 

+ 1
- 1
layouts/_default/single.html View File

@@ -1,5 +1,5 @@
1 1
 	{{ partial "head.html" . }}
2
-	<body class="{{ .Site.Params.themeColor }}">
2
+	<body class="{{ .Site.Params.themeColor }} {{if .Site.Params.layoutReverse}}layout-reverse{{end}}">
3 3
 		{{ partial "sidebar.html" . }}
4 4
 
5 5
 		<div class="content container">