1
0
Fork 0
forked from github/pelican

Add disabled status for #3304 (#3305)

This commit is contained in:
GiovanH 2024-09-12 06:28:51 -05:00 committed by GitHub
commit 4201256a5b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 56 additions and 7 deletions

View file

@ -15,7 +15,7 @@ from docutils.writers.html4css1 import HTMLTranslator, Writer
from pelican import rstdirectives # NOQA
from pelican.cache import FileStampDataCacher
from pelican.contents import Author, Category, Page, Tag
from pelican.contents import Author, Category, Page, SkipStub, Tag
from pelican.plugins import signals
from pelican.utils import file_suffix, get_date, pelican_open, posixize_path
@ -669,6 +669,9 @@ class Readers(FileStampDataCacher):
)
context_signal.send(context_sender, metadata=metadata)
if metadata.get("status") == "skip":
content_class = SkipStub
return content_class(
content=content,
metadata=metadata,