Commit 7afb509
Enable the language switcher for the Farsi edition
Mirrors QuantEcon/lecture-python-programming#490, which adds the same
block to the English source. Lists all four editions with
current_language set to fa so this edition renders as active, and
injects the hreflang alternates for the set.
English stays first in the list because the theme uses languages[0] as
the hreflang x-default target.
Verified with a local build against the theme: the switcher lists all
four languages with fa active.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>1 parent 9a337f4 commit 7afb509
1 file changed
Lines changed: 14 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
35 | 49 | | |
36 | 50 | | |
37 | 51 | | |
| |||
0 commit comments