chore: update types of privacy policy and terms of use, connect to crm
This commit is contained in:
20
src/pages/privacy-policy.astro
Normal file
20
src/pages/privacy-policy.astro
Normal file
@@ -0,0 +1,20 @@
|
||||
---
|
||||
import DocumentLayout from '../layouts/DocumentLayout.astro'
|
||||
import { privacyPolicyQuery } from '../graphql-documents/privacy-policy.gql.generated'
|
||||
import { renderMarkdown } from '../lib/cms/markdown/render'
|
||||
|
||||
const result = await privacyPolicyQuery.execute()
|
||||
if (result.errors?.length) {
|
||||
throw new Error(result.errors.map(e => e.message).join(', '))
|
||||
}
|
||||
|
||||
const siteConfig = result.data?.siteConfig
|
||||
const markdown = siteConfig?.privacyPolicy
|
||||
const contentHtml = markdown ? await renderMarkdown(markdown) : ''
|
||||
---
|
||||
|
||||
<DocumentLayout
|
||||
siteTitle={siteConfig?.title ?? ''}
|
||||
pageTitle="Политика конфиденциальности"
|
||||
contentHtml={contentHtml}
|
||||
/>
|
||||
Reference in New Issue
Block a user