aboutsummaryrefslogtreecommitdiff
path: root/weblog
diff options
context:
space:
mode:
authorYaroslav de la Peña <contact@yaroslavps.com>2018-10-09 11:35:10 +0300
committerYaroslav de la Peña <contact@yaroslavps.com>2018-10-09 11:35:10 +0300
commit0761fdd7cb8fa022b717f20fb121a734494644c9 (patch)
treea48ddcea215d3788e2ff32993b661263c2c50671 /weblog
parent59b9260b28d330f89cb493a7c0ebfbf177be9e8c (diff)
downloadw3blog-0761fdd7cb8fa022b717f20fb121a734494644c9.tar.gz
w3blog-0761fdd7cb8fa022b717f20fb121a734494644c9.zip
fix dynamic loading for uncategorized posts
Diffstat (limited to 'weblog')
-rwxr-xr-xweblog/templates/weblog/index.html4
1 files changed, 4 insertions, 0 deletions
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 %}";