Преглед изворни кода

Fix indentation in layouts

- Change indentation to 2 spaces to match convention
- Don't indent <body> and <head> as per convention
Vivek Ghaisas пре 7 година
родитељ
комит
5aab5b03ab
2 измењених фајлова са 17 додато и 17 уклоњено
  1. 6
    6
      layouts/_default/list.html
  2. 11
    11
      layouts/_default/single.html

+ 6
- 6
layouts/_default/list.html Прегледај датотеку

@@ -1,15 +1,15 @@
1 1
 {{ partial "head.html" . }}
2 2
 <body class="{{ .Site.Params.themeColor }} {{if .Site.Params.layoutReverse}}layout-reverse{{end}}">
3 3
 
4
-{{ partial "sidebar.html" . }}
4
+  {{ partial "sidebar.html" . }}
5 5
 
6 6
   <div class="content container">
7 7
     <ul class="posts">
8
-        {{ range .Data.Pages }}
9
-        <li>
10
-          <span><a href="{{ .Permalink }}">{{ .Title }}</a> <time class="pull-right post-list">{{ .Date.Format "Mon, Jan 2, 2006" }}</time></span>
11
-        </li>
12
-        {{ end }}
8
+      {{ range .Data.Pages }}
9
+      <li>
10
+        <span><a href="{{ .Permalink }}">{{ .Title }}</a> <time class="pull-right post-list">{{ .Date.Format "Mon, Jan 2, 2006" }}</time></span>
11
+      </li>
12
+      {{ end }}
13 13
     </ul>
14 14
   </div>
15 15
 </body>

+ 11
- 11
layouts/_default/single.html Прегледај датотеку

@@ -1,13 +1,13 @@
1
-	{{ partial "head.html" . }}
2
-	<body class="{{ .Site.Params.themeColor }} {{if .Site.Params.layoutReverse}}layout-reverse{{end}}">
3
-		{{ partial "sidebar.html" . }}
1
+{{ partial "head.html" . }}
2
+<body class="{{ .Site.Params.themeColor }} {{if .Site.Params.layoutReverse}}layout-reverse{{end}}">
3
+  {{ partial "sidebar.html" . }}
4 4
 
5
-		<div class="content container">
6
-			<div class="post">
7
-			 	<h1>{{ .Title }}</h1>
8
-			  <span class="post-date">{{ .Date.Format "Mon, Jan 2, 2006" }}</span>
9
-			      {{ .Content }}
10
-			</div>
5
+  <div class="content container">
6
+    <div class="post">
7
+      <h1>{{ .Title }}</h1>
8
+      <span class="post-date">{{ .Date.Format "Mon, Jan 2, 2006" }}</span>
9
+      {{ .Content }}
10
+    </div>
11 11
 
12 12
 			{{ if .Site.Params.disqusShortname }}
13 13
 				<h2>Comments</h2>
@@ -15,5 +15,5 @@
15 15
 			{{ end }}
16 16
 		</div>
17 17
 
18
-  </body>
19
-</html>
18
+</body>
19
+</html>