templates/guide/layout/html/setup.rb in yard-0.9.5 vs templates/guide/layout/html/setup.rb in yard-0.9.6

- old
+ new

@@ -1,19 +1,16 @@ +# frozen_string_literal: true include T('default/layout/html') def init super @topfile = options.readme if options.files if @topfile @toptitle = @topfile.attributes[:title] || "Documentation Overview" end - if @file == options.readme - @page_title = options.title - else - @page_title = @file.title - end + @page_title = @file == options.readme ? options.title : @file.title index = options.files.index(@file) if index @prevfile = index > 0 ? (options.files[index - 1] || options.readme) : nil @nextfile = options.files[index + 1]