> Track3 7 年之前
父節點
當前提交
a101899f3e
共有 2 個文件被更改,包括 2 次插入1 次删除
  1. 1 0
      config.toml
  2. 1 1
      layouts/posts/rss.xml

+ 1 - 0
config.toml

@@ -8,6 +8,7 @@ enableGitInfo = true
 pygmentsCodefences  = true
 pygmentsUseClasses  = true
 hasCJKLanguage = true
+rssLimit = 10
 
 [blackfriday]
   hrefTargetBlank = true

+ 1 - 1
layouts/posts/rss.xml

@@ -12,7 +12,7 @@
     {{ with .OutputFormats.Get "RSS" -}}
         {{ printf "<atom:link href=%q rel=\"self\" type=%q />" .Permalink .MediaType | safeHTML }}
     {{ end -}}
-    {{ range .Data.Pages }}
+    {{ range .Pages }}
     <item>
       <title>{{ .Title }}</title>
+label: default
 hide_body: false
 is_partial: false
 fields:

+ 17 - 0
.forestry/front_matter/templates/posts.yml

@@ -1,4 +1,5 @@
 ---
+label: posts
 hide_body: false
 is_partial: false
 fields:
@@ -34,3 +35,19 @@ fields:
   type: boolean
   hidden: false
   default: true
+pages:
+- content/posts/2017/3-years-of-win10.md
+- content/posts/2017/stories-behind-amd.md
+- content/posts/2017/decided-to-buy-cuphead.md
+- content/posts/2018/hugo-deployment-webhook.md
+- content/posts/2018
+- content/posts/2018/whats-next-about-this-site.md
+- content/posts/2017
+- content/posts/2017/wp-sites-nginx-conf.md
+- content/posts/2018/hello-hugo.md
+- content/posts/2018/my-wp-theme-alchemist.md
+- content/posts/2017/what-i-learned-from-removing-seafile.md
+- content/posts/2017/my-personal-landing-page.md
+- content/posts/2017/raspberrypi-lede-setup.md
+- content/posts/2017/goodbye-my-windows-phone.md
+- content/posts/2018/lets-encrypt-wildcard-cert.md

+ 7 - 3
.forestry/settings.yml

@@ -4,11 +4,15 @@ auto_deploy: false
 admin_path: "/control"
 webhook_url: 
 sections:
-  posts:
-    default_front_matter_template: posts
+- path: content
+  label: Pages
+  create: all
+- path: content/posts
+  label: Posts
+  create: all
 upload_dir: static/uploads
 public_path: "/uploads"
 front_matter_path: ''
 use_front_matter_path: false
 file_template: ":year:/:month:/:day:/:filename:"
-version: 0.38.1
+version: '0.44'