Updated the Sidebar

updated the sidebar on the News page to show new updates
with_posts
surya 2024-07-07 11:45:36 +05:30
parent 28a1d92549
commit 1eac0d0b97
4 changed files with 3 additions and 3 deletions

View File

@ -34,7 +34,7 @@ def news(request):
ordering = (ordering,)
queryset = queryset.order_by(*ordering)
return render(request, 'blog/home.html', { context_object_name: queryset, 'topics': ['Django', 'UkraineConflict', 'TechBlog'] })
return render(request, 'blog/home.html', { context_object_name: queryset, 'topics': ['No Updates...'] })
class BlogDetailView(DetailView):

View File

@ -41,7 +41,7 @@
<body>
<nav class="navbar navbar-expand-lg navbar-dark" style="background-color: #000;">
<a class="navbar-brand" href="/">
<img src="/logo.jpg" alt="BH Logo" height="40"> Beyond Heroes
<img src="{% static 'logo.png' %}" alt="BH Logo" height="40"> Beyond Heroes
</a>
<!-- <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>

View File

@ -31,7 +31,7 @@
<div class="col-lg-4">
<div class="card mb-4">
<div class="card-header">
Trending Topics
Updates
</div>
<div class="card-body">
<ul class="list-group list-group-flush">