Files
tsuki/layouts/_partials/meta.html
T
tiennm99 4f17588f19 feat: core layouts and partials (Phase 3)
- baseof.html with named blocks (head_extra, body_class, main, scripts)
- single.html with data-pagefind-body wrapper
- list.html using post-card partial
- home.html placeholder (Phase 4 fills hero/projects/recent-posts)
- 404.html with vi i18n
- _partials: head (full meta + OG + Twitter Card + RSS autodiscovery + theme-flash script), header, nav, footer, meta, post-card, icon
- Sample post fixture in exampleSite to validate render

ci: bump GitHub Actions to Node 24-compatible versions

- actions/checkout v4 → v6
- actions/setup-node v4 → v6, node 20 → 22
- actions/upload-pages-artifact v3 → v5
- actions/deploy-pages v4 → v5
2026-05-07 20:45:31 +07:00

21 lines
591 B
HTML

<div class="post-meta">
{{- with .Date }}
<time datetime="{{ .Format "2006-01-02" }}" class="post-date">
{{ . | time.Format ":date_long" }}
</time>
{{- end }}
{{- if gt .ReadingTime 0 }}
<span class="reading-time">
{{ i18n "readingTime" (dict "Count" .ReadingTime) | default (printf "%d min" .ReadingTime) }}
</span>
{{- end }}
{{- with .Params.tags }}
<span class="post-tags">
{{- range $i, $tag := . -}}
{{- if $i }}, {{ end -}}
<a href="{{ printf "/tags/%s/" (urlize $tag) | relURL }}">#{{ $tag }}</a>
{{- end -}}
</span>
{{- end }}
</div>