diff options
author | Dillon <dillonzq@outlook.com> | 2019-08-18 20:36:52 +0300 |
---|---|---|
committer | Dillon <dillonzq@outlook.com> | 2019-08-18 20:36:52 +0300 |
commit | ee7c7549b5f0ccf4392b4c1637a280855e725091 (patch) | |
tree | 86b408409baea67b732be40c37fc23c4684860be /layouts/_default/section.html | |
parent | 6981f1e28534cbec26405f65d4e7c900c1be54ed (diff) |
feat: new index and style update
Diffstat (limited to 'layouts/_default/section.html')
-rw-r--r-- | layouts/_default/section.html | 34 |
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 |