added link for 'about my tools' flatpage to header
parent
cfe4c152b8
commit
0327cb1525
|
|
@ -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>
|
||||
|
|
|
|||
11
core/urls.py
11
core/urls.py
|
|
@ -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"),
|
||||
]
|
||||
|
|
|
|||
Loading…
Reference in New Issue