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/index.html | 65 +++++++++++++++++++++++++++++
1 file changed, 65 insertions(+)
create mode 100644 themes/terminal/layouts/_default/index.html
(limited to 'themes/terminal/layouts/_default/index.html')
diff --git a/themes/terminal/layouts/_default/index.html b/themes/terminal/layouts/_default/index.html
new file mode 100644
index 0000000..1cab615
--- /dev/null
+++ b/themes/terminal/layouts/_default/index.html
@@ -0,0 +1,65 @@
+{{ define "main" }}
+ {{ if .Content }}
+
+ {{ $isntDefault := not (or (eq (trim $.Site.Params.contentTypeName " ") "posts") (eq (trim $.Site.Params.contentTypeName " ") "")) }}
+ {{ $contentTypeName := cond $isntDefault (string $.Site.Params.contentTypeName) "posts" }}
+
+ {{ $PageContext := . }}
+ {{ if .IsHome }}
+ {{ $PageContext = .Site }}
+ {{ end }}
+ {{ $paginator := .Paginate (where $PageContext.RegularPages "Type" $contentTypeName) }}
+
+ {{ range $paginator.Pages }}
+
+
+
+
+ {{ .Date.Format "2006-01-02" }}
+
+ {{ with .Params.Author }}
+ :: {{ . }}
+ {{ end }}
+
+
+ {{ if .Params.tags }}
+
+ {{ range .Params.tags }}
+ #
+ {{- . -}}
+
+ {{ end }}
+
+ {{ end }}
+
+
+ {{ partial "cover.html" . }}
+
+
+
+ {{ if .Params.showFullContent }}
+ {{ .Content }}
+ {{ else if .Description }}
+ {{ .Description | markdownify }}
+ {{ else }}
+ {{ .Summary | markdownify }}
+ {{ end }}
+
+
+ {{ if not .Params.showFullContent }}
+
+ {{ end }}
+
+ {{ end }}
+ {{ partial "pagination.html" . }}
+
+{{ end }}
--
cgit v1.2.3