Fix indentation in layouts

- Change indentation to 2 spaces to match convention
- Don't indent <body> and <head> as per convention
This commit is contained in:
Vivek Ghaisas 2017-05-26 23:13:31 +03:00 committed by digitalcraftsman
parent 561c22d401
commit 5aab5b03ab
2 changed files with 17 additions and 17 deletions

View File

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

View File

@ -1,13 +1,13 @@
{{ partial "head.html" . }} {{ partial "head.html" . }}
<body class="{{ .Site.Params.themeColor }} {{if .Site.Params.layoutReverse}}layout-reverse{{end}}"> <body class="{{ .Site.Params.themeColor }} {{if .Site.Params.layoutReverse}}layout-reverse{{end}}">
{{ partial "sidebar.html" . }} {{ partial "sidebar.html" . }}
<div class="content container"> <div class="content container">
<div class="post"> <div class="post">
<h1>{{ .Title }}</h1> <h1>{{ .Title }}</h1>
<span class="post-date">{{ .Date.Format "Mon, Jan 2, 2006" }}</span> <span class="post-date">{{ .Date.Format "Mon, Jan 2, 2006" }}</span>
{{ .Content }} {{ .Content }}
</div> </div>
{{ if .Site.Params.disqusShortname }} {{ if .Site.Params.disqusShortname }}
<h2>Comments</h2> <h2>Comments</h2>
@ -15,5 +15,5 @@
{{ end }} {{ end }}
</div> </div>
</body> </body>
</html> </html>