Bloggerに「関連エントリ」をつけてみた: Adding Related Posts Widget on Blogger


I've just added a "related post" to my blog. I believe this is the easiest solution on the web. You just copy this script and paste it right below data:post.body in your expanded HTML templates. That's it. Next thing you know, all your useless fantoms show up from your past. Enjoy.

ブログに「関連エントリ」のウィジェットを加えてみた。やり方は簡単。

1)このスクリプトをコピー
2)「Layout」>「Edit HTML」>「Expand Widget Templates」をチェックマーク
3) data:post.body のすぐ下に1)をペースト、保存。おしまい。

恐る恐るブログを開くと過去の亡霊がうじゃうじゃ蘇ってるではないか! 表示数変えたい人はスクリプトの中にある以下の数字を変更して保存してね。

maxNumberOfPostsPerLabel = 100; (ラベルごとの最大投稿表示数)
maxNumberOfLabels = 3;       (ラベル最大表示数)

[How To Add A Related Post Widget | Blogspot Tutorial]

Comments