You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
body: '\n## Post with components\n\nThis uses a custom marquee component with a shortcode:\n\n{% mq direction="right" %}\nI\'m a marquee too!\n{% /mq %}\n\nAnd a code component for code blocks:\n\n```js\nconst isRenderedWithShiki = true;\n```\n',
47
-
},
48
-
{
49
-
id: 'with-config.mdoc',
50
-
slug: 'with-config',
51
-
collection: 'blog',
52
-
data: {
53
-
schemaWorks: true,
54
-
title: 'Post with config',
55
-
},
56
-
body: '\n## Post with config\n\nThis uses a shortcode to render a marquee element,\nwith a variable to show and hide:\n\n{% if $showMarquee %}\n{% mq direction="down" %}\nIm a marquee!\n{% /mq %}\n{% /if %}\n',
body: '\n## Simple post\n\nThis is a simple Markdoc post.\n',
72
69
};
70
+
71
+
constwithComponentsEntry={
72
+
id: 'with-components.mdoc',
73
+
slug: 'with-components',
74
+
collection: 'blog',
75
+
data: {
76
+
schemaWorks: true,
77
+
title: 'Post with components',
78
+
},
79
+
body: '\n## Post with components\n\nThis uses a custom marquee component with a shortcode:\n\n{% mq direction="right" %}\nI\'m a marquee too!\n{% /mq %}\n\nAnd a code component for code blocks:\n\n```js\nconst isRenderedWithShiki = true;\n```\n',
80
+
};
81
+
82
+
constwithConfigEntry={
83
+
id: 'with-config.mdoc',
84
+
slug: 'with-config',
85
+
collection: 'blog',
86
+
data: {
87
+
schemaWorks: true,
88
+
title: 'Post with config',
89
+
},
90
+
body: '\n## Post with config\n\nThis uses a shortcode to render a marquee element,\nwith a variable to show and hide:\n\n{% if $showMarquee %}\n{% mq direction="down" %}\nIm a marquee!\n{% /mq %}\n{% /if %}\n',
0 commit comments