mirror of
https://github.com/vinta/awesome-python.git
synced 2026-05-24 06:36:06 +08:00
feat(website): show parent category breadcrumb on subcategory pages
Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -24,6 +24,11 @@
|
||||
</nav>
|
||||
|
||||
<div class="category-hero-copy">
|
||||
{% if page_kind == "subcategory" and parent_category %}
|
||||
<p class="category-breadcrumb">
|
||||
<a href="/categories/{{ parent_category.slug }}/">{{ parent_category.name }}</a>
|
||||
</p>
|
||||
{% endif %}
|
||||
<h1>{{ category.name }}</h1>
|
||||
{% if category.description_html %}
|
||||
<p class="category-subtitle">{{ category.description_html | safe }}</p>
|
||||
|
||||
Reference in New Issue
Block a user