Permalink
Browse files

Add theme.index_widgets to display widgets at the bottom of index pag…

…es (pagination == 2)
  • Loading branch information...
ideoplex committed Nov 10, 2015
1 parent cf1583a commit ce3fd448252320d4c40c102ff0d729d0e945a72d
Showing with 11 additions and 0 deletions.
  1. +6 −0 _config.yml
  2. +5 −0 layout/_partial/archive.ejs
View
@@ -17,6 +17,12 @@ widgets:
- archive
#- recent_posts
# display widgets at the bottom of index pages (pagination == 2)
index_widgets:
# - category
# - tagcloud
# - archive
# widget behavior
archive_type: 'yearly'
show_count: false
@@ -12,6 +12,11 @@
}) %>
</nav>
<% } %>
<% if ( theme.index_widgets !== null ){ %>
<% theme.index_widgets.forEach(function(widget){ %>
<%- partial('_widget/' + widget) %>
<% }) %>
<% } %>
<% } else { %>
<% var last; %>
<% page.posts.each(function(post, i){ %>

0 comments on commit ce3fd44

Please sign in to comment.