瀏覽代碼

Fix menu after hugo upgrade

master
Chris Smith 5 年之前
父節點
當前提交
4e5725ac7a
共有 1 個檔案被更改,包括 2 行新增2 行删除
  1. 2
    2
      site/layouts/partials/head.html

+ 2
- 2
site/layouts/partials/head.html 查看文件

@@ -47,7 +47,7 @@
47 47
 
48 48
         <section id="posts">
49 49
           <ul>
50
-            {{ range first 3 (where .Site.Pages "Type" "post") }}
50
+            {{ range first 3 .Pages }}
51 51
               <li class="recent">
52 52
                 <a href="{{ .RelPermalink }}">{{ .Title }}</a>
53 53
                 <p>{{ .Date.Format "Jan 2, 2006" }}</p>
@@ -81,4 +81,4 @@
81 81
       </div>
82 82
     </header>
83 83
 
84
-    <div id="main">
84
+    <div id="main">

Loading…
取消
儲存