mirror of
https://github.com/flysnow-org/maupassant-hugo.git
synced 2026-08-24 15:28:55 +00:00
optimization toc,fix bugs, close #13,close #45,close #46,close #68
This commit is contained in:
+2
-3
@@ -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 }}
|
||||
Reference in New Issue
Block a user