all repos — website @ dee6336441b5da8a00344eb135040a2cb3a94dac

My website

Cleanup whitespace in output
Alan Pearce alan@alanpearce.eu
Sat, 11 Jan 2020 19:17:28 +0100
commit

dee6336441b5da8a00344eb135040a2cb3a94dac

parent

508f604c012335027585245bbb3cf91a1cc373d7

2 files changed, 11 insertions(+), 12 deletions(-)

jump to
M themes/xmin/layouts/_default/baseof.htmlthemes/xmin/layouts/_default/baseof.html
@@ -5,17 +5,17 @@ <meta charset="utf-8">     <meta name="viewport" content="width=device-width, initial-scale=1">
     <title {{- if .Page.IsNode }} class="p-name"{{ end }}>{{ .Title }} | {{ .Site.Title }}</title>
     <link rel="stylesheet" href="{{ "/css/style.css" | relURL }}" />
-    {{ range .AlternativeOutputFormats -}}
-      {{ printf `<link href="%s" rel="%s" type="%s" title="%s" />` .Permalink .Rel .MediaType.Type $.Site.Title | safeHTML }}
-    {{ end -}}
+    {{- range .AlternativeOutputFormats }}
+    {{ printf `<link href="%s" rel="%s" type="%s" title="%s" />` .Permalink .Rel .MediaType.Type $.Site.Title | safeHTML }}
+    {{- end }}
   </head>
 
   <body>
     <nav>
       <ul>
-        {{ range .Site.Menus.main }}
+        {{- range .Site.Menus.main }}
         <li><a href="{{ .URL | relURL }}">{{ .Name }}</a></li>
-        {{ end }}
+        {{- end }}
       </ul>
     </nav>
 
@@ -23,9 +23,9 @@ {{ block "main" . }}     {{ end }}
 
     <footer>
-      {{ with .Site.Params.footer }}
+      {{- with .Site.Params.footer }}
       {{ . | markdownify }}
-      {{ end }}
+      {{- end }}
     </footer>
   </body>
 </html>
M themes/xmin/layouts/_default/single.htmlthemes/xmin/layouts/_default/single.html
@@ -4,12 +4,11 @@ <header>     <h1><span class="title p-name">{{ .Title | markdownify }}</span></h1>
     {{ if (gt .Params.date 0) }}<time class="dt-published" datetime="{{ .Date.Format "2006-01-02T15:04:05Z" }}">{{ .Date.Format "2006-01-02" }}</time>{{ end }}
     <p class="terms">
-      {{ range $i := (slice "categories" "tags") }}
-      {{ with ($.Param $i) }}
-      {{ $i | title }}: {{ range $k := . }}<a href="{{ relURL (print "/" $i "/" $k | urlize) }}">{{$k}}</a> {{ end }}
-      {{ end }}
-      {{ end }}
+      {{- range $i := (slice "categories" "tags") }}
+      {{- with ($.Param $i) }}
       {{ $i | title }}: {{ range $k := . }}<a class="p-category" href="{{ relURL (print "/" $i "/" $k | urlize) }}">{{$k}}</a> {{ end }}
+      {{- end }}
+      {{- end }}
     </p>
   </header>