@kirchdev/duxt 0.1.1-dev.21-93816df → 0.1.1-dev.23-a14796d

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -328,7 +328,7 @@ function current(to?: string) {
328
328
  </ul>
329
329
  </template>
330
330
 
331
- <template v-if="items.length">
331
+ <template v-if="path !== '/' && items.length">
332
332
  <p
333
333
  class="mt-6 mb-2 border-t px-2 pt-4 text-[11px] font-semibold tracking-wider text-muted-foreground uppercase first:mt-0 first:border-t-0 first:pt-0"
334
334
  >
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://www.schemastore.org/package.json",
3
3
  "name": "@kirchdev/duxt",
4
- "version": "0.1.1-dev.21-93816df",
4
+ "version": "0.1.1-dev.23-a14796d",
5
5
  "description": "Nuxt documentation layer on Content v3 — multi-repo, versioned docs from one compact source list.",
6
6
  "keywords": [
7
7
  "content-v3",
@@ -353,6 +353,7 @@
353
353
  <span class="j-key">&quot;repository&quot;</span>: <span class="j-str">&quot;acme/cli&quot;</span>,
354
354
  <span class="j-key">&quot;repositoryUrl&quot;</span>: <span class="j-str">&quot;https://github.com/acme/cli&quot;</span>,
355
355
  <span class="j-key">&quot;path&quot;</span>: <span class="j-str">&quot;docs&quot;</span>,
356
+ <span class="j-key">&quot;locale&quot;</span>: <span class="j-str">&quot;en&quot;</span>,
356
357
  <span class="j-key">&quot;isDefaultLocale&quot;</span>: <span class="j-word">true</span>,
357
358
  <span class="j-key">&quot;status&quot;</span>: <span class="j-str">&quot;current&quot;</span>,
358
359
  <span class="j-key">&quot;history&quot;</span>: <span class="j-word">false</span>
@@ -33,7 +33,8 @@ export interface DuxtSource {
33
33
  * The DEFAULT locale is the exception: it is the tree in `path` itself, with
34
34
  * no folder, so listing it changes nothing. That is what keeps this key
35
35
  * additive — a site that adds `locales` does not move the pages it already
36
- * serves. Which one is the default comes from `defaultLocale`.
36
+ * serves. Which one is the default comes from `defaultLocale`. Omitting
37
+ * `locales` serves that default language too.
37
38
  */
38
39
  locales?: DuxtSourceLocale[];
39
40
  /**
@@ -565,7 +566,7 @@ export function resolveSources(
565
566
  const name = effectiveRef ? refName(effectiveRef) : source.version;
566
567
  const label =
567
568
  (ref && typeof ref === 'object' ? ref.label : undefined) ?? source.label;
568
- const code = locale ? localeCode(locale) : undefined;
569
+ const code = locale ? localeCode(locale) : defaultLocale;
569
570
  const isDefaultLocale = !code || code === defaultLocale;
570
571
  const version = name ? slugify(label ?? name) : undefined;
571
572
  const isDefault = !name || name === defaultRef;