about summary refs log tree commit diff stats
path: root/themes/xmin
diff options
context:
space:
mode:
Diffstat (limited to 'themes/xmin')
-rw-r--r--themes/xmin/layouts/_default/baseof.html14
-rw-r--r--themes/xmin/layouts/_default/single.html9
2 files changed, 11 insertions, 12 deletions
diff --git a/themes/xmin/layouts/_default/baseof.html b/themes/xmin/layouts/_default/baseof.html
index 16332b8..1705460 100644
--- a/themes/xmin/layouts/_default/baseof.html
+++ b/themes/xmin/layouts/_default/baseof.html
@@ -5,17 +5,17 @@
     <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 @@
     {{ end }}
 
     <footer>
-      {{ with .Site.Params.footer }}
+      {{- with .Site.Params.footer }}
       {{ . | markdownify }}
-      {{ end }}
+      {{- end }}
     </footer>
   </body>
 </html>
diff --git a/themes/xmin/layouts/_default/single.html b/themes/xmin/layouts/_default/single.html
index 7da26d1..ba0e22a 100644
--- a/themes/xmin/layouts/_default/single.html
+++ b/themes/xmin/layouts/_default/single.html
@@ -4,12 +4,11 @@
     <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>