Skip to content

Commit

Permalink
changed blog dropdown menu options and blog pagination per committee'…
Browse files Browse the repository at this point in the history
…s march 3-4 requests
  • Loading branch information
JohnMulligan committed Apr 5, 2023
1 parent 8443ec7 commit 9876755
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
6 changes: 3 additions & 3 deletions voyages/apps/blog/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

class PostList(generic.ListView):
template_name = 'blog/index.html'
paginate_by = 10
paginate_by = 12

base_query = Post.objects.select_related()

Expand Down Expand Up @@ -124,15 +124,15 @@ def get_context_data(self, **kwargs):

class AuthorList(generic.ListView):
template_name = 'blog/authors.html'
paginate_by = 10
paginate_by = 12

def get_queryset(self):
return Author.objects.order_by('name')


class InstitutionList(generic.ListView):
template_name = 'blog/institutions.html'
paginate_by = 10
paginate_by = 12

def get_queryset(self):
return Institution.objects.order_by('name')
Expand Down
6 changes: 6 additions & 0 deletions voyages/templates/topbar.html
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,14 @@
<a class="nav-link dropdown-toggle" data-toggle="dropdown" href="#" role="button" aria-haspopup="true" aria-expanded="false" >{% trans 'Blog' %}</a>
<div class="dropdown-menu dropdown-menu-right">
<a class="dropdown-item" href="{% url 'blog:blog' %}">{% trans "All Posts" %}</a>
<!--
<a class="dropdown-item" href="{% url 'blog:institutions' %}">{% trans "Institutions" %}</a>
<a class="dropdown-item" href="{% url 'blog:authors' %}">{% trans "Authors" %}</a>
-->
<a class="dropdown-item" href="{% url 'blog:tag' tag='intro-maps' %}">{% trans "Maps" %}</a>
<a class="dropdown-item" href="{% url 'blog:tag' tag='news' %}">{% trans "News" %}</a>
<a class="dropdown-item" href="{% url 'blog:tag' tag='texas-bound' %}">{% trans "Texas Bound" %}</a>
<!-- <a class="dropdown-item" href="{% url 'blog:tag' tag='intro-maps' %}">{% trans "Voyage Stories" %}</a> -->

</div>
</li>
Expand Down

0 comments on commit 9876755

Please sign in to comment.