createContentLoader
If you are doing any build-time data loading we recommend you use our createContentLoader
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});