mirror of
https://github.com/tiennm99/tsuki.git
synced 2026-05-25 15:59:47 +00:00
4f17588f19
- 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
28 lines
639 B
HTML
28 lines
639 B
HTML
{{ define "body_class" }}post{{ end }}
|
|
|
|
{{ define "main" }}
|
|
<article class="post">
|
|
<header class="post-header">
|
|
<h1 class="post-title">{{ .Title }}</h1>
|
|
{{ partial "meta.html" . }}
|
|
{{- with .Description }}
|
|
<p class="post-description">{{ . }}</p>
|
|
{{- end }}
|
|
</header>
|
|
|
|
<div class="post-content" data-pagefind-body>
|
|
{{ .Content }}
|
|
</div>
|
|
|
|
<footer class="post-footer">
|
|
{{- with .Params.tags }}
|
|
<ul class="post-tag-list">
|
|
{{- range . }}
|
|
<li><a href="{{ printf "/tags/%s/" (urlize .) | relURL }}">#{{ . }}</a></li>
|
|
{{- end }}
|
|
</ul>
|
|
{{- end }}
|
|
</footer>
|
|
</article>
|
|
{{ end }}
|