diff --git a/src/components/CMS.svelte b/src/components/CMS.svelte new file mode 100644 index 0000000..9aebaac --- /dev/null +++ b/src/components/CMS.svelte @@ -0,0 +1,28 @@ + + +{#each body as { section, content }} + {@const id = section.toLowerCase()} + {@const component = components[section]} +
+ {#if component} + + {:else} + {#each content as { type, value }} + {#if components[type]} + + {:else if type === "text"} +

{@html value}

+ {:else} + {#if typeof value === "string"}{@html value}{/if} + {/if} + {/each} + {/if} +
+{/each}