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
|
@ -59,6 +59,7 @@ INSTALLED_APPS = [
|
|||
'django.contrib.admin',
|
||||
'django.contrib.auth',
|
||||
'django.contrib.contenttypes',
|
||||
'django.contrib.humanize',
|
||||
'django.contrib.sessions',
|
||||
'django.contrib.sitemaps',
|
||||
'django.contrib.messages',
|
||||
|
@ -73,6 +74,7 @@ INSTALLED_APPS = [
|
|||
'meta',
|
||||
|
||||
'lemoncurry',
|
||||
'entries',
|
||||
'home',
|
||||
'lemonauth',
|
||||
'users',
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
import json
|
||||
from collections import namedtuple
|
||||
from os.path import join
|
||||
from types import SimpleNamespace
|
||||
|
||||
|
@ -8,6 +7,7 @@ from django.conf import settings
|
|||
from django.urls import reverse
|
||||
|
||||
from .. import breadcrumbs
|
||||
from entries import kinds
|
||||
|
||||
register = template.Library()
|
||||
cache = SimpleNamespace(package_json=None)
|
||||
|
@ -45,7 +45,11 @@ def site_name():
|
|||
|
||||
@register.inclusion_tag('lemoncurry/tags/nav.html')
|
||||
def nav_left(request):
|
||||
items = ()
|
||||
items = (MenuItem(
|
||||
label=k.plural,
|
||||
icon=k.icon,
|
||||
url='entries:'+k.plural+'_index'
|
||||
) for k in kinds.all)
|
||||
return {'items': items, 'request': request}
|
||||
|
||||
|
||||
|
|
|
@ -32,6 +32,7 @@ maps = {'sitemaps': sections}
|
|||
|
||||
urlpatterns = [
|
||||
url('', include('home.urls')),
|
||||
url('', include('entries.urls')),
|
||||
url('^.well-known/', include('wellknowns.urls')),
|
||||
url('^admin/', otp_admin_site.urls),
|
||||
url('^auth/', include('lemonauth.urls')),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue