Very, very rudimentary support for making h-entries: they don't look so good and don't appear on the homepage yet but it's a good start
This commit is contained in:
parent
430f8d9a1d
commit
950459cd5f
14 changed files with 161 additions and 2 deletions
15
entries/kinds.py
Normal file
15
entries/kinds.py
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
class Note:
|
||||
id = 'note'
|
||||
icon = 'fa fa-paper-plane'
|
||||
plural = 'notes'
|
||||
|
||||
|
||||
class Article:
|
||||
id = 'article'
|
||||
icon = 'fa fa-file-text'
|
||||
plural = 'articles'
|
||||
|
||||
|
||||
all = (Note, Article)
|
||||
from_id = {k.id: k for k in all}
|
||||
from_plural = {k.plural: k for k in all}
|
||||
Loading…
Add table
Add a link
Reference in a new issue