Skip to content

hatena_foto.rb

TADA Tadashi edited this page Nov 10, 2017 · 2 revisions

概要

Hatena::Fotolife の個別の画像ページへサムネイル付きでリンクする。

hatena_foto.rb

使い方

<%=hatena_foto 'http://f.hatena.ne.jp/s_sawada/20050223111123' %>

<%=hatena_foto 'url' %>
  • url: リンク先のURL

備考

[セキュア可]

その他

サムネイル画像には "foto_thumb" というクラス属性が付加されています。

CSSの記述例(サムネイル画像を黒枠で囲む):

.foto_thumb {
 border-color: #000;
 border-style: solid;
 border-width: 1px;
}
Clone this wiki locally