From fe33e4d10007da73c33698f9369460c2c37f1933 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Mon, 9 Jan 2017 21:33:45 -0500 Subject: Have index page titles default to be the basename of the directory. --- lib/page_index.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/page_index.rb b/lib/page_index.rb index 6ae4318..43bf367 100644 --- a/lib/page_index.rb +++ b/lib/page_index.rb @@ -70,7 +70,7 @@ class IndexPage < LocalPage return ret.gsub(/\n\n+/, "\n\n") end def index_title - _metadata['title'] + _metadata['title'] || File::basename(local_infile) end def index_author Person::new(_metadata['author'] || Config::get.default_author) -- cgit v1.2.3-2-g168b