Skip to content

Commit 074bd04

Browse files
authored
FIX: archive link not worked if no archive menu.
Issue #1823
1 parent 9f245fa commit 074bd04

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

layout/_macro/sidebar.swig

+4
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,11 @@
4242

4343
{% if config.archive_dir != '/' and site.posts.length > 0 %}
4444
<div class="site-state-item site-state-posts">
45+
{% if theme.menu.archives %}
4546
<a href="{{ url_for(theme.menu.archives) }}">
47+
{% else %}
48+
<a href="{{ url_for(config.archive_dir) }}">
49+
{% endif %}
4650
<span class="site-state-item-count">{{ site.posts.length }}</span>
4751
<span class="site-state-item-name">{{ __('state.posts') }}</span>
4852
</a>

0 commit comments

Comments
 (0)