mirror of
https://github.com/gohugoio/hugoDocs.git
synced 2025-09-13 18:07:24 -04:00
Fix multilingual permalinks example
This commit is contained in:
parent
b3c342b074
commit
0e23d5e1ad
@ -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
|
||||||
````
|
````
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user