Skip to content

Instantly share code, notes, and snippets.

@atstyle
Last active January 4, 2016 05:09
Show Gist options
  • Save atstyle/8573529 to your computer and use it in GitHub Desktop.
Save atstyle/8573529 to your computer and use it in GitHub Desktop.
MTMLで新着マーク
<mt:SetVarBlock name="today"><$mt:Date format="%Y%j"%></mt:SetVarBlock>
<mt:Entries lastn="1" include_blogs="ブログID" category="カテゴリ名">
<mt:SetVarBlock name="passed"><$mt:EntryDate format="%Y%j"%></mt:SetVarBlock>
<mt:SetVar name="passed" value="$today" op="sub">
<mt:If name="passed" ge="-5"><span class="newmark">New!</span></mt:If>
<mt:If name="passed" ge="-640"><mt:If name="passed" le="-635"><span class="newmark">New!</span></mt:If>
</mt:If>
</mt:Entries>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment