1
0
mirror of https://github.com/avinal/avinal.github.io.git synced 2026-07-03 23:30:09 +05:30
Files
avinal.github.io/html-only/layouts/_default/single.html
T
2023-07-19 15:58:47 +05:30

28 lines
896 B
HTML

{{ define "head" }}
<link rel="stylesheet" href='https://null.avinal.space/css/single.css'>
{{ end }}
{{ define "main" }}
<main id="main" class="post">
{{ if cond (ne .Params.toc nil) .Params.toc .Site.Params.toc }}
{{ if ne .TableOfContents "<nav id=\"TableOfContents\"></nav>" }}
<details>
<summary>
<b>Table of Contents</b>
</summary>
<div class="toc {{ if .Site.Params.numberedSubtitles }}numbered-subtitles{{ end }}">{{ .TableOfContents }}</div>
</details>
{{ end }}
{{ end }}
<article class="content {{ if .Site.Params.numberedSubtitles }}numbered-subtitles{{ end }}">
{{ if .Site.Params.emphasisWithDots }}
{{ .Content | replaceRE "<strong>(\\p{Han}+?)</strong>" "<strong class=chinese>$1</strong>" | safeHTML }}
{{ else }}
{{ .Content }}
{{ end }}
</article>
</main>
{{ end }}