diff options
author | Alan Pearce | 2020-01-11 19:17:28 +0100 |
---|---|---|
committer | Alan Pearce | 2020-01-11 19:17:28 +0100 |
commit | dee6336441b5da8a00344eb135040a2cb3a94dac (patch) | |
tree | c235b723d500605aea58dbc732f4584ceaa82d08 /themes/xmin | |
parent | 508f604c012335027585245bbb3cf91a1cc373d7 (diff) | |
download | website-dee6336441b5da8a00344eb135040a2cb3a94dac.tar.xz website-dee6336441b5da8a00344eb135040a2cb3a94dac.zip |
Cleanup whitespace in output
Diffstat (limited to 'themes/xmin')
-rw-r--r-- | themes/xmin/layouts/_default/baseof.html | 14 | ||||
-rw-r--r-- | themes/xmin/layouts/_default/single.html | 9 |
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 @@ | |||
5 | <meta name="viewport" content="width=device-width, initial-scale=1"> | 5 | <meta name="viewport" content="width=device-width, initial-scale=1"> |
6 | <title {{- if .Page.IsNode }} class="p-name"{{ end }}>{{ .Title }} | {{ .Site.Title }}</title> | 6 | <title {{- if .Page.IsNode }} class="p-name"{{ end }}>{{ .Title }} | {{ .Site.Title }}</title> |
7 | <link rel="stylesheet" href="{{ "/css/style.css" | relURL }}" /> | 7 | <link rel="stylesheet" href="{{ "/css/style.css" | relURL }}" /> |
8 | {{ range .AlternativeOutputFormats -}} | 8 | {{- range .AlternativeOutputFormats }} |
9 | {{ printf `<link href="%s" rel="%s" type="%s" title="%s" />` .Permalink .Rel .MediaType.Type $.Site.Title | safeHTML }} | 9 | {{ printf `<link href="%s" rel="%s" type="%s" title="%s" />` .Permalink .Rel .MediaType.Type $.Site.Title | safeHTML }} |
10 | {{ end -}} | 10 | {{- end }} |
11 | </head> | 11 | </head> |
12 | 12 | ||
13 | <body> | 13 | <body> |
14 | <nav> | 14 | <nav> |
15 | <ul> | 15 | <ul> |
16 | {{ range .Site.Menus.main }} | 16 | {{- range .Site.Menus.main }} |
17 | <li><a href="{{ .URL | relURL }}">{{ .Name }}</a></li> | 17 | <li><a href="{{ .URL | relURL }}">{{ .Name }}</a></li> |
18 | {{ end }} | 18 | {{- end }} |
19 | </ul> | 19 | </ul> |
20 | </nav> | 20 | </nav> |
21 | 21 | ||
@@ -23,9 +23,9 @@ | |||
23 | {{ end }} | 23 | {{ end }} |
24 | 24 | ||
25 | <footer> | 25 | <footer> |
26 | {{ with .Site.Params.footer }} | 26 | {{- with .Site.Params.footer }} |
27 | {{ . | markdownify }} | 27 | {{ . | markdownify }} |
28 | {{ end }} | 28 | {{- end }} |
29 | </footer> | 29 | </footer> |
30 | </body> | 30 | </body> |
31 | </html> | 31 | </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 @@ | |||
4 | <h1><span class="title p-name">{{ .Title | markdownify }}</span></h1> | 4 | <h1><span class="title p-name">{{ .Title | markdownify }}</span></h1> |
5 | {{ if (gt .Params.date 0) }}<time class="dt-published" datetime="{{ .Date.Format "2006-01-02T15:04:05Z" }}">{{ .Date.Format "2006-01-02" }}</time>{{ end }} | 5 | {{ if (gt .Params.date 0) }}<time class="dt-published" datetime="{{ .Date.Format "2006-01-02T15:04:05Z" }}">{{ .Date.Format "2006-01-02" }}</time>{{ end }} |
6 | <p class="terms"> | 6 | <p class="terms"> |
7 | {{ range $i := (slice "categories" "tags") }} | 7 | {{- range $i := (slice "categories" "tags") }} |
8 | {{ with ($.Param $i) }} | 8 | {{- with ($.Param $i) }} |
9 | {{ $i | title }}: {{ range $k := . }}<a href="{{ relURL (print "/" $i "/" $k | urlize) }}">{{$k}}</a> {{ end }} | ||
10 | {{ end }} | ||
11 | {{ end }} | ||
12 | {{ $i | title }}: {{ range $k := . }}<a class="p-category" href="{{ relURL (print "/" $i "/" $k | urlize) }}">{{$k}}</a> {{ end }} | 9 | {{ $i | title }}: {{ range $k := . }}<a class="p-category" href="{{ relURL (print "/" $i "/" $k | urlize) }}">{{$k}}</a> {{ end }} |
10 | {{- end }} | ||
11 | {{- end }} | ||
13 | </p> | 12 | </p> |
14 | </header> | 13 | </header> |
15 | 14 | ||