Fix up content

This commit is contained in:
jmsgrogan 2024-02-18 21:27:08 +00:00
parent 7ba077608c
commit 7de5cd52d2
7 changed files with 23 additions and 8 deletions

View file

@ -35,7 +35,8 @@ img {
margin:0 auto;
display: flex;
justify-content: center;
max-width:800px;
max-width:100%;
max-height:300px;
border-radius: 8px;
box-shadow: 0 4px 8px 0;
}
@ -146,7 +147,7 @@ input[type=submit] {
margin-top: 30px;
text-align: center;
font-size: 20px;
width: 50%;
width: 75%;
margin:0 auto;
font-family: GlacialIndifference;
}

View file

@ -7,6 +7,7 @@ urlpatterns = [
path("", views.index, name="index"),
path('login', views.login_view, name="login"),
path("home", views.home, name="home"),
path("afters", views.afters, name="afters"),
path("schedule", views.schedule, name="schedule"),
path("thingstodo", views.things_to_do, name="thingstodo"),
path("travel", views.travel, name="travel"),

View file

@ -27,7 +27,7 @@ _TEMPLATE = """
"""
def handler404(request, exception, template_name="404.html"):
page_names = ["home", "schedule", "thingstodo"]
page_names = ["home", "schedule", "thingstodo", "afters"]
working_path = request.path.lower()
if working_path and working_path[0] == "/":
working_path = working_path[1:]
@ -71,6 +71,10 @@ def login_view(request):
def home(request):
return get_page("Home")
@login_required(login_url="/")
def afters(request):
return get_page("Afters")
def get_page_header(site: Site):
pages = site.page_set.order_by("priority").filter(navigable=True)