浏览代码

Kill the ghost page.

master
Chris Smith 7 年前
父节点
当前提交
a97fc808d2
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 1
    1
      site/layouts/partials/index.html
  2. 1
    1
      site/layouts/partials/list.html

+ 1
- 1
site/layouts/partials/index.html 查看文件

@@ -5,7 +5,7 @@
5 5
     </div>
6 6
   </header>
7 7
   <ul>
8
-  {{ range where .Site.Pages "Type" "post" }}
8
+  {{ range where (where .Site.Pages "Type" "post") "Kind" "page" }}
9 9
     <li>
10 10
       <a href="{{ .Permalink }}">{{ .Title }}</a> - {{ .Date.Format "Jan 2, 2006" }}
11 11
     </li>

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

@@ -1,4 +1,4 @@
1
-{{ $paginator := .Paginate (where .Site.Pages "Type" "post") }}
1
+{{ $paginator := .Paginate (where (where .Site.Pages "Type" "post") "Kind" "page") }}
2 2
 {{ range $paginator.Pages }}
3 3
 <article class="post">
4 4
   <header>

正在加载...
取消
保存