mirror of
https://github.com/tiennm99/tsuki.git
synced 2026-05-24 19:35:26 +00:00
6e17ee62b9
Fixes issues flagged in audit: improve footer spacing, meta tag refinement, code-copy utility robustness, and add security notes to data schemas.
39 lines
967 B
HTML
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 }}
|