forked from github/pelican
parent
bb0ed26fdd
commit
4201256a5b
6 changed files with 56 additions and 7 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue