from django.urls import path
from . import views

app_name = 'blog'
urlpatterns = [
    path('index/', views.IndexView.as_view(), name = 'index'),
    path('', views.IndexView.as_view(), name = 'index'),
    path('post/<int:pk>/', views.PostDetailView.as_view(), name = 'detail'),
    path('archives/<int:year>/<int:month>', views.ArchivesView.as_view(), name = 'archives'),
    path('category/<int:pk>', views.CategoryView.as_view(), name = 'category'),
    path('tag/<int:pk>', views.TagView.as_view(), name = 'tag'),
    path('blog/', views.BlogView.as_view(), name = 'blog'),
    # path('contact/', views.Contact, name = 'contact'),
    path('about/', views.About, name = 'about'),
]