Feb 27, 2007

snap_in プラグイン

snap_in プラグインを導入。 Link

[path/img. jpg] みたいに書くと駄目だったので、

$$body_ref =~ s/\[([\w\-\!\#\$\%\'\^\(\)\{\}\~]+)\.($match_ext)\]/replace( $1, $2 )/gies;
$$body_ref =~ s/\[([\/\w\-\!\#\$\%\'\^\(\)\{\}\~]+)\.($match_ext)\]/replace( $1, $2 )/gies;
にした。(初めに \/ を入れただけ。)

image_root は以下のようにしたので、

my $image_root = "$blosxom::url/entries/"; # the base image url

[cook/marshmallows-yogurt/IMG_hoge. jpg]

みたいにできる。

style-sites.css には

.snapimg { margin-left: 50px; }

を足した。

写真の幅は 300 pixel (縦 225 pixel)くらいがいいみたい。

使用例はこれ: Link

Posted at 00:26 in howto | WriteBacks (1) | Edit
Edit this entry...

wikieditish message: Ready to edit this entry.
















A quick preview will be rendered here when you click "Preview" button.