diff options
author | digitalcraftsman | 2017-09-07 21:43:11 +0200 |
---|---|---|
committer | digitalcraftsman | 2017-09-07 21:43:11 +0200 |
commit | fe56862a539d0196b4c6e852d3fa31e0768733c9 (patch) | |
tree | 9589af770eff474427e1f6448110d6a03d1b078b /layouts | |
parent | 82832c1244f2d536c754efb98fbdb02b1844f4c7 (diff) | |
download | hyde-fe56862a539d0196b4c6e852d3fa31e0768733c9.tar.lz hyde-fe56862a539d0196b4c6e852d3fa31e0768733c9.tar.zst hyde-fe56862a539d0196b4c6e852d3fa31e0768733c9.zip |
Trim more whitespace in template logic
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/404.html | 2 | ||||
-rw-r--r-- | layouts/partials/head.html | 6 | ||||
-rw-r--r-- | layouts/partials/sidebar.html | 4 |
3 files changed, 6 insertions, 6 deletions
diff --git a/layouts/404.html b/layouts/404.html index a919514..107267a 100644 --- a/layouts/404.html +++ b/layouts/404.html @@ -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 }} \ No newline at end of file +{{-1 end }} \ No newline at end of file diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 447a27c..d602f3f 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -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 }} · {{ .Site.Title }}</title> - {{ end }} + {{- end }} <!-- CSS --> <link rel="stylesheet" href="{{ .Site.BaseURL }}css/print.css" media="print"> diff --git a/layouts/partials/sidebar.html b/layouts/partials/sidebar.html index a582955..d4839c8 100644 --- a/layouts/partials/sidebar.html +++ b/layouts/partials/sidebar.html @@ -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 }}© {{ now.Format "2006"}}. All rights reserved. {{end}}</p> |