added link for 'about my tools' flatpage to header

pull/3/head
Calum Andrew Morrell 2025-11-02 14:33:07 +00:00
parent cfe4c152b8
commit 0327cb1525
2 changed files with 8 additions and 5 deletions

View File

@ -10,6 +10,8 @@
href="{% url 'core:about-me' %}">about me</a>
<a class="{% if 'about-website' in request.path %}text-cyan-400 uppercase{% endif %} hover:text-red-400"
href="{% url 'core:about-website' %}">about this website</a>
<a class="{% if 'about-tools' in request.path %}text-cyan-400 uppercase{% endif %} hover:text-red-400"
href="{% url 'core:about-tools' %}">about my tools</a>
<a class="{% if 'contact-me' in request.path %}text-cyan-400 uppercase{% endif %} hover:text-red-400"
href="{% url 'core:contact-me' %}">contact me</a>
</nav>

View File

@ -3,11 +3,12 @@ from django.urls import path
from . import views
app_name = 'core'
app_name = "core"
urlpatterns = [
path('', views.Homepage.as_view(), name='homepage'),
path('about/me/', flatpage, {'url': '/about/me/'}, name='about-me'),
path('about/website/', flatpage, {'url': '/about/website/'}, name='about-website'),
path('about/contact/', flatpage, {'url': '/about/contact/'}, name='contact-me'),
path("", views.Homepage.as_view(), name="homepage"),
path("about/me/", flatpage, {"url": "/about/me/"}, name="about-me"),
path("about/website/", flatpage, {"url": "/about/website/"}, name="about-website"),
path("about/contact/", flatpage, {"url": "/about/contact/"}, name="contact-me"),
path("about/tools/", flatpage, {"url": "/about/tools/"}, name="about-tools"),
]