Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion _quarto.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
Binary file added assets/img/og-image.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
112 changes: 112 additions & 0 deletions assets/img/og-image.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 6 additions & 3 deletions index.qmd
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
---
description: <h1>COMPUTO</h1> A journal of the <a href="https://sfds.asso.fr/">French
Statistical Society <img height="10px" src="assets/img/sfds.png" alt="SFdS"/></a>
- 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:
Expand Down
13 changes: 13 additions & 0 deletions scripts/fix-sitemap.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/usr/bin/env bash
set -euo pipefail

# Quarto emits sitemap <loc> 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</loc>|/</loc>|g' "$sitemap"
Loading