mirror of
https://github.com/tiennm99/tsuki.git
synced 2026-06-06 08:12:57 +00:00
5d73a139ea
- Extract duplicated TOC predicate to _partials/toc-enabled.html (single.html + footer.html were both computing the same 6-line gate). - Inline _partials/head/og-image.html into head/seo.html — single caller, the fallback chain is the contract; the partial wasn't earning its override surface. - Drop 6 unused i18n keys: postedOn, tags, categories, archive, noResults, copyright. None referenced by any template (verified via grep). Also removed an accidental duplicate of the callout title block; vi.yml reorganized into thematic groups. Behavior unchanged. Smoke (11 checks) + Hugo build clean. CSS bundle unchanged at 3962 B gz.
36 lines
776 B
HTML
36 lines
776 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 .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 "related-posts.html" . }}
|
|
|
|
{{ partial "comments.html" . }}
|
|
{{ end }}
|