Static CMS v2.0 (#226)
- [x] Update auf Static CMS v2.0 - [x] aktualisierte Shortcodes (schließt #225) - [x] aktualisierte Previews (schließt #181) - Ordnerunterstützung - [x] vervollständigte Seiten - [x] Aufräumarbeiten Reviewed-on: https://git.cantorgymnasium.de/gcg/gcg-website/pulls/226
This commit is contained in:
26
static/admin/previews/page-previews/page-preview.js
Normal file
26
static/admin/previews/page-previews/page-preview.js
Normal file
@ -0,0 +1,26 @@
|
||||
import { PageHeader } from "./components/index.js";
|
||||
|
||||
const PagePreview = ({ widgetFor, entry }) => {
|
||||
return [
|
||||
PageHeader(entry),
|
||||
h(
|
||||
"section",
|
||||
{ className: "section-sm" },
|
||||
h(
|
||||
"div",
|
||||
{ className: "container" },
|
||||
h(
|
||||
"div",
|
||||
{ className: "row" },
|
||||
h(
|
||||
"div",
|
||||
{ className: "col-12" },
|
||||
h("div", { className: "content" }, widgetFor("body"))
|
||||
)
|
||||
)
|
||||
)
|
||||
),
|
||||
];
|
||||
};
|
||||
|
||||
export default PagePreview;
|
Reference in New Issue
Block a user