Pages
Create, edit, preview, and publish website pages.
(document.getElementById('new-page') as HTMLDialogElement)?.showModal()}>New page
{#if form?.message}
{form.message}
{/if}
Slug
Title
Status
Actions
{#each data.pages as page}
{page.slug}
{page.title}
{page.published ? 'Published' : 'Draft'}
Edit
Preview
{page.published ? 'Unpublish' : 'Publish'}
confirm('Delete this page?')}>
Delete
{/each}
Create page
Slug
Title
(document.getElementById('new-page') as HTMLDialogElement)?.close()}>Cancel
Create