|
|
@ -1,10 +1,9 @@ |
|
|
|
--- |
|
|
|
--- |
|
|
|
import CaptchaScripts from '../../components/Captcha/CaptchaScripts.astro'; |
|
|
|
import CaptchaScripts from '../../components/Captcha/CaptchaScripts.astro'; |
|
|
|
import FAQs from '../../components/FAQs/FAQs.astro'; |
|
|
|
|
|
|
|
import InteractiveRoadmap from '../../components/InteractiveRoadmap/InteractiveRoadmap.astro'; |
|
|
|
import InteractiveRoadmap from '../../components/InteractiveRoadmap/InteractiveRoadmap.astro'; |
|
|
|
import MarkdownFile from '../../components/MarkdownFile.astro'; |
|
|
|
import MarkdownFile from '../../components/MarkdownFile.astro'; |
|
|
|
import RoadmapHeader from '../../components/RoadmapHeader.astro'; |
|
|
|
import RoadmapHeader from '../../components/RoadmapHeader.astro'; |
|
|
|
import UpcomingRoadmap from '../../components/UpcomingRoadmap.astro'; |
|
|
|
import UpcomingForm from '../../components/UpcomingForm.astro'; |
|
|
|
import BaseLayout from '../../layouts/BaseLayout.astro'; |
|
|
|
import BaseLayout from '../../layouts/BaseLayout.astro'; |
|
|
|
import { BestPracticeFrontmatter,getBestPracticeIds } from '../../lib/best-pratice'; |
|
|
|
import { BestPracticeFrontmatter,getBestPracticeIds } from '../../lib/best-pratice'; |
|
|
|
import { generateArticleSchema } from '../../lib/jsonld-schema'; |
|
|
|
import { generateArticleSchema } from '../../lib/jsonld-schema'; |
|
|
@ -23,7 +22,6 @@ interface Params extends Record<string, string | undefined> { |
|
|
|
|
|
|
|
|
|
|
|
const { bestPracticeId } = Astro.params as Params; |
|
|
|
const { bestPracticeId } = Astro.params as Params; |
|
|
|
const bestPracticeFile = await import(`../../best-practices/${bestPracticeId}/${bestPracticeId}.md`); |
|
|
|
const bestPracticeFile = await import(`../../best-practices/${bestPracticeId}/${bestPracticeId}.md`); |
|
|
|
const { faqs: roadmapFAQs = [] } = await import(`../../roadmaps/${bestPracticeId}/faqs.astro`); |
|
|
|
|
|
|
|
const bestPracticeData = bestPracticeFile.frontmatter as BestPracticeFrontmatter; |
|
|
|
const bestPracticeData = bestPracticeFile.frontmatter as BestPracticeFrontmatter; |
|
|
|
|
|
|
|
|
|
|
|
let jsonLdSchema = []; |
|
|
|
let jsonLdSchema = []; |
|
|
@ -78,9 +76,6 @@ if (bestPracticeData.schema) { |
|
|
|
) |
|
|
|
) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
{bestPracticeData.isUpcoming && <UpcomingRoadmap />} |
|
|
|
{bestPracticeData.isUpcoming && <UpcomingForm />} |
|
|
|
|
|
|
|
|
|
|
|
<FAQs faqs={roadmapFAQs} /> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<CaptchaScripts slot='after-footer' /> |
|
|
|
<CaptchaScripts slot='after-footer' /> |
|
|
|
</BaseLayout> |
|
|
|
</BaseLayout> |
|
|
|