mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
Fix translation feature. Add translation support to the notmyidea theme.
This commit is contained in:
parent
2f6300af46
commit
79576f25b6
9 changed files with 33 additions and 40 deletions
|
|
@ -159,6 +159,7 @@ def process_translations(content_list):
|
|||
Also, for each content_list item, it
|
||||
sets attribute 'translations'
|
||||
"""
|
||||
content_list.sort(key=attrgetter('slug'))
|
||||
grouped_by_slugs = groupby(content_list, attrgetter('slug'))
|
||||
index = []
|
||||
translations = []
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue