Skip to content

Commit

Permalink
Fix indentation in layouts
Browse files Browse the repository at this point in the history
- Change indentation to 2 spaces to match convention
- Don't indent <body> and <head> as per convention
  • Loading branch information
polybuildr authored and digitalcraftsman committed Jul 25, 2017
1 parent 561c22d commit 5aab5b0
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 17 deletions.
12 changes: 6 additions & 6 deletions layouts/_default/list.html
Original file line number Diff line number Diff line change
@@ -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>
Expand Down
22 changes: 11 additions & 11 deletions layouts/_default/single.html
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
{{ 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>
{{ partial "disqus" . }}
{{ end }}
</div>

</body>
</html>
</body>
</html>

0 comments on commit 5aab5b0

Please sign in to comment.