divyam.dev/layouts/_default/single.html
Divyam Ahuja 05b4d4cad8
Some checks are pending
Deploy Hugo site to Pages / build (push) Waiting to run
Deploy Hugo site to Pages / deploy (push) Blocked by required conditions
chore: add gitignore and remove tracked build artifacts
2026-05-09 02:11:22 +05:30

31 lines
948 B
HTML

{{ define "main" }}
<article>
<div class="post-header">
<h1>{{ .Title }}</h1>
<div class="post-meta">
<span>{{ .Site.Params.author | upper }}</span>
<span class="separator">·</span>
<time datetime="{{ .Date.Format "2006-01-02" }}">{{ .Date.Format "02 Jan 2006" }}</time>
{{- with .Params.tags }}
<span class="separator">|</span>
<span class="post-tags">
{{- range . }}
<a href="{{ "tags/" | absURL }}{{ . | urlize }}/" class="post-tag">#{{ . }}</a>
{{- end }}
</span>
{{- end }}
</div>
</div>
<div class="post-content">
{{- if and (ne .Params.toc false) (gt (len .TableOfContents) 32) }}
<details class="post-toc" open>
<summary class="toc-title">Table of Contents</summary>
{{ .TableOfContents }}
</details>
{{- end }}
{{ .Content }}
</div>
<hr>
<a href="/" class="back-link">← back to home</a>
</article>
{{ end }}