Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/VincentTam/huginn.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Berthault <justin.berthault@zaclys.net>2017-12-06 10:12:49 +0300
committerJustin Berthault <justin.berthault@zaclys.net>2017-12-06 10:12:49 +0300
commit5c20e0fad51a5300055ae34ee3607dd7c1a2853c (patch)
tree974fd1ae7818ce77ff6f7a2be942355f854fb450 /layouts/_default/list.html
parent3b8d21d72049a4246ff96bf348e0debaf5d03e2d (diff)
Trim white spaces in HTML + css tweak
- trim with {{- -}} - tags::before instead of plain # - remove Hashover, time for static comments rising
Diffstat (limited to 'layouts/_default/list.html')
-rw-r--r--layouts/_default/list.html34
1 files changed, 17 insertions, 17 deletions
diff --git a/layouts/_default/list.html b/layouts/_default/list.html
index f8f355a..579276a 100644
--- a/layouts/_default/list.html
+++ b/layouts/_default/list.html
@@ -1,39 +1,39 @@
{{ define "main" }}
<header>
<h1>
- <a href="{{ .Page.RSSLink }}"><i class="icon-rss"></i></a>{{ .Title }}
+ <a href="{{ .Page.RSSLink }}"><i class="icon-rss"></i></a>{{ .Title }}
</h1>
</header>
<ul>
- {{ range .Paginator.Pages }}
+ {{- range .Paginator.Pages -}}
<li>
<a href="{{ .Permalink }}">
- {{ .Date.Format "02/01/2006" }} - {{ .Title }}
+ {{- .Date.Format "02/01/2006" -}} - {{- .Title -}}
</a>
<div class="meta">
- {{ range .Params.categories }}
+ {{- range .Params.categories -}}
<a class="categories" href="{{ "/categories/" | relLangURL }}{{ . | urlize }}">
- {{ . }}
+ {{- . -}}
</a>
- {{ end }}
- {{ range .Params.tags }}
- - <a class="tags" href="{{ "/tags/" | relLangURL }}{{ . | urlize }}">
- #{{ . }}
+ {{- end -}}
+ {{- range .Params.tags -}}
+ <a class="tags" href="{{ "/tags/" | relLangURL }}{{ . | urlize }}">
+ {{- . -}}
</a>
- {{ end }}
+ {{- end -}}
</div>
</li>
- {{ end }}
+ {{- end -}}
</ul>
<nav>
<p>
- {{if .Paginator.HasPrev }}
- <a href="{{ .Paginator.Prev.URL }}">&laquo; Previous</a> |
- {{ end }}
+ {{- if .Paginator.HasPrev -}}
+ <a href="{{ .Paginator.Prev.URL }}">&laquo; Previous</a>
+ {{- end -}}
<span>Page {{ .Paginator.PageNumber }} of {{ .Paginator.TotalPages }}</span>
- {{ if .Paginator.HasNext }}
- | <a href="{{ .Paginator.Next.URL }}">Next &raquo;</a>
- {{ end }}
+ {{- if .Paginator.HasNext -}}
+ <a href="{{ .Paginator.Next.URL }}">Next &raquo;</a>
+ {{- end -}}
</p>
</nav>
{{ end }}