2
0
Fork 0

Compare commits

...

2 Commits

Author SHA1 Message Date
Luca 54296ebcf7 refactor: move font, logo, style to core/static/
continuous-integration/drone/push Build is passing Details
2024-05-03 22:35:34 +02:00
Luca cfbc4ef61c feat: context processor for footer nav 2024-05-03 22:32:20 +02:00
7 changed files with 4 additions and 9 deletions

View File

@ -1,6 +1,6 @@
# shiftregister
![kontakt logo with its left half rotated 180 degrees, resembling the left shift operator](assets/tonkakt.svg)
![kontakt logo with its left half rotated 180 degrees, resembling the left shift operator](shiftregister/core/static/tonkakt.svg)
## [CI Mirror](https://git.luj0ga.de/kontakt/shiftregister) / [Drone CI](https://ci.luj0ga.de/kontakt/shiftregister)

View File

@ -9,9 +9,7 @@ def nav(request):
for item in items
]
return {
"nav_items": nav_items,
}
return {"nav_items": nav_items}
def footer_nav(request):
@ -22,4 +20,4 @@ def footer_nav(request):
for item in items
]
return {"nav_items": nav_items}
return {"footer_nav_items": nav_items}

View File

Before

Width:  |  Height:  |  Size: 903 B

After

Width:  |  Height:  |  Size: 903 B

View File

@ -86,6 +86,7 @@ TEMPLATES = [
"django.contrib.auth.context_processors.auth",
"django.contrib.messages.context_processors.messages",
"shiftregister.app.context_processors.proc",
"shiftregister.core.context_processors.footer_nav",
"shiftregister.core.context_processors.nav",
],
},
@ -147,10 +148,6 @@ USE_TZ = True
STATIC_ROOT = "/opt/shiftregister/static"
STATIC_URL = "static/"
STATICFILES_DIRS = [
BASE_DIR / "assets",
]
# Default primary key field type
# https://docs.djangoproject.com/en/4.0/ref/settings/#default-auto-field