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

github.com/uPagge/uBlogger.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDillon <dillonzq@outlook.com>2019-08-18 20:36:52 +0300
committerDillon <dillonzq@outlook.com>2019-08-18 20:36:52 +0300
commitee7c7549b5f0ccf4392b4c1637a280855e725091 (patch)
tree86b408409baea67b732be40c37fc23c4684860be /layouts/_default/section.html
parent6981f1e28534cbec26405f65d4e7c900c1be54ed (diff)
feat: new index and style update
Diffstat (limited to 'layouts/_default/section.html')
-rw-r--r--layouts/_default/section.html34
1 files changed, 17 insertions, 17 deletions
diff --git a/layouts/_default/section.html b/layouts/_default/section.html
index 39438fa..2e58ec5 100644
--- a/layouts/_default/section.html
+++ b/layouts/_default/section.html
@@ -1,22 +1,22 @@
-{{ define "title" }}{{ T "posts" }} - {{ .Site.Title }}{{ end }}
+{{ define "title" }}{{ T "posts" }} - {{ .Site.Title }}{{ end -}}
-{{ define "content" }}
- {{ $data := .Data }}
+{{ define "content" -}}
+ {{ $data := .Data -}}
<div class="post-warp archive">
- <h2 class="post-title" style="text-align:right;padding-bottom:2em">
+ <h2 class="post-title">
{{ printf "- %s -" (T "posts") }}
</h2>
- {{ range (.Paginate (.Pages.GroupByDate "2006")).PageGroups }}
- <h3>{{ .Key }}</h3>
-
- {{ range .Pages }}
- <article class="archive-item">
- <a href="{{ .RelPermalink }}" class="archive-item-link">{{ .Title }}</a>
- <span class="archive-item-date">
- {{ .Date.Format (.Site.Params.dateFormatToUse | default "01-02") }}
- </span>
- </article>
- {{ end }} {{ end }}
- {{ partial "paginator.html" . }}
+ {{- range (.Paginate (.Pages.GroupByDate "2006")).PageGroups -}}
+ <h3>{{ .Key }}</h3>
+ {{- range .Pages -}}
+ <article class="archive-item">
+ <a href="{{ .RelPermalink }}" class="archive-item-link">{{ .Title }}</a>
+ <span class="archive-item-date">
+ {{- .Date.Format (.Site.Params.dateFormatToUse | default "01-02") -}}
+ </span>
+ </article>
+ {{- end -}}
+ {{- end -}}
+ {{- partial "paginator.html" . -}}
</div>
-{{end }}
+{{- end }} \ No newline at end of file