Skip to content

Commit

Permalink
Added widgets on footer (search, categories and tagcloud)
Browse files Browse the repository at this point in the history
  • Loading branch information
dorianneto committed May 10, 2016
1 parent ccd8093 commit 7d8118e
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 2 deletions.
8 changes: 8 additions & 0 deletions layout/_widgets/categories.ejs
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<% if (site.categories.length){ %>
<div class="widget-wrap">
<h3 class="widget-title"><%= __('categories') %></h3>
<div class="widget">
<%- list_categories({show_count: theme.show_count}) %>
</div>
</div>
<% } %>
8 changes: 8 additions & 0 deletions layout/_widgets/tagcloud.ejs
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<% if (site.tags.length){ %>
<div class="widget-wrap">
<h3 class="widget-title"><%= __('tagcloud') %></h3>
<div class="widget tagcloud">
<%- tagcloud() %>
</div>
</div>
<% } %>
9 changes: 7 additions & 2 deletions layout/index.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,12 @@
<% }); %>

<%- partial('_partial/pagination') %>

<%- search_form({button: 'buscar'}) %>

<%- partial('_widgets/categories') %>

<%- partial('_widgets/tagcloud') %>
</div>
</div>
</div>

</div>
18 changes: 18 additions & 0 deletions source/css/base.styl
Original file line number Diff line number Diff line change
Expand Up @@ -335,3 +335,21 @@ img::-moz-selection

body
webkit-tap-highlight-color brand-primary

.search-form
margin-top 40px
background: #fff
border 1px solid #ddd
padding: 5px 15px

.search-form-input
border: none
width: 100%
outline: none
&::-webkit-search-results-decoration
&::-webkit-search-cancel-button
-webkit-appearance: none

.search-form-submit
position: absolute
display none

0 comments on commit 7d8118e

Please sign in to comment.