We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9f245fa commit 074bd04Copy full SHA for 074bd04
layout/_macro/sidebar.swig
@@ -42,7 +42,11 @@
42
43
{% if config.archive_dir != '/' and site.posts.length > 0 %}
44
<div class="site-state-item site-state-posts">
45
+ {% if theme.menu.archives %}
46
<a href="{{ url_for(theme.menu.archives) }}">
47
+ {% else %}
48
+ <a href="{{ url_for(config.archive_dir) }}">
49
+ {% endif %}
50
<span class="site-state-item-count">{{ site.posts.length }}</span>
51
<span class="site-state-item-name">{{ __('state.posts') }}</span>
52
</a>
0 commit comments