Mar 30, 2005   [去年の今ごろ]

RSS で配信するタイトルを変更

 私は日記のエントリを書く際に日記の当該日の日付をタイトルとしています。つまり、2005年3月30日にあったことを書く日記のタイトルは「2005年3月30日」となります。しかし一般的なタイトル配信は日付ではなくトピックであると mixi で RSS 配信をはじめて気付いたので私もそれに倣うことにしました。

 具体的には、日記のエントリからトピックとして見出しを検索し、もしそれがあれば RSS のタイトルとします。なければ日付をそのままタイトルとします。詳細は省略しますが story.rss の <title> に入れる文字列 $foreshortend::title を foreshortend プラグインの中で以下のように生成しました。

if ($path =~ m/diary/) {  # 日記エントリか
    $title = $$body_ref;
    if ($title =~ m/<h3>(.*?)<\/h3>/i) {  # 見出し
        $title = $1;
    } else { 
        $title = $$title_ref;  # 見出しがなければそのまま
    }
} else {
    $title = $$title_ref;  # 日記ではなければそのまま
}

 これで少しは内容がわかりそうなタイトルを配信できると思います[au_201]。

この記事へのコメント

gu:
Romancing Saga Special。
Trackback from Tramadol.
:
[Tramadol.]
Trackback from Cialis.
:
[Cialis.]
Trackback from Viagra.
:
[Viagra.]
Trackback from Phentermine.
:
[Phentermine.]
Trackback from Cialis.
:
[Cialis.]
Trackback from Paxil.
:
[Paxil cr faqs. Paxil cr. Paxil 30 milligram 60 prices. Paxil. Paxil withdrawal and skin irritations. What is paxil.]
Trackback from Buy phentermine.
:
[Phentermine no prescription.]
Trackback from Adderall side effects.
:
[Maxium dose of adderall xr for an adult. Buy adderall online. Snorting adderall effects. Mexican pharmacies adderall. Adderall. Adderall addiction.]
Trackback from Buy cialis.
:
[Cialis.]
Trackback from Viagra soft without a prescription.
:
[Viagra. Viagra canada. Free viagra. Free sample of viagra. Viagra uk. Viagra stories. Viagra clips.]
Trackback from Xanax.
:
[Can you buy xanax without a prescription. Buy xanax without prescription in usa. Xanax. Generic xanax 2 mg no prescription. Xanax effect. Generic xanax.]
Trackback from Long term ambien.
:
[Ambien. Ambien side affects. Ambien purchase omline. Ambien forum.]
Trackback from Cialis and addiction.
:
[Generic cialis tadalafil mg pills nextag com. Cialis best price buy online. Cialis.]
Trackback from Cialis.
:
[Generic cialis. Cheapest cialis. Cialis cheap. Cialis.]
Trackback from Soma next day.
:
[Tempra soma. Soma. Pornstar soma. Drug soma. Soma online. Prescription medication side effects for soma.]
Trackback from Phentermine free shipping.
:
[Cheap phentermine. Phentermine. Xenical hgh phentermine quit smoking detox. Phentermine online purchase. Phentermine diet. Phentermine blue.]
Trackback from Phentermine 37 5mg.
:
[Phentermine.]
Trackback from Phentermine free shipping.
:
[Cheap phentermine. Phentermine. Online phentermine. Buy phentermine diet pill.]
Trackback from Phentermine.
:
[Phentermine. Buy cheap phentermine. Online phentermine.]
Trackback from Phentermine result.
:
[Phentermine diet pill.]
Trackback from Adderall.
:
[Buy adderall online. Adderall.]
Trackback from Phentermine diet pill.
:
[Buy phentermine. Phentermine.]
Trackback from Buy cialis.
:
[Drug called cialis. Cialis. Viagra vs. cialis.]
Trackback from Viagra.
:
[Viagra. Viagra affects on women.]
Trackback from Buy cheap phentermine.
:
[Phentermine.]
Trackback from Phentermine.
:
[Phentermine. Mg buy phentermine. Abuse phentermine. Lowest price for phentermine. Phentermine no prescription.]
Trackback from Ambien.
:
[Ambien. Ambien empty stomach. Ambien next day delivery. Ambien overnight.]
Trackback from Order phentermine phentermine online.
:
[Phentermine. Phentermine no prescription.]
Trackback from Uhi foundation forums xanax cheap phentermine.
:
[Buy cheap generic xanax. Xanax. Titel auteur datum xanax medication bmnwbbuk.]
Trackback from Cialis attorneys.
:
[Cialis forum. Buy cialis phentermine. Buy cialis online. How cialis works. Cialis best price buy online. Cialis.]
Trackback from Ambien online no prescription overnight delivery.
:
[Is ambien safe to take during early pregnancy. Ambien. Generic ambien. Ambien prescriptions. Long term ambien. Buy ambien cr.]
Trackback from Buy adderall.
:
[Buy wholesale adderall. Adderall amphetamine. Smoking adderall.]
Trackback from Cialis.
:
[Buy cialis.]
Trackback from Cheap cialis.
:
[Buy generic cialis. Buy cialis order cialis buy cialis generic. Cialis best price buy online. Cialis generic. Cialis.]
Trackback from No prescription xanax.
:
[Buy 180 xanax 2mg. Psyweb xanax. Xanax. Uhi foundation forums xanax cheap phentermine. Xanax with herbal medicines.]
Trackback from Ambien next day delivery canada.
:
[Ambien. Ambien drug screen.]
Trackback from Ambien online viagra.
:
[Ambien.]
Trackback from Phentermine.
:
[Phentermine. Online phentermine. Drug phentermine.]
Trackback from Lower back pain and adderall.
:
[Adderall.]
Trackback from Ambien not working.
:
[Online meds no prescription ambien. Ambien online. Ambien cr addiction. Ambien cr. Ambien and brain injuries.]
Trackback from Phentermine tablet.
:
[Discount phentermine. Cheap phentermine. Phentermine yellow. Phentermine free shipping. Pal pay phentermine.]
wholesale bags:
RSS で配信するタイトルを変更 - O'GANE'S EXPERIENCES
wholesale bags http://www.googletest.com
 

コメントを書く

お名前:
コメント:

トラックバックURL: http://park18.wakwak.com/~ogane/cgi-bin/blosxom.cgi/computer/blosxom/200503300822.trackback

Posted at 08:22 -  permalink -  category: Blosxom -  tags: blosxom

これまでの記事。

2008 | 5 | 4 | 3 | 2 | 1 |
2007 | 12 | 11 | 10 | 9 | 7 | 6 | 5 | 4 | 3 | 2 | 1 |
2006 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 |
2005 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 |
2004 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 |
2003 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 |
2002 | 12 |