생활 웹디자인

Day Pages

텀블러는 http://plyfly.tumblr.com/day/2014/01/06 와 같은 주소를 이용해서 주어진 날짜의 포스트를 출력할 수 있습니다. 이 페이지는 이전, 다음 페이지네이션을 포함할 수 있습니다.

변수 설명
{block:DayPage} {/block:DayPage} 주어진 날짜의 페이지를 출력합니다.
{block:DayPagination} {/block:DayPagination} 이전, 다음 페이지가 있다면 출력합니다.
{block:PreviousDayPage} {/block:PreviousDayPage} 이전 페이지가 있다면 출력합니다.
{block:NextDayPage} {/block:NextDayPage} 다음 페이지가 있다면 출력합니다.
{PreviousDayPage} 이전 페이지의 주소
{NextDayPage} 다음 페이지의 주소

Example

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<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}">&#171; Previous</a>
{/block:PreviousPage}
{block:NextPage}
<a href="{NextPage}">Next &#187;</a>
{/block:NextPage}
{/block:Pagination}
{block:DayPagination}
{block:PreviousDayPage}
<a href="{PreviousDayPage}">
&#171; {ShortMonth} {DayOfMonth}
</a>
{/block:PreviousDayPage}
{block:NextDayPage}
<a href="{NextDayPage}">
{ShortMonth} {DayOfMonth} &#187;
</a>
{/block:NextDayPage}
{/block:DayPagination}
</div>
</body>
</html>

댓글

댓글 본문
버전 관리
리체
현재 버전
선택 버전
공동공부
graphittie 자세히 보기