소스 검색

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>