getnikola / nikola

A static website and blog generator
https://getnikola.com/
MIT License
2.62k stars 450 forks source link

SHOW_UNTRANSLATED_POSTS=False does not affect the post_list shortcode #3678

Open saadatm opened 1 year ago

saadatm commented 1 year ago

Environment

Python Version: 3.10.10

Nikola Version: 8.2.3

Operating System: Arch Linux

Description:

I have a bilingual (English and Urdu) blog, and recently I published an Urdu post without an English translation. In my conf.py I have set SHOW_UNTRANSLATED_POSTS = False, and it works as expected on the archive page (i.e. that Urdu post does not appear on the English archive page). However, I am also using the post_list shortcode elsewhere, and that Urdu post does show up in its output. It would be great if the post_list shortcode also respects SHOW_UNTRANSLATED_POSTS = False, and alters its output accordingly.