mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
Add translation metadata support.
Allows user to control which posts are the translations independently of the DEFAULT_LANG setting.
This commit is contained in:
parent
e14a658672
commit
eb640b09e6
3 changed files with 55 additions and 4 deletions
|
|
@ -392,6 +392,19 @@ identifier. If you'd rather not explicitly define the slug this way, you must
|
|||
then instead ensure that the translated article titles are identical, since the
|
||||
slug will be auto-generated from the article title.
|
||||
|
||||
If you do not want the original version of one specific article to be detected
|
||||
by the ``DEFAULT_LANG`` setting, use the ``translation`` metadata to specify
|
||||
which posts are translations::
|
||||
|
||||
Foobar is not dead
|
||||
##################
|
||||
|
||||
:slug: foobar-is-not-dead
|
||||
:lang: en
|
||||
:translation: true
|
||||
|
||||
That's true, foobar is still alive!
|
||||
|
||||
Syntax highlighting
|
||||
-------------------
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue