Files
tsuki/layouts/single.html
T
tiennm99 6e17ee62b9 fix: address v0.1.0 audit findings and security notes
Fixes issues flagged in audit: improve footer spacing, meta tag refinement,
code-copy utility robustness, and add security notes to data schemas.
2026-05-09 09:32:17 +07:00

39 lines
967 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>
{{- $tocCfg := site.Params.toc | default dict -}}
{{- $tocEnabled := $tocCfg.enable | default true -}}
{{- $tocMin := $tocCfg.minWordCount | default 400 -}}
{{- if and $tocEnabled (gt .WordCount $tocMin) (ne .Params.toc false) }}
{{ partial "toc.html" . }}
{{- end }}
{{ partial "related-posts.html" . }}
{{ partial "comments.html" . }}
{{ end }}