summaryrefslogtreecommitdiff
path: root/lib/models
diff options
context:
space:
mode:
authorWu Cheng-Han2016-08-01 00:08:22 +0800
committerWu Cheng-Han2016-08-01 00:08:22 +0800
commitb367e110b639ab707e848d1d6de70bb094cd0edd (patch)
tree926d1272bbd8c773e266a1723dbc7c90bf6f27f4 /lib/models
parent7ea56c78a2dd06889faa1192a515fcb39a51b362 (diff)
Update to support slideOptions in the YAML metadata
Diffstat (limited to 'lib/models')
-rw-r--r--lib/models/note.js2
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;
}