«前の日記(2007-12-13(木)) 最新 次の日記(2007-12-20(木))» 編集
RSS feed

からっぽの日記


2007-12-18(火) 晴れ [長年日記]

tDiary 2.2.0 へバージョンアップ

tDiary 2.2.0 がリリースされたので導入してみたメモ。

tDiary2.2.0 の取得

% cd ~/tmp
% wget http://www.tdiary.org/download/tdiary-full-2.2.0.tar.gz
% tar zxf tdiary-full-2.2.0.tar.gz
% cd tdiary-full-2.2.0
% cp ~/www/diary/tdiary.conf .
% vimdiff tdiary.conf tdiary.conf.beginner    # 差分確認・修正
% cp ~/www/diary/.htaccess .
% cp -rp ~/www/diary/images .
% cp ~/www/diary/index.rdf .
% cp -p ~/www/diary/robots.txt .
% cp -p ~/www/diary/sitemap.xml .

プラグイン

contrib の取得

% cd ~/tmp
% wget http://www.tdiary.org/download/tdiary-contrib.tar.gz
% tar zxf tdiary-contrib.tar.gz

TrackBack

% cd ~/tmp/tdiary-2.2.0
% cp -p misc/plugin/trackback/tb.rb .
% chmod 755 tb.rb

category_to_tag.rb

% cd ~/tmp/tdiary-2.2.0
% cp -p ../tdiary-contrib/plugin/category_to_tag/category_to_tag.rb misc/plugin/

iddy.rb

% cd ~/tmp/tdiary-2.2.0
% cp -p ../tdiary-contrib/plugin/iddy/iddy.rb misc/plugin/

jdate.rb

% cp -p ../tdiary-contrib/plugin/japanese/jdate.rb misc/plugin/

google_sitemaps.rb

% cd ~/tmp
% wget http://d.bulkitem.com/archives/google_sitemaps.tar.gz
% tar zxf google_sitemaps.tar.gz
% cd tdiary-2.2.0
% cp -p ../google_sitemaps/google_sitemaps.rb misc/plugin/
% cp -p ../google_sitemaps/ja/google_sitemaps.rb misc/plugin/ja/

category_to_tagcloud.rb

% cd ~/tmp
% wget wget http://www.smallstyle.com/lab/category_to_tagcloud.txt
% cd tdiary-2.2.0
% cp ../category_to_tagcloud.txt misc/plugin/category_to_tagcloud.rb

photozou.rb(自作)

% cp -p ~/www/diary/misc/plugin/photozou.rb misc/plugin/ karapo@www1075:~/tmp/tdiary-2.2.0$

meta.rb(自作 - metaタグの設定)

% cd ~/tmp/tdiary-2.2.0
% cp -p ~/www/diary/misc/plugin/meta.rb misc/plugin/

search_control.rb の修正

% cd ~/tmp/tdiary-2.2.0
% cp -p misc/plugin/search_control.rb misc/plugin/search_control.rb.orig
% vi misc/plugin/search_control.rb
--- misc/plugin/search_control.rb   Tue Dec 18 00:21:07 2007
+++ misc/plugin/search_control.rb.orig  Thu May  3 11:36:03 2007
@@ -212,7 +212,7 @@
	# output
	sw = @conf[_sc_vkey( view, number )]
	if sw then
-	   %Q|\t<meta name="robots" content="noarchive,#{'f' == sw ? 'noindex' : 'index' },#{follow}">\n|
+	   %Q|\t<meta name="robots" content="#{'f' == sw ? 'noindex' : 'index' },#{follow}">\n|
	else
		''
	end

recent.rb の修正

% cd ~/tmp/tdiary-2.2.0
% cp -p misc/plugin/recent_list.rb misc/plugin/recent_list.rb.orig
% vi misc/plugin/recent_list.rb
--- misc/plugin/recent_list.rb  Tue Dec 18 02:06:45 2007
+++ /home/karapo/www/diary/misc/plugin/recent_list.rb   Sun Jan 14 13:02:17 2007
@@ -58,7 +58,7 @@
								result << %Q|\t<li><a href="#{h( @index )}#{anchor( "%s#p%02d" % [date, i] )}"|
								result << %Q| title="#{h( @conf.shorten( apply_plugin( section.body_to_html, true) ) )}"| if title_with_body == true
								result << %Q|>#{i}</a>. | \
-									   << %Q|#{apply_plugin(section.stripped_subtitle_to_html).gsub(/<[^>]*>/, '')}</li>\n|
+									   << %Q|#{section.stripped_subtitle_to_html}</li>\n|
							end
							i += 1
						end
@@ -68,7 +68,7 @@
								result << %Q|\t<li><a href="#{h( @index )}#{anchor( "%s#p%02d" % [date, i] )}"|
								result << %Q| title="#{h( @conf.shorten( apply_plugin(section.body_to_html, true) ) )}"| if title_with_body == true
								result << %Q|>#{i}</a>. | \
-									   << %Q|#{apply_plugin(section.subtitle_to_html).gsub(/<[^>]*>/, '')}</li>\n|
+									   << %Q|#{section.subtitle_to_html}</li>\n|
							end
							i += 1
						end

テーマ

ginkgo.css の修正

% cd ~/tmp/tdiary-2.2.0
% cp -p theme/ginkgo/ginkgo.css theme/ginkgo/ginkgo.css.orig
% cp -p ~/www/diary/theme/ginkgo/ginkgo theme/ginkgo/

tDiary の入れ替え

% mv ~/www/diary ~/tmp/tdiary-2.1.4
% mv ~/tmp/tdiary-2.2.0 ~/www/diary

有効なプラグイン

  • amazon.rb
  • calendar2.rb
  • category.rb
  • category_to_tag.rb
  • category_to_tagcloud.rb
  • disp_referrer.rb
  • flickr.rb
  • footnote.rb
  • google_sitemaps.rb
  • highlight.rb
  • html_anchor.rb
  • iddy.rb
  • image.rb
  • jdate.rb
  • makerss.rb
  • meta.rb
  • my-ex.rb
  • my-sequel.rb
  • photozou.rb
  • ping.rb
  • recent_comment.rb
  • recent_list.rb
  • recent_trackback3.rb
  • search_control.rb
  • tb-send.rb
  • tb-show.rb

«前の日記(2007-12-13(木)) 最新 次の日記(2007-12-20(木))» 編集
RSS feed