Last active
August 29, 2015 14:05
-
-
Save geckotang/8a6b786af5f1fed6cb38 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<% @pages.each do |page_file_name, page| %> | |
<dl> | |
<% @categories.each do |category| %> | |
<dt> | |
<% if page_file_name === category[1] %> | |
<% if file_name === category[1] %> | |
<a href="<%= category[1] %>"><b><%= category[0] %></b></a> | |
<% else %> | |
<a href="<%= category[1] %>"><%= category[0] %></a> | |
<% end %> | |
<% end %> | |
</dt> | |
<% end %> | |
<% if not page[:blocks].empty? %> | |
<dd> | |
<ul> | |
<% page[:blocks].each do |block| %> | |
<li><a href="<%= page_file_name%>#<%= block[:name].to_s %>"><%= block[:title].to_s %></a></li> | |
<% end %> | |
</ul> | |
</dd> | |
<% end %> | |
</dl> | |
<% end %> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
hologram用 _header.html(シンタックスハイライトのために拡張子をerbにしている)