Remade the title block to be multi-purpose and added the facebook widget
This commit was merged in pull request #15.
This commit is contained in:
@@ -17,11 +17,6 @@ export const Content: PageBlockFunction<PageBlocksContent> = ({ data }) => {
|
||||
size="custom"
|
||||
width="large"
|
||||
>
|
||||
{ data.withTitle ?
|
||||
<div className={ "main-title" }
|
||||
data-tina-field={ tinaField(data, "title") }>
|
||||
{ data.title }
|
||||
</div> : null }
|
||||
<TinaMarkdown components={ inlineComponents } content={ data.body } />
|
||||
</Container>
|
||||
</Section>
|
||||
@@ -39,17 +34,6 @@ export const contentBlockSchema: Template = {
|
||||
},
|
||||
fields: [
|
||||
{
|
||||
type: "boolean",
|
||||
label: "With Title",
|
||||
name: "withTitle"
|
||||
},
|
||||
{
|
||||
type: "string",
|
||||
label: "Title",
|
||||
name: "title"
|
||||
},
|
||||
{
|
||||
|
||||
type: "rich-text",
|
||||
label: "Body",
|
||||
name: "body",
|
||||
|
||||
Reference in New Issue
Block a user