Last active
December 17, 2016 09:53
-
-
Save csmr/d031a51638a4bac177357b249d5dd146 to your computer and use it in GitHub Desktop.
Getting a base done for nanoc 4.3.7 site
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
<article> | |
<time datetime="<%= @item[:datetime] %>"><%= @item[:time] %></time> | |
<h1><%= @item[:title] %></h1> | |
<%= yield %> | |
</article> | |
... | |
<aside id="sidebar"> | |
<h2>Index</h2> | |
<ul> | |
<li> | |
<a href="./">Home</a> | |
</li> | |
<% @uitems = @items.find_all('/posts/*').sort_by {|i| i[:datetime] } %> | |
<% @uitems.reverse_each do |item| %> | |
<li> | |
<a href=".<%= item.path %>"><%= item[:title] %></a> | |
</li> | |
<% end %> | |
</ul> | |
</aside> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment