Skip to content

Commit

Permalink
Trim more whitespace in template logic
Browse files Browse the repository at this point in the history
  • Loading branch information
digitalcraftsman committed Sep 7, 2017
1 parent 82832c1 commit fe56862
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion layouts/404.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{ define "main" -}}
<h1>404: Page not found</h1>
<p class="lead">Sorry, we've misplaced that URL or it's pointing to something that doesn't exist. <a href="{{ .Site.BaseURL }}">Head back home</a> to try finding it again.</p>
{{- end }}
{{-1 end }}
6 changes: 3 additions & 3 deletions layouts/partials/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@
<!-- Enable responsiveness on mobile devices-->
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1">

{{ if .IsHome }}
{{ if .IsHome -}}
<title>{{ .Site.Title }}</title>
{{ else }}
{{- else -}}
<title>{{ .Title }} &middot; {{ .Site.Title }}</title>
{{ end }}
{{- end }}

<!-- CSS -->
<link rel="stylesheet" href="{{ .Site.BaseURL }}css/print.css" media="print">
Expand Down
4 changes: 2 additions & 2 deletions layouts/partials/sidebar.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@

<ul class="sidebar-nav">
<li><a href="{{ .Site.BaseURL }}">Home</a> </li>
{{ range .Site.Menus.main }}
{{ range .Site.Menus.main -}}
<li><a href="{{.URL}}"> {{ .Name }} </a></li>
{{end}}
{{- end }}
</ul>

<p>{{ with .Site.Params.copyright }}{{.}}{{ else }}&copy; {{ now.Format "2006"}}. All rights reserved. {{end}}</p>
Expand Down

0 comments on commit fe56862

Please sign in to comment.