--- import Fonts from '@/components/fonts.astro'; import Footer from '@/pdf/components/footer.astro'; import EducationSection from '@/pdf/sections/education-section.pdf.astro'; import ExperienceSection from '@/pdf/sections/experience-section.pdf.astro'; import MainSection from '@/pdf/sections/main-section.pdf.astro'; import PortfolioSection from '@/pdf/sections/portfolio-section.pdf.astro'; import SkillsSection from '@/pdf/sections/skills-section.pdf.astro'; import cv from '@/data'; const { config, sections } = cv(); const shouldRenderSection = (section: keyof typeof sections) => sections[section] && sections[section].config.visible; --- PDF preview {shouldRenderSection('main') && } {shouldRenderSection('skills') && } {shouldRenderSection('experience') && } {shouldRenderSection('portfolio') && } {shouldRenderSection('education') && } {config.pdf?.footer && }