From 0761fdd7cb8fa022b717f20fb121a734494644c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yaroslav=20de=20la=20Pe=C3=B1a?= Date: Tue, 9 Oct 2018 11:35:10 +0300 Subject: fix dynamic loading for uncategorized posts --- weblog/templates/weblog/index.html | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'weblog/templates') diff --git a/weblog/templates/weblog/index.html b/weblog/templates/weblog/index.html index 2fab730..4808ec2 100755 --- a/weblog/templates/weblog/index.html +++ b/weblog/templates/weblog/index.html @@ -132,7 +132,11 @@ if (current_page != last_page){ current_page++; {% if category %} + {% if category == 'misc' %} + var url = "{% url 'weblog:GetCategoryPosts' category_slug=category nxtpage=current_page %}"; + {% else %} var url = "{% url 'weblog:GetCategoryPosts' category_slug=category.slug nxtpage=current_page %}"; + {% endif %} {% elif year %} {% if month_num %} var url = "{% url 'weblog:GetArchivePosts' year=year month=month_num nxtpage=current_page %}"; -- cgit v1.2.3