Skip to content

Commit

Permalink
FIX: archive link not worked if no archive menu.
Browse files Browse the repository at this point in the history
Issue #1823
  • Loading branch information
ivan-nginx authored Aug 22, 2017
1 parent 9f245fa commit 074bd04
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions layout/_macro/sidebar.swig
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,11 @@

{% if config.archive_dir != '/' and site.posts.length > 0 %}
<div class="site-state-item site-state-posts">
{% if theme.menu.archives %}
<a href="{{ url_for(theme.menu.archives) }}">
{% else %}
<a href="{{ url_for(config.archive_dir) }}">
{% endif %}
<span class="site-state-item-count">{{ site.posts.length }}</span>
<span class="site-state-item-name">{{ __('state.posts') }}</span>
</a>
Expand Down

0 comments on commit 074bd04

Please sign in to comment.