optimization toc,fix bugs, close #13,close #45,close #46,close #68

This commit is contained in:
飞雪无情
2019-12-20 18:02:14 +08:00
parent dace469f91
commit 5b068f5fcc
18 changed files with 354 additions and 79 deletions
+2 -3
View File
@@ -1,7 +1,7 @@
{{ define "content"}}
<div class="res-cons">
{{ range $index,$data := .Paginator.Pages }}
{{ if not .Params.hidden }}
{{- $paginator := .Paginate (where .Site.RegularPages "Type" "in" (slice "post" "posts")) }}
{{ range $index,$data := $paginator.Pages }}
<article class="post">
<header>
<h1 class="post-title">
@@ -25,7 +25,6 @@
<p class="readmore"><a href="{{ .Permalink }}">阅读全文</a></p>
</article>
{{ end }}
{{ end }}
{{ partial "paginator" . }}
</div>
{{ end }}