diff --git a/_quarto.yml b/_quarto.yml index 31bac75..3d4a444 100644 --- a/_quarto.yml +++ b/_quarto.yml @@ -5,10 +5,18 @@ project: - "*.qmd" - "site/**/*.qmd" - "blog/**/*.qmd" + post-render: + - scripts/fix-sitemap.sh website: title: COMPUTO - site-url: https://computo-journal.org/ + site-url: https://computo-journal.org description: A platform for computational research and reproducibility + image: /assets/img/og-image.png + image-alt: "Computo, a journal of the French Statistical Society" + open-graph: + locale: en_US + twitter-card: + card-style: summary_large_image favicon: assets/favicon.ico navbar: background: primary @@ -52,6 +60,7 @@ format: theme: light: [ custom.scss, light.scss ] dark: [ custom.scss, dark.scss ] + canonical-url: true toc: true code-copy: true code-block-border-left: true diff --git a/assets/img/og-image.png b/assets/img/og-image.png new file mode 100644 index 0000000..6fc3d61 Binary files /dev/null and b/assets/img/og-image.png differ diff --git a/assets/img/og-image.svg b/assets/img/og-image.svg new file mode 100644 index 0000000..1017992 --- /dev/null +++ b/assets/img/og-image.svg @@ -0,0 +1,112 @@ + + + + + + + + + + + + + + + + + + + + + diff --git a/index.qmd b/index.qmd index 9f1db3c..8eb62e2 100644 --- a/index.qmd +++ b/index.qmd @@ -1,7 +1,10 @@ --- -description:

COMPUTO

A journal of the French - Statistical Society SFdS - - ISSN 2824-7795 +description: >- + Computo is an open-access journal of the French Statistical Society publishing + reproducible computational and algorithmic contributions in statistics and + machine learning. +image: assets/img/og-image.png +image-alt: "Computo, a journal of the French Statistical Society" page-layout: full toc: false listing: diff --git a/scripts/fix-sitemap.sh b/scripts/fix-sitemap.sh new file mode 100755 index 0000000..0e2fdd3 --- /dev/null +++ b/scripts/fix-sitemap.sh @@ -0,0 +1,13 @@ +#!/usr/bin/env bash +set -euo pipefail + +# Quarto emits sitemap entries ending in /index.html, while pages' +# rel="canonical" tags point at the trailing-slash form. Google Search Console +# then flags the sitemap URLs as duplicates with no chosen canonical. +# Upstream bug: https://github.com/quarto-dev/quarto-cli/discussions/11398 + +sitemap="${QUARTO_PROJECT_OUTPUT_DIR:-_site}/sitemap.xml" + +[ -f "$sitemap" ] || exit 0 + +sed -i 's|/index\.html|/|g' "$sitemap"