Texts
Pelican - Browse Articles by Language
Recently I wrote a pelican plugin called pelican-langcategory to let visitors can browse articles by language. As an result, you can view all english articles on my blog as well as the chinese ones.
In case you don’t know what pelican is, it is a popular static blog generator which powered by Python. You can learn more at the Pelican homepage.
I came up with the idea to let visitors browse articles by language, but found the current version of Pelican is not capable of doing this. There are other people calling for this feature, and I was glad to see a comrade there, so I decided to build it. The plugin itself was easy to implement once I looked into basic Pelican internals. I started hacking into Pelican first, but soon found that a plugin would be a neater solution.
The default Pelican language principle, where a blog has a default language and articles in another language are mostly treated as translations, is not a good fit for bloggers who write independently in more than one language. If this is what you are looking for, pelican-langcategory was made for you.
Hope you like it. I’m looking forward to feedback. For more information on installation, usage, or discussion, please go to pelican-langcategory on GitHub.