getpelican / pelican

Static site generator that supports Markdown and reST syntax. Powered by Python.
https://getpelican.com
GNU Affero General Public License v3.0
12.58k stars 1.81k forks source link

Unknown status 'hidden' for file ***.md #2916

Closed s-nt-s closed 3 years ago

s-nt-s commented 3 years ago

Issue

pelican 4.6.0 doesn't recognize hidden status for posts.

$ head -n 5 content/posts/temario/BOE-A-2019-9062/interna.md 
---
title: 'Temario GSI (interna)'
Status: hidden
summary: '[BOE-A-2019-9062](https://boe.es/diario_boe/txt.php?id=BOE-A-2019-9062) - Anexo X'
---
$ head -n 5 content/posts/temario/BOE-A-2019-9062/libre.md 
---
title: 'Temario GSI (libre)'
Status: hidden
summary: '[BOE-A-2019-9062](https://boe.es/diario_boe/txt.php?id=BOE-A-2019-9062) - Anexo IX'
---
$ make publish 
pelican /home/u/wks/gsi/content -o /home/u/wks/gsi/output -s /home/u/wks/gsi/publishconf.py 
ERROR: Unknown status 'hidden' for file /home/u/wks/gsi/content/posts/temario/BOE-A-2019-9062/interna.md, skipping it.
ERROR: Unknown status 'hidden' for file /home/u/wks/gsi/content/posts/temario/BOE-A-2019-9062/libre.md, skipping it.
avaris commented 3 years ago

It's because this feature was added after 4.6.0 and not released yet. Docs for latest on RTD refers to the current master and may include unreleased features. If you switch to stable (bottom-left arrow), you won't see that section. I know, it is a bit confusing since latest also shows version 4.6.0.

justinmayer commented 3 years ago

Hidden status for articles is now supported in the just-released Pelican 4.7.