Skip to content

Commit

Permalink
Add blog URLs
Browse files Browse the repository at this point in the history
  • Loading branch information
pablodiegoss committed May 26, 2024
1 parent e29f5c6 commit c721e43
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/blog/urls.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# blog/urls.py

from django.urls import path
from blog import views

urlpatterns = [
path("", views.blog_index, name="blog_index"),
path("post/<int:pk>/", views.blog_detail, name="blog_detail"),
path("category/<category>/", views.blog_category, name="blog_category"),
]
3 changes: 3 additions & 0 deletions src/core/jinja2/core/useful_links.jinja2
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
<div class="">
<a href="{{ url('collection') }}">{{ _('Collection') }}</a>
</div>
<div class="">
<a href="{{ url('blog_index') }}">{{ _('Blog') }}</a>
</div>
<div class="">
<a href="{{ url('profile') }}">{{ _('My Stuff') }}</a>
</div>
Expand Down

0 comments on commit c721e43

Please sign in to comment.