about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorVivek Ghaisas2017-05-26 23:13:31 +0300
committerdigitalcraftsman2017-07-25 19:02:27 +0200
commit5aab5b03ab910f0920b961ebda2f7f75f685b121 (patch)
treeec7c0c4bf9f6a49e91da150ddd91836c2a4f5027
parent561c22d40141a796bffecbb24bcc02f931d92e1c (diff)
downloadhyde-5aab5b03ab910f0920b961ebda2f7f75f685b121.tar.lz
hyde-5aab5b03ab910f0920b961ebda2f7f75f685b121.tar.zst
hyde-5aab5b03ab910f0920b961ebda2f7f75f685b121.zip
Fix indentation in layouts
- Change indentation to 2 spaces to match convention
- Don't indent <body> and <head> as per convention
-rw-r--r--layouts/_default/list.html12
-rw-r--r--layouts/_default/single.html22
2 files changed, 17 insertions, 17 deletions
diff --git a/layouts/_default/list.html b/layouts/_default/list.html
index 7659d47..c362b25 100644
--- a/layouts/_default/list.html
+++ b/layouts/_default/list.html
@@ -1,15 +1,15 @@
 {{ partial "head.html" . }}
 <body class="{{ .Site.Params.themeColor }} {{if .Site.Params.layoutReverse}}layout-reverse{{end}}">
 
-{{ partial "sidebar.html" . }}
+  {{ partial "sidebar.html" . }}
 
   <div class="content container">
     <ul class="posts">
-        {{ range .Data.Pages }}
-        <li>
-          <span><a href="{{ .Permalink }}">{{ .Title }}</a> <time class="pull-right post-list">{{ .Date.Format "Mon, Jan 2, 2006" }}</time></span>
-        </li>
-        {{ end }}
+      {{ range .Data.Pages }}
+      <li>
+        <span><a href="{{ .Permalink }}">{{ .Title }}</a> <time class="pull-right post-list">{{ .Date.Format "Mon, Jan 2, 2006" }}</time></span>
+      </li>
+      {{ end }}
     </ul>
   </div>
 </body>
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index 2a8e053..26149e7 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -1,13 +1,13 @@
-	{{ partial "head.html" . }}
-	<body class="{{ .Site.Params.themeColor }} {{if .Site.Params.layoutReverse}}layout-reverse{{end}}">
-		{{ partial "sidebar.html" . }}
+{{ partial "head.html" . }}
+<body class="{{ .Site.Params.themeColor }} {{if .Site.Params.layoutReverse}}layout-reverse{{end}}">
+  {{ partial "sidebar.html" . }}
 
-		<div class="content container">
-			<div class="post">
-			 	<h1>{{ .Title }}</h1>
-			  <span class="post-date">{{ .Date.Format "Mon, Jan 2, 2006" }}</span>
-			      {{ .Content }}
-			</div>
+  <div class="content container">
+    <div class="post">
+      <h1>{{ .Title }}</h1>
+      <span class="post-date">{{ .Date.Format "Mon, Jan 2, 2006" }}</span>
+      {{ .Content }}
+    </div>
 
 			{{ if .Site.Params.disqusShortname }}
 				<h2>Comments</h2>
@@ -15,5 +15,5 @@
 			{{ end }}
 		</div>
 
-  </body>
-</html>
+</body>
+</html>
\ No newline at end of file