summaryrefslogtreecommitdiff
path: root/layouts/_partials/items/post-small.html
blob: 28a4a995519f0b9ed17a57a810876e69c1f426f6 (plain)
1
2
3
4
5
6
7
8
9
10
11
{{ $isWeekly := (eq .Params.categories "稻草人周刊") }}
<li class="flex justify-between text-size-lg
    {{ if $isWeekly }} weekly animate-duration-500 transition-opacity{{ end }}">
    <a href="{{ .RelPermalink }}">
        {{ .Title }}{{ with .Params.subtitle }}:<span class="text-secondary">{{. }}</span>
        {{ end }}
    </a>
    <time class="text-size-sm font-mono text-secondary flex-shrink-0">
        {{ .Date.Format "2006-1-2" }}
    </time>
</li>