Skip to content

Latest commit

 

History

History
11 lines (8 loc) · 364 Bytes

custom-post-types.md

File metadata and controls

11 lines (8 loc) · 364 Bytes

Custom post types

To export custom post types, you'll need to add a filter to do the following:

add_filter( 'jekyll_export_post_types', function() {
	return array('posts', 'pages', 'you-custom-post-type');
});

The custom post type will be exported as a Jekyll collection. You'll need to initialize it in the resulting Jekyll site's _config.yml.