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
12
entries/urls.py
Normal file
12
entries/urls.py
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
from django.conf.urls import url
|
||||
from . import kinds, views
|
||||
from lemoncurry import breadcrumbs
|
||||
|
||||
app_name = 'entries'
|
||||
urlpatterns = []
|
||||
for k in kinds.all:
|
||||
index = k.plural + '_index'
|
||||
urlpatterns.extend((
|
||||
url(k.plural, views.index, name=index, kwargs={'kind': k}),
|
||||
))
|
||||
breadcrumbs.add(app_name + ':' + index, label=k.plural, parent='home:index')
|
||||
Loading…
Add table
Add a link
Reference in a new issue