From 7288860f291b8111f6325efc42c47211499fdff4 Mon Sep 17 00:00:00 2001 From: "chris (daiyi)" Date: Thu, 1 Dec 2016 22:56:49 +0100 Subject: [PATCH 1/2] Add 'content' config var to readme --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 07001be..5e01689 100644 --- a/README.md +++ b/README.md @@ -23,9 +23,11 @@ feed: path: atom.xml limit: 20 hub: + content: ``` - **type** - Feed type. (atom/rss2) - **path** - Feed path. (Default: atom.xml/rss2.xml) - **limit** - Maximum number of posts in the feed (Use `0` or `false` to show all posts) - **hub** - URL of the PubSubHubbub hubs (Leave it empty if you don't use it) +- **content** - (optional) set to 'true' to include the contents of the entire post in the feed. From cdca00c3d9c1e2bfd960d9c85d1b62ac0a9600aa Mon Sep 17 00:00:00 2001 From: "chris (daiyi)" Date: Thu, 1 Dec 2016 23:51:24 +0100 Subject: [PATCH 2/2] Update readme --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index 5e01689..20db21f 100644 --- a/README.md +++ b/README.md @@ -13,6 +13,10 @@ $ npm install hexo-generator-feed --save - Hexo 3: 1.x - Hexo 2: 0.x +## Use + +In the [front-matter](https://hexo.io/docs/front-matter.html) of your post, you can optionally add a `description` setting to write a summary for the post. Otherwise the summary will default to the excerpt or the first 140 characters of the post. + ## Options You can configure this plugin in `_config.yml`.