Skip to content

post_list uses wrong criterion for post_type #3868

@jwise

Description

@jwise

Environment

Python Version:

Python 3.12.3 (main, Aug 14 2025, 17:47:21) [GCC 13.3.0] on linux

Nikola Version:

(venv) joshua@anima:~/work/joshuaweb-next/venv/nikola$ git log --oneline -5
7f235e065 (HEAD -> jwise/develop, jwise/jwise/develop) Add STRIP_EXTENSIONS config item
14d188828 (jwise/jwise/external_url, jwise/external_url) Add external_url metadata item, for off-site entries
e09ea7911 (origin/master, origin/HEAD, master) Fix flaky/platform-dependent test
c7b0e3a71 Add reference to markdown extensions docs. (#3854)
46919f494 Fix #3852 — fix data being installed site-packages

Operating System:

(venv) joshua@anima:~/work/joshuaweb-next/venv/nikola$ lsb_release -a
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 24.04.3 LTS
Release:	24.04
Codename:	noble

Description:

It seems that post-list uses post.use_in_feeds as the criterion for whether something is a post or a page. But this is not correct: a post that is_draft, for instance, will be shown as a page in this case (or an all)! post-list should more directly respect is_private, is_draft, etc., and should just use is_post for what the post_type is.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions