Adding Custom Data to Ghost CMS

I am migrating my site from Jekyll to Ghost due to unsupported code as my site contains a lot of posts (~ 2500). Since Jekyll uses YAML

frontmatter, I can add my own key value pairs to it. I would like to do the same with Ghost.

I will not add content to the post as there is very little difference between all posts. As such, I plan to access the data in the template post

and render it at runtime with help Handlebars.js

, which will avoid code repetition and improve maintainability.

I'm going to use the API to add new posts and so I'm wondering if it has an option. I have searched for this problem but I cannot find it. I am using it sqlite

as a database.

+3


source to share


2 answers


Ghost (v0.6.4) does not currently support custom values. You will need to either make changes to Ghost, add these custom key values ​​to the post template, or wait for Ghost Apps .



+1


source


I was able to add my own value pairs to the Ghost CMS.

More on this Extend Ghost CMS



This approach is based on expanding descriptors to recognize new data blocks and returning selective html

+1


source







All Articles