1
0
mirror of https://github.com/avinal/avinal.github.io.git synced 2026-07-04 07:40:09 +05:30

remove submodule and apply theme

This commit is contained in:
2023-07-19 15:51:46 +05:30
parent f4c5db16d2
commit 047aeb0b86
24 changed files with 904 additions and 1 deletions
+28
View File
@@ -0,0 +1,28 @@
{{ define "head" }}
<link rel="stylesheet" href='{{ "css/single.css" | relURL }}'>
{{ 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 }}