Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanoverna committed Dec 18, 2024
1 parent 2404ff4 commit 46124c5
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 15 deletions.
4 changes: 2 additions & 2 deletions src/pages/company/profit-sharing/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Layout } from '~/layouts/Layout';
import { Hero } from '~/components/Hero';
import { LegalProse } from '~/components/LegalProse';
import { Markdown } from '~/components/Markdown';
import body from '~/documents/profit-sharing.md?raw';
import { rawContent } from '~/documents/profit-sharing.md';
---

<Layout additionalSeo={[]}>
Expand All @@ -19,6 +19,6 @@ import body from '~/documents/profit-sharing.md?raw';
</Hero>

<LegalProse>
<Markdown of={body} />
<Markdown of={rawContent()} />
</LegalProse>
</Layout>
4 changes: 2 additions & 2 deletions src/pages/legal/gdpr.astro
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Markdown } from '~/components/Markdown';
import { Hero } from '~/components/Hero';
import { Layout } from '~/layouts/Layout';
import { LegalProse } from '~/components/LegalProse';
import body from '~/documents/gdpr.md?raw';
import { rawContent } from '~/documents/gdpr.md';
---

<Layout additionalSeo={[]}>
Expand All @@ -15,6 +15,6 @@ import body from '~/documents/gdpr.md?raw';
<Fragment slot="title"><mark>GDPR Compliance</mark></Fragment>
</Hero>
<LegalProse>
<Markdown of={body} />
<Markdown of={rawContent()} />
</LegalProse>
</Layout>
4 changes: 2 additions & 2 deletions src/pages/legal/terms.astro
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Markdown } from '~/components/Markdown';
import { Hero } from '~/components/Hero';
import { Layout } from '~/layouts/Layout';
import { LegalProse } from '~/components/LegalProse';
import body from '~/documents/terms.md?raw';
import { Content } from '~/documents/terms.md';
---

<Layout additionalSeo={[]}>
Expand All @@ -16,6 +16,6 @@ import body from '~/documents/terms.md?raw';
</Hero>

<LegalProse>
<Markdown of={body} />
<Content />
</LegalProse>
</Layout>
11 changes: 2 additions & 9 deletions src/pages/security/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,7 @@ import { Markdown } from '~/components/Markdown';
import { Hero } from '~/components/Hero';
import { Layout } from '~/layouts/Layout';
import { LegalProse } from '~/components/LegalProse';
import body from '~/documents/security.md?raw';
// import { resolve, dirname } from 'node:path';
// import { fileURLToPath } from 'url';
// import { readFile } from 'node:fs/promises';
// const __filename = fileURLToPath(import.meta.url);
// const __dirname = dirname(__filename);
// const body = await readFile(resolve(__dirname, '../../../documents/security.md'), 'utf8');
import { rawContent } from '~/documents/security.md';
---

<Layout additionalSeo={[]}>
Expand All @@ -22,6 +15,6 @@ import body from '~/documents/security.md?raw';
<Fragment slot="title"><mark>DatoCMS Security</mark></Fragment>
</Hero>
<LegalProse>
<Markdown of={body} />
<Markdown of={rawContent()} />
</LegalProse>
</Layout>

0 comments on commit 46124c5

Please sign in to comment.