fixes, cleanups, pages migration, cms customization

This commit is contained in:
2022-12-17 11:28:57 +01:00
parent 223da7d5b0
commit 99f70f90ed
61 changed files with 179 additions and 221 deletions

View File

@ -65,11 +65,9 @@
}));
},
preview: ({ dir }) => {
return h(
'span',
{},
`${dir}`
);
return h('div', {"className": "row", "style": { border: "1px solid #ccc", borderRadius: "16px", padding: "10px" }},
h('b', {}, "Gallerie-Ordner: "),
h('span', {}, dir));
},
});
CMS.registerShortcode('load-photoswipe', {
@ -86,8 +84,7 @@
h('b', {}, "Gallerie-Servicemodul"));
},
preview: () => {
return h('div', {"className": "row", "style": { border: "1px solid #ccc", borderRadius: "16px", padding: "10px" }},
h('b', {}, "Gallerie-Servicemodul"));
},
});
</script>
@ -385,6 +382,7 @@ var PagePreviewImage = ({ widgetFor, getAsset, entry}) => {
};
CMS.registerPreviewTemplate("about-index", PagePreviewImage);
CMS.registerPreviewTemplate("blog", PagePreviewImage);
</script>