diff --git a/app/event/views.py b/app/event/views.py index 52d6bf6..4e1e329 100644 --- a/app/event/views.py +++ b/app/event/views.py @@ -7,13 +7,14 @@ from .models import Event from ..page.models import Page -def index(request, slug=''): +def events(request, slug=''): context = {} context['settings'] = settings context['events'] = Event.objects.all().order_by('position') context['postscript'], c = Page.objects.get_or_create(slug='postscript') context['intro'], c = Page.objects.get_or_create(slug='intro') - return render(request, 'index.html', context) + return render(request, 'events.html', context) + def timeline(request): context = {} diff --git a/app/static/css/partials/_layout.scss b/app/static/css/partials/_layout.scss index b916f91..ba7605e 100644 --- a/app/static/css/partials/_layout.scss +++ b/app/static/css/partials/_layout.scss @@ -6,6 +6,11 @@ margin: auto; } +.reference { + color: #333; + font-size: 11px; +} + p { } diff --git a/app/templates/index.html b/app/templates/events.html similarity index 100% rename from app/templates/index.html rename to app/templates/events.html diff --git a/app/urls.py b/app/urls.py index fa9e09d..4e9dd1a 100755 --- a/app/urls.py +++ b/app/urls.py @@ -22,7 +22,7 @@ from .event import views as event_views urlpatterns = [ path(settings.URL_PREFIX + 'admin/', admin.site.urls), - path(settings.URL_PREFIX + 'timeline/', event_views.timeline, name='timeline'), - path(settings.URL_PREFIX + '', event_views.index, name='index'), - path(settings.URL_PREFIX + '', event_views.index, name='index'), + path(settings.URL_PREFIX + 'events/', event_views.events, name='event'), + path(settings.URL_PREFIX + 'events/', event_views.events, name='events'), + path(settings.URL_PREFIX + '', event_views.timeline, name='timeline'), ]