/
footer.erb
53 lines (51 loc) · 1.45 KB
/
footer.erb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<div class="footer-wrap">
<div class="container clearfix">
<nav>
<h1>Archives</h1>
<ul>
<% months.each do |m| %>
<li><%= link_to "#{m.year}年 #{m.month}月 (#{m.count})", "/#{m.year}/#{m.month}/" %></li>
<% end %>
</ul>
</nav>
<nav>
<h1>Category</h1>
<ul>
<% Category.all.each do |c| %>
<li><%= link_to c.title, c.link %></li>
<% end %>
</ul>
<p> </p>
<h1>Tags</h1>
<ul class="tagCloud clearfix">
<% tag_cloud :classes => %w(level6 level5 level4 level3 level2 level1), :sort => true do |tag, klass|%>
<%= %Q(<li class="#{klass}">#{link_to(tag.name, tag.link)}</li>) %>
<% end %>
</ul>
</nav>
<nav>
<hgroup>
<h1>Twitter Feed</h1>
<%= grace_twitter_widget %>
</hgroup>
</nav>
<nav>
<% if about = Snippet("about") %>
<h1>About me</h1>
<%= about.body %>
<ul class="social-icon clearfix">
<% [:rss,:twitter,:facebook,:github,:aboutme].each do |service| %>
<li>
<%= grace_social_tag service %>
<span><%= service.capitalize %></span>
</li>
<% end %>
</ul>
<p> </p>
<% end %>
<h1>Credits</h1>
<p>Powered by <a href="http://lokka.org/">Lokka</a></p>
<p>Use <a href="http://www.heroku.com/">Heroku</a> for hosting.</p>
</nav>
</div>
</div>