From 61ac134ab6fc68166b2fddeec16914d28e40aa26 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Fri, 22 Dec 2017 21:05:44 -0500 Subject: Re-do CSS. I also add a few
tags, and added classes to a couple of s. I moved the dnd CSS to a separate file that is currently unused. I assume I'll add it back soon. --- lib/page_index.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'lib/page_index.rb') diff --git a/lib/page_index.rb b/lib/page_index.rb index 43bf367..585fd57 100644 --- a/lib/page_index.rb +++ b/lib/page_index.rb @@ -57,7 +57,7 @@ class IndexPage < LocalPage def index_link(cururl, depth) ret = '' unless depth <= 1 - ret += "[#{atom_title}](#{cururl.route_to(url)})\n\n" + ret += "
[#{atom_title}](#{cururl.route_to(url)})\n\n" end for page in index_pages.select{|page|not page.is_a?(IndexPage)}.sort_by{|page|page.atom_published} ret += page.index_link(cururl, depth+1) @@ -67,6 +67,9 @@ class IndexPage < LocalPage ret += page.index_link(cururl, depth+1) end ret += "\n" + unless depth <= 1 + ret += "
\n\n" + end return ret.gsub(/\n\n+/, "\n\n") end def index_title -- cgit v1.2.3