mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
Refactoring, again.
Separate Generator and Processors. Place clear for upcoming changes about pages only websites powered by pelican !
This commit is contained in:
parent
d2a3b5380c
commit
c989db50c9
5 changed files with 189 additions and 205 deletions
|
|
@ -40,3 +40,13 @@ class Article(Page):
|
|||
|
||||
class Quote(Page):
|
||||
base_properties = ('author', 'date')
|
||||
|
||||
|
||||
def is_valid_content(content, f):
|
||||
try:
|
||||
content.check_properties()
|
||||
return True
|
||||
except NameError as e:
|
||||
print u" [info] Skipping %s: impossible to find informations about '%s'" % (f, e)
|
||||
return False
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue