mirror of
https://github.com/tiennm99/tsuki.git
synced 2026-08-02 06:23:25 +00:00
Headline outcomes: - Feature parity with Stack/PaperMod on Tier A polish: breadcrumbs (+BreadcrumbList JSON-LD), prev/next post navigation (rel=prev/next), language switcher UI (gated on hugo.IsMultilingual), code-copy button polish, <details> styling. - Per-page-kind CSS bundles: core loads everywhere; home/single/archive/ search bundles load only where needed. Frees ~1 KB gz from non-post pages. code-copy.js gated to post pages. - Lighthouse-relevant network polish: Pagefind UI CSS preload-swap, conditional preconnect to giscus.app on comment-enabled posts, hreflang alternates on multilingual sites, <meta name=theme-color> light/dark variants, aria-pressed SSR-rendered on theme-toggle. - WCAG AA contrast: --tsuki-fg-subtle darkened to #6b6b6b (light); was 3.54:1 on bg, now 5:1. Pagination disabled uses --tsuki-fg-muted without opacity compound. Header tap targets bumped to 40×40; pagination to 44×44. - i18n: full i18n/en.yml mirror (~50 keys); render-heading aria-label i18n-driven via linkToSection key; new keys for breadcrumb*, prevPost, nextPost, copyCode, copiedCode. - Discovery: /llm.txt output format (llmstxt.org) on home; Speculation Rules opt-in via params.prefetch.enable. - <html lang> fallback: site.Language.LanguageCode → Lang → "en" (was hard-coded "vi"). Per-kind bundle gz sizes on demo: home 3673 / post 4167 / list 2897 / archives 3363 / search 3179 B (all under 4200 B cap). Plan: plans/260510-0144-tsuki-v0.3.0/
40 lines
846 B
HTML
40 lines
846 B
HTML
{{ define "body_class" }}post{{ end }}
|
|
|
|
{{ define "main" }}
|
|
{{ partial "breadcrumbs.html" . }}
|
|
|
|
<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 .GetTerms "tags" }}
|
|
<ul class="post-tag-list">
|
|
{{- range . }}
|
|
<li><a href="{{ .RelPermalink }}">#{{ .LinkTitle }}</a></li>
|
|
{{- end }}
|
|
</ul>
|
|
{{- end }}
|
|
</footer>
|
|
</article>
|
|
|
|
{{- if partial "toc-enabled.html" . }}
|
|
{{ partial "toc.html" . }}
|
|
{{- end }}
|
|
|
|
{{ partial "prev-next.html" . }}
|
|
|
|
{{ partial "related-posts.html" . }}
|
|
|
|
{{ partial "comments.html" . }}
|
|
{{ end }}
|