summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf.net>2024-03-09 10:53:42 -0600
committerluxagraf <sng@luxagraf.net>2024-03-09 10:53:42 -0600
commit8e0b13c159db275b2cbc521ded9dfd5d6855a2d5 (patch)
treee296e245c7c8c07ccbf854e4ec08fd9c91501556
parent6ad149c399104c9efd69a21ae9bcfdcc323b9634 (diff)
posts: changed some urls and build script
-rw-r--r--app/posts/build.py4
-rw-r--r--app/posts/models.py3
-rw-r--r--app/posts/urls/range_urls.py4
-rw-r--r--app/posts/views/essay_views.py2
-rw-r--r--templates/base.html2
5 files changed, 9 insertions, 6 deletions
diff --git a/app/posts/build.py b/app/posts/build.py
index 23d67d5..fdfcd1a 100644
--- a/app/posts/build.py
+++ b/app/posts/build.py
@@ -119,6 +119,10 @@ class BuildEssays(BuildNew):
def build(self):
self.build_list_view(
+ base_path=reverse("range:list"),
+ paginate_by=50
+ )
+ self.build_list_view(
base_path=reverse("essay-list:list"),
paginate_by=50
)
diff --git a/app/posts/models.py b/app/posts/models.py
index 7870b35..11ad509 100644
--- a/app/posts/models.py
+++ b/app/posts/models.py
@@ -73,7 +73,6 @@ class PostType(models.IntegerChoices):
SRC = 3, ('src')
JRNL = 4, ('jrnl')
FIELD_NOTE = 5, ('field note')
- GUIDE = 6, ('guide')
FILM = 7, ('film')
@@ -187,7 +186,7 @@ class Post(models.Model):
@property
def sitemap_priority(self):
- if self.post_type in [2,4,5]:
+ if self.post_type in [2,3,4]:
return 1.0
else:
return 0.7
diff --git a/app/posts/urls/range_urls.py b/app/posts/urls/range_urls.py
index e035a25..57d72a7 100644
--- a/app/posts/urls/range_urls.py
+++ b/app/posts/urls/range_urls.py
@@ -15,11 +15,11 @@ urlpatterns = [
r'',
views.RangeListView.as_view(),
{'page':1},
- name="range-list"
+ name="list"
),
path(
r'<int:page>',
views.RangeListView.as_view(),
- name="range-list"
+ name="list"
),
]
diff --git a/app/posts/views/essay_views.py b/app/posts/views/essay_views.py
index 3c28834..76a022c 100644
--- a/app/posts/views/essay_views.py
+++ b/app/posts/views/essay_views.py
@@ -66,7 +66,7 @@ class EssayDetailView(LuxDetailView):
related.append(model.objects.get(slug=obj.slug, pub_date=obj.pub_date))
context['related'] = related
context['breadcrumbs'] = ('Range',)
- context['crumb_url'] = reverse('range:range-list')
+ context['crumb_url'] = reverse('range:list')
return context
def get_template_names(self):
diff --git a/templates/base.html b/templates/base.html
index c63152d..4edf2d2 100644
--- a/templates/base.html
+++ b/templates/base.html
@@ -28,7 +28,7 @@
</div>
<nav>
<a class="nav-item smcaps" href="{% url "jrnl:list" %}" title="Stories of life on the road.">Friends</a>
- <a class="nav-item smcaps" href="{% url "range:range-list" %}" title="Life and how to live it">Range</a>
+ <a class="nav-item smcaps" href="{% url "range:list" %}" title="Life and how to live it">Range</a>
<!--<a class="nav-item smcaps" href="{% url "guides:guide-list" %}" title="Guides">Guides</a> -->
<a class="nav-item smcaps" href="/about" title="About Scott">About</a>
<!--