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

12
entries/urls.py Normal file
View 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')