Ver código fonte

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

Jason Yee 8 anos atrás
pai
commit
dbf82dbcff
2 arquivos alterados com 2 adições e 2 exclusões
  1. 1
    1
      layouts/_default/list.html
  2. 1
    1
      layouts/_default/single.html

+ 1
- 1
layouts/_default/list.html Ver arquivo

@@ -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 Ver arquivo

@@ -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">