Skip to content

Commit d8992c0

Browse files
committed
templates: Drop redundant Archive sidebar on the blog listing page
The theme's blog.html shows every post twice on /blog/: once in the main content list, and again in a sidebar labeled 'Archive'. That's confusing now that News has been folded in and the list is a bit longer. The main list already serves as the archive, so just empty out the sidebar block. Also fix a stale .gitignore entry left over from when the site lived under a site/ subdirectory; it was ignoring site/public/ instead of the public/ dir that zola build actually produces at the repo root. Assisted-by: AI
1 parent 07c0c2f commit d8992c0

2 files changed

Lines changed: 10 additions & 1 deletion

File tree

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
site/public/
1+
public/
22
.idea
33

44
.DS_Store

templates/blog.html

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{% extends "juice/templates/blog.html" %}
2+
3+
{# The theme's default sidebar just repeats the same post list shown in the
4+
main content above as an "Archive" - drop it instead of showing every
5+
post twice on the same page. #}
6+
{% block sidebar %}
7+
<div class="sidebar">
8+
</div>
9+
{% endblock sidebar %}

0 commit comments

Comments
 (0)