Tumblr カスタムテーマ Day Page Navigation の rel-next, rel-prev
Creating a custom HTML theme | TumblrExample Day Page Navigation
<html> <body> <h1>{Title}</h1> {block:DayPage} <h2>{Month} {DayOfMonth}, {Year}</h2> {/block:DayPage} <ol id="posts"> {block:Posts} ... {/block:Posts} </ol> <div id="footer"> {block:Pagination} {block:PreviousPage} <a href="{PreviousPage}">« Previous</a> {/block:PreviousPage} {block:NextPage} <a href="{NextPage}">Next »</a> {/block:NextPage} {/block:Pagination} {block:DayPagination} {block:PreviousDayPage} <a href="{PreviousDayPage}"> « {ShortMonth} {DayOfMonth} </a> {/block:PreviousDayPage} {block:NextDayPage} <a href="{NextDayPage}"> {ShortMonth} {DayOfMonth} » </a> {/block:NextDayPage} {/block:DayPagination} </div> </body> </html>
rel-next と rel-prev を設定すると、
<div id="footer"> {block:Pagination} {block:PreviousPage} <a href="{PreviousPage}" rel="prev">« Previous</a> {/block:PreviousPage} {block:NextPage} <a href="{NextPage}" rel="next">Next »</a> {/block:NextPage} {/block:Pagination} {block:DayPagination} {block:NextDayPage} <a href="{NextDayPage}" rel="prev">« {ShortMonth} {DayOfMonth}</a> {/block:NextDayPage} {block:PreviousDayPage} <a href="{PreviousDayPage}" rel="next">{ShortMonth} {DayOfMonth} »</a> {/block:PreviousDayPage} {/block:DayPagination} </div>
今日の日付のlinkを貼っておきたいんだが、これは自分で作らないとダメか。
http://taizooo.tumblr.com/day/2008/06/11 の次の日のlinkが http://taizooo.tumblr.com/day/2008/06/11 になっておる。これじゃダメじゃん。