Recent versions of Hugo no longer follow symbolic links to files in the
content directory. Since the files are identical, git and git-lfs store
them only once: the repository size does not change.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YNHsWYTXPThURz6TbVS1j3
Hugo used to publish every file of the page bundles, including the
source files (xcf, heic, raw videos, scripts, etc.), twice because of
the english articles copied in the french site. The site weighed 503 MB.
With publishResources disabled, only the resources referenced through
.Permalink / .RelPermalink are published: 95 files are no longer
published and the site now weighs 165 MB.
The few resources referenced by raw markdown links or by the figure
shortcode (which does not resolve page resources) now use the
attachedFileLink and attachedFigure shortcodes.
Note: Hugo 0.121 uses the _build front matter key (renamed build later).
Refs #11
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YNHsWYTXPThURz6TbVS1j3
The canonical link and the noindex meta tag were never emitted on the
english articles published as-is in the french site, because head.html
was checking the language detection of the translation instead of the
current page. Hence, the original articles also advertised the french
copies as their translation through hreflang.
- emit canonical + noindex on the french copies (68 pages)
- only list real translations in hreflang, including the current page
- exclude the french copies from the sitemap and its alternates
- restrict the language detection to regular pages: list pages have
no file and an empty content, hence they were always detected as copies
Refs #11
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YNHsWYTXPThURz6TbVS1j3
The theme was only used by this site. Having it at the root of the
repository removes the need for a git submodule and the double commits.
- layouts, assets, i18n and static files moved to the root
- theme LICENSE kept as LICENSE-theme
- ./hugo now generates chroma.css in assets/css
- remove the obsolete static/css/.gitignore
The generated site is identical, except for the stale /css/chroma.css
and /css/.gitignore files that are no longer published.
Closes#12
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YNHsWYTXPThURz6TbVS1j3
Three articles in two languages on the Open Code Quest :
* new article on Open Code Quest
* split one article in two
* fix video width
* thanks @slallemand for the proofreading
* thanks mos for the proofreading
* translation
* add sources
* fix publish date