Fix multilingual permalinks example

This commit is contained in:
Joe Mooring 2023-09-20 09:31:30 -07:00 committed by GitHub
parent b3c342b074
commit 0e23d5e1ad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -102,11 +102,11 @@ With this content structure:
```text ```text
content/ content/
├── posts/ ├── posts/
   ├── bash-in-slow-motion.md ├── bash-in-slow-motion.md
   └── tls-in-a-nutshell.md └── tls-in-a-nutshell.md
├── tutorials/ ├── tutorials/
   ├── git-for-beginners.md ├── git-for-beginners.md
   └── javascript-bundling-with-hugo.md └── javascript-bundling-with-hugo.md
└── _index.md └── _index.md
``` ```
@ -165,15 +165,15 @@ With this content structure:
```text ```text
content/ content/
├── de/ ├── en/
   ├── books/ ├── books/
   │   ├── les-miserables.md ├── les-miserables.md
   │   └── the-hunchback-of-notre-dame.md └── the-hunchback-of-notre-dame.md
   └── _index.md └── _index.md
└── en/ └── es/
├── books/ ├── books/
   ├── les-miserables.md ├── les-miserables.md
   └── the-hunchback-of-notre-dame.md └── the-hunchback-of-notre-dame.md
└── _index.md └── _index.md
``` ```
@ -197,7 +197,7 @@ books = "/books/:slug/"
books = "/books/" books = "/books/"
[languages.es] [languages.es]
contentDir = 'content/de' contentDir = 'content/es'
languageCode = 'es-ES' languageCode = 'es-ES'
languageDirection = 'ltr' languageDirection = 'ltr'
languageName = 'Español' languageName = 'Español'
@ -215,21 +215,21 @@ The structure of the published site will be:
```text ```text
public/ public/
├── en/ ├── en/
   ├── books/ ├── books/
   │   ├── les-miserables/ ├── les-miserables/
   │   │   └── index.html │ │ └── index.html
   │   ├── the-hunchback-of-notre-dame/ ├── the-hunchback-of-notre-dame/
   │   │   └── index.html │ │ └── index.html
   │   └── index.html └── index.html
   └── index.html └── index.html
├── es/ ├── es/
   ├── libros/ ├── libros/
   │   ├── les-miserables/ ├── les-miserables/
   │   │   └── index.html │ │ └── index.html
   │   ├── the-hunchback-of-notre-dame/ ├── the-hunchback-of-notre-dame/
   │   │   └── index.html │ │ └── index.html
   │   └── index.html └── index.html
   └── index.html └── index.html
└── index.html └── index.html
```` ````