diff --git a/content/template-editor/partials/html-partials.mdx b/content/template-editor/partials/html-partials.mdx index e10283a06..08bcedc37 100644 --- a/content/template-editor/partials/html-partials.mdx +++ b/content/template-editor/partials/html-partials.mdx @@ -64,9 +64,17 @@ You can create a schema for an HTML partial by clicking the "Edit schema" button Read more about the schema reference for HTML partials in the [Partial schema reference](/template-editor/partials/schema-reference) page. +## Editing HTML partial content + +HTML partials display a preview alongside the editor. Open the preview by clicking the "Preview" button or using the `Cmd + ]` keyboard shortcut on Mac, or `Ctrl + ]` on Windows. + +- Select an [email layout](/integrations/email/layouts) to preview the partial within. +- Use the ` + +

This is a partial CSS example.

``` -When I include this partial in an email template, either via a render tag or as a block in the visual editor, the CSS from this partial will be extracted and included within the `` of the compiled email template. Styles are deduplicated and are only included at-most once in the final email template. +When you include this partial in an email template, either via a render tag or as a block in the visual editor, the CSS from this partial will be extracted and included within the `` of the compiled email template. Styles are deduplicated and are only included at-most once in the final email template. diff --git a/content/template-editor/partials/overview.mdx b/content/template-editor/partials/overview.mdx index c85edb26c..7d7c81c86 100644 --- a/content/template-editor/partials/overview.mdx +++ b/content/template-editor/partials/overview.mdx @@ -38,7 +38,7 @@ After creating a partial, you can edit its content in the code editor. You can include Liquid variables in your content which will be scoped to your partial. When using the partial in a template, you can pass in values for these variables. To include a variable in your partial, use the following syntax: `{{ variable_name }}`. @@ -53,14 +53,6 @@ You can include Liquid variables in your content which will be scoped to your pa } /> -#### Editing HTML partial content - -HTML partials display a preview alongside the editor. Open the preview by clicking the "Preview" button or using the `Cmd + ]` keyboard shortcut on Mac, or `Ctrl + ]` on Windows. - -- Select an [email layout](/integrations/email/layouts) to preview the partial within. -- Use the `