from django.urls import path, re_path
from django.conf import settings
from django.conf.urls.static import static
import thewind.views as views
from thewind.views import BlogFeed


urlpatterns = [
    re_path(r'^(?P<page_id>[0]*)$', views.index, name='index'),
    path('feeds/', BlogFeed(), name='feed'),
    # path('', views.index, name='index'),
    path('books/', views.book, name='book'),
    path('links/', views.link, name='link'),
    path('about/', views.about, name='about'),
    path('next/', views.nextpage, name='next'),
    path('mottos/', views.mottos, name='motto'),
    re_path(r'articles/(?P<page_id>[0-9]*)/*$', views.index, name='article'),
    re_path(r'article/like/(?P<article_id>[0-9]*)/*$', views.article_like, name='article_like'),
    re_path(r'article/(?P<article_id>[0-9]*)/*$', views.article_detail, name='article_detail'),
    re_path(r'motto/(?P<motto_id>[0-9]*)/*$', views.motto_detail, name='motto_detail'),
    re_path(r'category/(?P<category_id>[0-9]*)/*$', views.category, name='category'),
    re_path(r'tag/(?P<tag_id>[0-9]*)/*$', views.tag, name='category'),
]



urlpatterns += static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)
