]> njoseph.me Git - hyde.git/commitdiff
Trim more whitespace in template logic
authordigitalcraftsman <digitalcraftsman@protonmail.com>
Thu, 7 Sep 2017 19:43:11 +0000 (21:43 +0200)
committerdigitalcraftsman <digitalcraftsman@protonmail.com>
Thu, 7 Sep 2017 19:43:11 +0000 (21:43 +0200)
layouts/404.html
layouts/partials/head.html
layouts/partials/sidebar.html

index a919514ade829ae2c153f14310e1ffb5038e6770..107267a60e088e9acccacfc49d8b65e2aae41e30 100644 (file)
@@ -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
index 447a27c9c169ceb1d5ac71462874c64a2514888d..d602f3f78476d4f328d4c70d365275c946946cfd 100644 (file)
@@ -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">
index a582955f7855c0bad8aff60bf8286499be291d21..d4839c86d7befa1d80d867db499111e45054093d 100644 (file)
@@ -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>