Skip to content

Commit 75a1b64

Browse files
committed
add property: raw
1 parent a29ae26 commit 75a1b64

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

lib/generator.js

+2
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ module.exports = function(cfg, site) {
1414
updated: true,
1515
comments: true,
1616
path: true,
17+
raw: false,
1718
excerpt: false,
1819
content: false,
1920
categories: true,
@@ -47,6 +48,7 @@ module.exports = function(cfg, site) {
4748
excerpt: posts_props('excerpt', post.excerpt),
4849
keywords: posts_props('keywords', cfg.keywords),
4950
content: posts_props('content', post.content),
51+
raw: posts_props('raw', post.raw),
5052
categories: posts_props('categories', function() {
5153
return post.categories.map(function(cat) {
5254
return {

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "hexo-generator-restful",
3-
"version": "0.0.1",
4-
"description": "Generate restful json data. ",
3+
"version": "0.0.3",
4+
"description": "Generate restful json data for Hexo plugins.",
55
"main": "index.js",
66
"scripts": {
77
"test": "echo \"Error: no test specified\" && exit 1"

0 commit comments

Comments
 (0)