The site already has source/target entries for static, but as soon as I add the following (and nothing else), all/most of the site content is “moved” / gets generated under /en rather than the current site-default of /:
- source: content
target: content
Whether I add lang: en or not has no effect. Any ideas how to avoid this?
In case this helps, here are the language config settings for the site:
contentDir: content/en
defaultContentLanguage: en
defaultContentLanguageInSubdir: false
enableMissingTranslationPlaceholders: true
languages:
en:
title: OpenTelemetry
description: The OpenTelemetry Project Site
languageName: English
weight: 1
Speaking only for myself, I am less inclined to look at a problem when I have to jump through hoops to reproduce it. Additionally, when creating a minimal reproducible example, the underlying problem will often reveal itself.
Here goes! I don’t have your super test gen script so I started from the closest existing test I could find in your test repo:
git clone --single-branch -b hugo-forum-topic-37165 https://github.com/jmooring/hugo-testing hugo-forum-topic-37165
cd hugo-forum-topic-37165
pushd content
mkdir en
mv _index.md post en
popd
git clone --single-branch -b hugo-forum-topic-37215 https://github.com/jmooring/hugo-testing hugo-forum-topic-37215
cd hugo-forum-topic-37215
hugo && tree public/
When the mounts config was introduced in Hugo 0.56.0, we were careful to preserve the existing staticDir and similar configuration to make sure all existing sites just continued to work. But you should not have both: if you add a mounts section you should remove the old staticDir etc. settings.