Setting the --include-wp-frontmatter option to true will add the following keys to the front matter on each rendered markdown file:
wp_id: the post's ID in WordPress
wp_slug: the post's slug in WordPress
wp_type: the post's WordPress type
I tried to copy all the relevant naming conventions and coding styles so this code fits in to the project's structure. Hope I didn't make any silly mistakes 🤞
Thanks for this! Unfortunately I did a complete rewrite of how frontmatter is handled and so merging this PR wasn't feasible. Just wanted to say thanks before closing this out.
Setting the
--include-wp-frontmatter
option totrue
will add the following keys to the front matter on each rendered markdown file:wp_id
: the post's ID in WordPresswp_slug
: the post's slug in WordPresswp_type
: the post's WordPress typeI tried to copy all the relevant naming conventions and coding styles so this code fits in to the project's structure. Hope I didn't make any silly mistakes 🤞