Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Pelican 3.5 では、次のように記事を属性でソートできることを知っています。
ARTICLE_ORDER_BY = 'title'
しかし、ファイル名で注文したいと思います。各ファイルを開いて属性を編集するよりも、ファイル名を変更する方がはるかに簡単です。
これを試して:
ARTICLE_ORDER_BY = 'filename'
また
ARTICLE_ORDER_BY = lambda x:os.path.basename(x.source_path or '')