mirror of
https://github.com/McShelby/hugo-theme-relearn
synced 2025-04-30 12:04:33 +08:00
docs: remove cruft from example #1067
This commit is contained in:
parent
0d71747e13
commit
964ca24fd0
@ -65,25 +65,24 @@ Here's how to make your site multilingual using [translations by file name](http
|
|||||||
2. Duplicate your content files and add language codes to their file names:
|
2. Duplicate your content files and add language codes to their file names:
|
||||||
|
|
||||||
````tree
|
````tree
|
||||||
- [PROJECT]
|
- content::folder
|
||||||
- content::folder
|
- log::folder
|
||||||
- log::folder
|
- first-day::folder
|
||||||
- first-day::folder
|
|
||||||
- _index.en.md::fa-fw fab fa-markdown::secondary
|
|
||||||
- _index.pir.md::fa-fw fab fa-markdown::secondary
|
|
||||||
- second-day::folder
|
|
||||||
- index.en.md::fa-fw fab fa-markdown::secondary
|
|
||||||
- index.pir.md::fa-fw fab fa-markdown::secondary
|
|
||||||
- third-day.en.md::fa-fw fab fa-markdown::secondary
|
|
||||||
- third-day.pir.md::fa-fw fab fa-markdown::secondary
|
|
||||||
- _index.en.md::fa-fw fab fa-markdown::secondary
|
- _index.en.md::fa-fw fab fa-markdown::secondary
|
||||||
- _index.pir.md::fa-fw fab fa-markdown::secondary
|
- _index.pir.md::fa-fw fab fa-markdown::secondary
|
||||||
|
- second-day::folder
|
||||||
|
- index.en.md::fa-fw fab fa-markdown::secondary
|
||||||
|
- index.pir.md::fa-fw fab fa-markdown::secondary
|
||||||
|
- third-day.en.md::fa-fw fab fa-markdown::secondary
|
||||||
|
- third-day.pir.md::fa-fw fab fa-markdown::secondary
|
||||||
- _index.en.md::fa-fw fab fa-markdown::secondary
|
- _index.en.md::fa-fw fab fa-markdown::secondary
|
||||||
- _index.pir.md::fa-fw fab fa-markdown::secondary
|
- _index.pir.md::fa-fw fab fa-markdown::secondary
|
||||||
- themes::folder
|
- _index.en.md::fa-fw fab fa-markdown::secondary
|
||||||
- hugo-theme-relearn::folder
|
- _index.pir.md::fa-fw fab fa-markdown::secondary
|
||||||
- ...::folder
|
- themes::folder
|
||||||
- hugo.toml::file-alt::accent
|
- hugo-theme-relearn::folder
|
||||||
|
- ...::folder
|
||||||
|
- hugo.toml::file-alt::accent
|
||||||
````
|
````
|
||||||
|
|
||||||
## Translation by Content Directory
|
## Translation by Content Directory
|
||||||
@ -115,7 +114,6 @@ The theme also support [translations by content directory](https://gohugo.io/con
|
|||||||
2. Duplicate your content files into separate directories named by their language code:
|
2. Duplicate your content files into separate directories named by their language code:
|
||||||
|
|
||||||
````tree
|
````tree
|
||||||
- [PROJECT]
|
|
||||||
- content::folder
|
- content::folder
|
||||||
- en::folder
|
- en::folder
|
||||||
- log::folder
|
- log::folder
|
||||||
|
@ -8,20 +8,19 @@ weight = 1
|
|||||||
If you've followed the [Getting Started](introduction/quickstart) guide, your directory layout will look similar to this:
|
If you've followed the [Getting Started](introduction/quickstart) guide, your directory layout will look similar to this:
|
||||||
|
|
||||||
````tree
|
````tree
|
||||||
- [PROJECT]
|
- content::folder
|
||||||
- content::folder
|
- log::folder
|
||||||
- log::folder
|
- first-day::folder
|
||||||
- first-day::folder
|
|
||||||
- _index.md::fa-fw fab fa-markdown::secondary
|
|
||||||
- second-day::folder
|
|
||||||
- index.md::fa-fw fab fa-markdown::secondary
|
|
||||||
- third-day.md::fa-fw fab fa-markdown::secondary
|
|
||||||
- _index.md::fa-fw fab fa-markdown::secondary
|
- _index.md::fa-fw fab fa-markdown::secondary
|
||||||
|
- second-day::folder
|
||||||
|
- index.md::fa-fw fab fa-markdown::secondary
|
||||||
|
- third-day.md::fa-fw fab fa-markdown::secondary
|
||||||
- _index.md::fa-fw fab fa-markdown::secondary
|
- _index.md::fa-fw fab fa-markdown::secondary
|
||||||
- themes::folder
|
- _index.md::fa-fw fab fa-markdown::secondary
|
||||||
- hugo-theme-relearn::folder
|
- themes::folder
|
||||||
- ...::folder
|
- hugo-theme-relearn::folder
|
||||||
- hugo.toml::file-alt::accent
|
- ...::folder
|
||||||
|
- hugo.toml::file-alt::accent
|
||||||
````
|
````
|
||||||
|
|
||||||
Hugo uses a [union file system](https://gohugo.io/getting-started/directory-structure/#union-file-system), which lets you combine multiple directories.
|
Hugo uses a [union file system](https://gohugo.io/getting-started/directory-structure/#union-file-system), which lets you combine multiple directories.
|
||||||
|
@ -1 +1 @@
|
|||||||
7.5.0+9b85f89f21224e47b2355fda27888cbfc2e32ad0
|
7.5.0+0d71747e13e0d9d91321f28327447ea0b4310bcc
|
Loading…
x
Reference in New Issue
Block a user