diff options
author | Wu Cheng-Han | 2016-08-01 00:08:22 +0800 |
---|---|---|
committer | Wu Cheng-Han | 2016-08-01 00:08:22 +0800 |
commit | b367e110b639ab707e848d1d6de70bb094cd0edd (patch) | |
tree | 926d1272bbd8c773e266a1723dbc7c90bf6f27f4 /lib | |
parent | 7ea56c78a2dd06889faa1192a515fcb39a51b362 (diff) |
Update to support slideOptions in the YAML metadata
Diffstat (limited to 'lib')
-rw-r--r-- | lib/models/note.js | 2 | ||||
-rw-r--r-- | lib/response.js | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/lib/models/note.js b/lib/models/note.js index 5ee5c7de..05babb42 100644 --- a/lib/models/note.js +++ b/lib/models/note.js @@ -237,6 +237,8 @@ module.exports = function (sequelize, DataTypes) { _meta.robots = meta.robots; if (meta.GA && (typeof meta.GA == "string" || typeof meta.GA == "number")) _meta.GA = meta.GA; + if (meta.slideOptions && (typeof meta.slideOptions == "object")) + _meta.slideOptions = meta.slideOptions; } return _meta; } diff --git a/lib/response.js b/lib/response.js index 1a6d1137..9df2ee9f 100644 --- a/lib/response.js +++ b/lib/response.js @@ -555,6 +555,7 @@ function showPublishSlide(req, res, next) { title: title, description: meta.description, slides: slides, + slideOptions: JSON.stringify(meta.slideOptions || {}), GA: meta.GA, useCDN: config.usecdn }; |