fix: update sub-products in footer

This commit is contained in:
mohamad
2026-05-20 16:21:04 +03:30
parent 24dd24e1c9
commit 4875d8b6c3
5 changed files with 128 additions and 13 deletions
+6 -3
View File
@@ -34,13 +34,16 @@
</ul>
</div>
{% if nav_main_products %}
{% if footer_sub_products %}
<div class="footer-links-col">
<h3 class="footer-heading">Products</h3>
<ul class="footer-links" role="list">
{% for product in nav_main_products %}
<li><a href="{{ product.get_absolute_url }}">{{ product.name }}</a></li>
{% for sub in footer_sub_products %}
<li><a href="{{ sub.get_absolute_url }}">{{ sub.name }}</a></li>
{% endfor %}
{% if footer_sub_products_has_more %}
<li><a href="/products/radiuma/">more</a></li>
{% endif %}
</ul>
</div>
{% endif %}
+17 -5
View File
@@ -177,11 +177,23 @@
<li class="article-citation-item">
<span class="citation-text">{{ citation.text }}</span>
{% if citation.url %}
<a href="{{ citation.url }}" class="citation-link" target="_blank" rel="noopener noreferrer" aria-label="Open citation source">
<svg width="13" height="13" viewBox="0 0 16 16" fill="none" aria-hidden="true">
<path d="M7 3H3a1 1 0 00-1 1v9a1 1 0 001 1h9a1 1 0 001-1V9M10 2h4m0 0v4m0-4L7 9" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
</svg>
</a>
<span class="citation-actions">
<a href="{{ citation.url }}" class="citation-link" target="_blank" rel="noopener noreferrer" aria-label="Open citation source">
<svg width="13" height="13" viewBox="0 0 16 16" fill="none" aria-hidden="true">
<path d="M7 3H3a1 1 0 00-1 1v9a1 1 0 001 1h9a1 1 0 001-1V9M10 2h4m0 0v4m0-4L7 9" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
</svg>
</a>
<button type="button" class="citation-copy" data-citation-url="{{ citation.url }}" aria-label="Copy citation link">
<svg class="citation-copy-icon" width="15" height="15" viewBox="0 0 16 16" fill="none" aria-hidden="true">
<rect x="5" y="5" width="8" height="8" rx="1" stroke="currentColor" stroke-width="1.5"/>
<path d="M3 11V3a1 1 0 011-1h8" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"/>
</svg>
<svg class="citation-copy-icon-done" width="13" height="13" viewBox="0 0 16 16" fill="none" aria-hidden="true">
<path d="M3.5 8.5L6.5 11.5L12.5 4.5" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
</svg>
<span class="citation-copy-feedback" aria-live="polite" hidden>Copied!</span>
</button>
</span>
{% endif %}
</li>
{% endfor %}