Skip to content

createContentLoader ‚Äč

If you are doing any build-time data loading we have a wrapper for createContentLoader which you can use instead of the default one.

It works more-or-less the same way but you should pass in the siteConfig as part of the options as below:

js
import createContentLoader from '@lando/vitepress-theme-default-plus/ccl';

const siteConfig = globalThis.VITEPRESS_CONFIG;

export default createContentLoader('posts/*.md', {siteConfig});