fix(visual-editing): don’t open admin for portableText; simplify starter PT markup (#40)
* fix(visual-editing): PT inline editing; align starter templates * chore(admin): format router.tsx --------- Co-authored-by: Matt Kane <mkane@cloudflare.com>
This commit is contained in:
@@ -33,8 +33,6 @@ const seo = getSeoMeta(page, {
|
||||
<article>
|
||||
<h1 {...page.edit.title}>{page.data.title}</h1>
|
||||
|
||||
<div {...page.edit.content}>
|
||||
<PortableText value={page.data.content} />
|
||||
</div>
|
||||
<PortableText value={page.data.content} />
|
||||
</article>
|
||||
</Base>
|
||||
|
||||
@@ -69,9 +69,7 @@ const categories = await getEntryTerms("posts", post.data.id, "category");
|
||||
)
|
||||
}
|
||||
|
||||
<div {...post.edit.content}>
|
||||
<PortableText value={post.data.content} />
|
||||
</div>
|
||||
<PortableText value={post.data.content} />
|
||||
|
||||
{
|
||||
tags.length > 0 && (
|
||||
|
||||
@@ -33,8 +33,6 @@ const seo = getSeoMeta(page, {
|
||||
<article>
|
||||
<h1 {...page.edit.title}>{page.data.title}</h1>
|
||||
|
||||
<div {...page.edit.content}>
|
||||
<PortableText value={page.data.content} />
|
||||
</div>
|
||||
<PortableText value={page.data.content} />
|
||||
</article>
|
||||
</Base>
|
||||
|
||||
@@ -69,9 +69,7 @@ const categories = await getEntryTerms("posts", post.data.id, "category");
|
||||
)
|
||||
}
|
||||
|
||||
<div {...post.edit.content}>
|
||||
<PortableText value={post.data.content} />
|
||||
</div>
|
||||
<PortableText value={post.data.content} />
|
||||
|
||||
{
|
||||
tags.length > 0 && (
|
||||
|
||||
Reference in New Issue
Block a user