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:
Danielle McLean 2017-10-25 12:01:52 +11:00
parent 430f8d9a1d
commit 950459cd5f
Signed by: 00dani
GPG key ID: 5A5D2D1AFF12EEC5
14 changed files with 161 additions and 2 deletions

15
entries/kinds.py Normal file
View 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}