From: <tad...@us...> - 2008-07-11 11:12:46
|
Revision: 3332 http://tdiary.svn.sourceforge.net/tdiary/?rev=3332&view=rev Author: tadatadashi Date: 2008-07-11 04:12:55 -0700 (Fri, 11 Jul 2008) Log Message: ----------- changed title format to start with day title. Modified Paths: -------------- trunk/plugin/ChangeLog trunk/plugin/title_tag.rb Modified: trunk/plugin/ChangeLog =================================================================== --- trunk/plugin/ChangeLog 2008-07-11 10:57:47 UTC (rev 3331) +++ trunk/plugin/ChangeLog 2008-07-11 11:12:55 UTC (rev 3332) @@ -1,3 +1,6 @@ +2008-07-11 TADA Tadashi <sh...@sp...> + * title_tag.rb: changed title format to start with day title. + 2008-07-10 TADA Tadashi <sh...@sp...> * category.rb: sorted categories in case-insensitive. Modified: trunk/plugin/title_tag.rb =================================================================== --- trunk/plugin/title_tag.rb 2008-07-11 10:57:47 UTC (rev 3331) +++ trunk/plugin/title_tag.rb 2008-07-11 11:12:55 UTC (rev 3332) @@ -50,17 +50,18 @@ if !diary.visible? then return title_tag2 end - title = @html_title + ' - ' + site_title = " - #{@html_title}" + day_title = '' if !diary.title.empty? then - title << apply_plugin(diary.title, true) << ' - ' + day_title << apply_plugin(diary.title, true) << ':' end t2 = '' if @plugin_files.grep(/\/category.rb$/).empty? then - t2 << diary.all_subtitles_to_html.join(' , ') + t2 << diary.all_subtitles_to_html.join(', ') else - t2 << diary.all_stripped_subtitles_to_html.join(' , ') + t2 << diary.all_stripped_subtitles_to_html.join(', ') end - return "<title>#{h( title )}#{h( @conf.shorten(apply_plugin(t2, true)) )}</title>" + return "<title>#{h day_title}#{h( @conf.shorten(apply_plugin(t2, true)) )}#{h( title )}</title>" elsif @mode == 'categoryview' then return @conf.shorten("<title>#{h( @html_title )}#{h( category_title() )}</title>") else @@ -70,7 +71,7 @@ # Local Variables: # mode: ruby -# code: utf-8-unix +# code: euc-jp-unix # indent-tabs-mode: t # tab-width: 3 # ruby-indent-level: 3 This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |