PageFactory (Kirby Plugin)

Examples:
Language-Specific Content

This here is text without any language-specifier – it will always be shown.

For demonstration purposes, English text is shown in green, German in pink (French in black where defined at all).

→ Switch languages to see effect: [ de Deutsch en English fr Français ]
→ Currently active: en

Language Selection via Injected Attributes

Code:

### English {: !lang=en }
### Deutsch {: !lang=de }

Output:

English

Note: see page Injected Attributes for reference.

 

Language-specific DIV Blocks

Code:

@@@ !lang=en
Some English text…
@@@ !lang=de
Irgend ein Deutscher Text…
@@@

Output:

Some English text in a language-dependent DIV…

 

Language-aware Variable

Code:

{{ pfy-opens-in-new-win }}

Output:

Opens in new window

Language-specific Files

The following content is rendered from a separate language specific source file:

Deutsche Datei

Name dieser Datei: example.de.md

Und dies ist Text, der aus einer sprach-spezifischen Datei stammt.

English File

Name of this file: example.en.md

And this is English text from a language specific file…

PageFactory