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

github.com/yanlinlin82/simple-style.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinlin Yan <yanlinlin82@gmail.com>2019-12-10 19:23:47 +0300
committerLinlin Yan <yanlinlin82@gmail.com>2019-12-10 19:23:47 +0300
commitcba8831d5fd52a36ea21011bfceda5536f83478f (patch)
treeacbebdd4f71fdb8d0652716a94f4907274eda96b
parent0f8a42ed6ed37271c13e49641bea96b7950b2fe9 (diff)
Improve spaces in source
-rw-r--r--layouts/_default/list.html8
-rw-r--r--layouts/index.html8
2 files changed, 8 insertions, 8 deletions
diff --git a/layouts/_default/list.html b/layouts/_default/list.html
index ccd8e4f..d45b0df 100644
--- a/layouts/_default/list.html
+++ b/layouts/_default/list.html
@@ -3,9 +3,9 @@
<h1 class="post-title">{{ .Title }}</h1>
</div>
<ul>
- {{- range .Paginator.Pages }}
+ {{ range .Paginator.Pages -}}
<li>{{ .Date.Format "2006-01-02 15:04" }} - <a href="{{ .RelPermalink }}">{{ .Title }}</a></li>
- {{- end }}
+ {{ end -}}
</ul>
-{{ template "_internal/pagination.html" . }}
-{{- end -}}
+{{ template "_internal/pagination.html" . -}}
+{{ end -}}
diff --git a/layouts/index.html b/layouts/index.html
index 36c02ab..e2b51c8 100644
--- a/layouts/index.html
+++ b/layouts/index.html
@@ -1,8 +1,8 @@
{{- define "main" -}}
<ul>
- {{- range (.Paginate ( where .Site.RegularPages "Type" "==" "post" )).Pages }}
+ {{ range (.Paginate ( where .Site.RegularPages "Type" "==" "post" )).Pages -}}
<li>{{ .Date.Format "2006-01-02 15:04" }} - <a href="{{ .RelPermalink }}">{{ .Title }}</a></li>
- {{- end }}
+ {{ end -}}
</ul>
-{{ template "_internal/pagination.html" . }}
-{{- end -}}
+{{ template "_internal/pagination.html" . -}}
+{{ end -}}