--- import { ViewTransitions } from 'astro:transitions' import NavBar from '@components/scafold/NavBar.astro'; import Footer from '@components/scafold/Footer.astro'; interface Props { title?: string; // Page title description?: string; // Overide description tag keywords?: string; // Overide keywords tag hideNav?: boolean; // Don't show the navbar (just homepage) author?: string; // Author of the content customSchemaJson?: any; // Custom schema item breadcrumbs?: Array<{ name: string; item: string; }> } const { title='Awesome Privacy | The Ultimate List of Private Apps', description='Your guide to finding privacy-respecting alternatives to popular software and services.', keywords='security, privacy, awesome privacy, data collection, free software, open source, privacy tools, privacy respecting software', hideNav=false, author='Alicia Sykes', breadcrumbs, customSchemaJson, } = Astro.props; const makeBreadcrumbs = () => { if (!breadcrumbs) return null; return { "@context": "https://schema.org", "@type": "BreadcrumbList", "itemListElement": breadcrumbs.map((breadcrumb, index) => ({ "@type": "ListItem", "position": index + 1, "name": breadcrumb.name, "item": `https://awesome-privacy.xyz/${breadcrumb.item}` })) } } const makeSearchLd = () => { return { "@context": "https://schema.org", "@type": "WebSite", "url": "https://awesome-privacy.xyz/", "potentialAction": [{ "@type": "SearchAction", "target": { "@type": "EntryPoint", "urlTemplate": "https://awesome-privacy.xyz/search?q={search_term_string}" }, "query-input": "required name=search_term_string" }] } }; ---