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/models | |
parent | 7ea56c78a2dd06889faa1192a515fcb39a51b362 (diff) |
Update to support slideOptions in the YAML metadata
Diffstat (limited to 'lib/models')
-rw-r--r-- | lib/models/note.js | 2 |
1 files changed, 2 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; } |