浏览代码

Use paginator

enhancements
budparr 7 年前
父节点
当前提交
253214cbc6
没有帐户链接到提交者的电子邮件
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1
    1
      layouts/post/list.html

+ 1
- 1
layouts/post/list.html 查看文件

{{ .Content }} {{ .Content }}
</main> </main>
<section class="flex-ns flex-wrap justify-around mt5"> <section class="flex-ns flex-wrap justify-around mt5">
{{ range .Pages }}
{{ range .Paginator.Pages }}
<div class="relative w-100 w-30-l mb4 bg-white"> <div class="relative w-100 w-30-l mb4 bg-white">
{{/* {{/*
Note we can use `.Render` here for items just in this section, instead of a partial to pull in items for the list page. https://gohugo.io/functions/render/ Note we can use `.Render` here for items just in this section, instead of a partial to pull in items for the list page. https://gohugo.io/functions/render/

正在加载...
取消
保存