diff --git a/public/robots.txt b/public/robots.txt index 6f27bb6..26a819e 100644 --- a/public/robots.txt +++ b/public/robots.txt @@ -1,2 +1,4 @@ User-agent: * -Disallow: \ No newline at end of file +Disallow: + +Sitemap: https://gephi.org/sitemap-index.xml diff --git a/src/layouts/Layout.astro b/src/layouts/Layout.astro index 14f5658..8947171 100644 --- a/src/layouts/Layout.astro +++ b/src/layouts/Layout.astro @@ -9,9 +9,11 @@ interface Props { class?: string; pageId?: string; title?: string; + fullTitle?: string; description?: string; image?: string; noindex?: boolean; + jsonLd?: object | object[]; } const DEFAULT_TITLE = "Gephi - The Open Graph Viz Platform"; @@ -19,9 +21,9 @@ const DEFAULT_DESCRIPTION = "Gephi is the leading visualization and exploration software for all kinds of graphs and networks. Gephi is open-source and free."; const DEFAULT_IMAGE = "/gephi-screenshot.jpg"; -const { class: className, pageId, title, description, image, noindex } = Astro.props; +const { class: className, pageId, title, fullTitle, description, image, noindex, jsonLd } = Astro.props; -const pageTitle = title ? `${title} | Gephi` : DEFAULT_TITLE; +const pageTitle = fullTitle ? fullTitle : title ? `${title} | Gephi` : DEFAULT_TITLE; const pageDescription = description || DEFAULT_DESCRIPTION; const canonicalURL = new URL(Astro.url.pathname, Astro.site); const ogImageURL = new URL(image || DEFAULT_IMAGE, Astro.site); @@ -55,12 +57,13 @@ const appPages = [ - + {noindex && } {pageTitle} + {jsonLd &&