Skip to content

Commit cafbb05

Browse files
authored
Merge pull request creativecommons#486 from creativecommons/update_current_blog_link
Update current blog link in the series.
2 parents 2f04141 + 6b9ad6f commit cafbb05

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

themes/vocabulary_theme/templates/blog-post.html

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,15 @@ <h4 class="category-title">Categories</h4>
5656
<h5 class="title">Posts in the {{ series.name }} series</h5>
5757
<ul class="posts">
5858
{% for post in series.children.order_by('pub_date') %}
59-
<li>
60-
<i class="icon circle-filled"></i><a href="{{ post|url }}">{{ post.title }}</a>
61-
</li>
59+
{% if post.path==this.path %}
60+
<li class="has-color-dark-slate-gray">
61+
<i class="icon circle-filled"></i>{{ post.title }}
62+
</li>
63+
{% else %}
64+
<li>
65+
<i class="icon circle-filled"></i><a href="{{ post|url }}">{{ post.title }}</a>
66+
</li>
67+
{% endif %}
6268
{% endfor %}
6369
</ul>
6470
</div>

0 commit comments

Comments
 (0)