如何使用Tumblr newDay Date“模板标签”

时间:2011-02-06 01:24:59

标签: tumblr

我希望可以在此发布此内容...找不到Tumblr论坛

无论如何,我一直想创建我的主题,以便它仅在第一天“日期”输出包含日期的h1,例如

h1: 6 Feb 2011

- Post for 6 Feb 2011
- Post for 6 Feb 2011
- Post for 6 Feb 2011

h1: 5 Feb 2011

- Post for 5 Feb 2011
- Post for 5 Feb 2011
- ...

希望你明白这个主意?我想我应该使用newDayDate“标签”,但是当我尝试它时

{块:帖子}

{block:newDayDate}
<h1 class="ribbon">
  <span class="ribbon-triangle"></span>
  <a href="/day/{Year}/{MonthNumberWithZero}/{DayOfMonthWithZero}">{DayOfMonth}<small><small><sup>{DayOfMonthSuffix}</sup></small></small> {ShortMonth} {Year}</a>
</h1>
{/block:newDayDate}

<article>
  {block:Text}
  {block:Title}<h1>{Title}</h1>{/block:Title}
  {Body}
  {/block:Text}

它只输出类似

的内容
h1: 7 June 2006

- Post for 10 June 2006 // later dates does not seem to be captured
- Post for 9 June 2006 
- Post for 9 June 2006
- Post for 7 June 2006 // Only earliest date on the page is rendered
- Post for 7 June 2006

我怎样才能让它发挥作用?

0 个答案:

没有答案