From 941642aee876a97dbb79666d8fabaa2b1feb9ff5 Mon Sep 17 00:00:00 2001
From: Indrajith K L
Date: Sun, 20 Mar 2022 00:38:25 +0530
Subject: Theme changes
---
themes/terminal/layouts/_default/single.html | 54 ++++++++++++++++++++++++++++
1 file changed, 54 insertions(+)
create mode 100644 themes/terminal/layouts/_default/single.html
(limited to 'themes/terminal/layouts/_default/single.html')
diff --git a/themes/terminal/layouts/_default/single.html b/themes/terminal/layouts/_default/single.html
new file mode 100644
index 0000000..3d375ad
--- /dev/null
+++ b/themes/terminal/layouts/_default/single.html
@@ -0,0 +1,54 @@
+{{ define "main" }}
+
+
+
+ {{ if .Params.Date }}
+
+ {{ .Date.Format "2006-01-02" }}
+ {{ if $.Site.Params.showLastUpdated }}
+ [{{or $.Site.Params.updatedDatePrefix "Updated"}}: {{ .Lastmod.Format "2006-01-02" }}]
+ {{ end }}
+
+ {{ end }}
+ {{ with .Params.Author }}
+ :: {{ . }}
+ {{ end }}
+ {{ if and (.Param "readingTime") (eq (.Param "readingTime") true) }}
+ :: {{ .ReadingTime }} min read ({{ .WordCount }} words)
+ {{ end }}
+
+
+ {{ if .Params.tags }}
+
+ {{ range .Params.tags }}
+ #{{ . }}
+ {{ end }}
+
+ {{ end }}
+ {{ partial "cover.html" . }}
+
+ {{ if (.Params.Toc | default .Site.Params.Toc) }}
+
+
+ {{ (.Params.TocTitle | default .Site.Params.TocTitle) | default "Table of Contents" }}
+
+ {{ .TableOfContents }}
+
+ {{ end }}
+
+
+ {{- with .Content -}}
+
+ {{ . | replaceRE "(
)" `${1}⌗ ${3}` | safeHTML }}
+
+ {{- end -}}
+
+
+ {{ if eq .Type $.Site.Params.contentTypeName }}
+ {{ partial "posts_pagination.html" . }}
+ {{ end }}
+
+ {{ partial "comments.html" . }}
+
+{{ end }}
--
cgit v1.2.3