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/404.html | 10 +++
themes/terminal/layouts/_default/baseof.html | 27 ++++++++
themes/terminal/layouts/_default/index.html | 65 ++++++++++++++++++
themes/terminal/layouts/_default/list.html | 55 ++++++++++++++++
themes/terminal/layouts/_default/rss.xml | 40 ++++++++++++
themes/terminal/layouts/_default/single.html | 54 +++++++++++++++
themes/terminal/layouts/_default/terms.html | 17 +++++
themes/terminal/layouts/partials/comments.html | 8 +++
themes/terminal/layouts/partials/cover.html | 24 +++++++
.../terminal/layouts/partials/extended_footer.html | 4 ++
.../terminal/layouts/partials/extended_head.html | 4 ++
themes/terminal/layouts/partials/footer.html | 22 +++++++
themes/terminal/layouts/partials/head.html | 76 ++++++++++++++++++++++
themes/terminal/layouts/partials/header.html | 13 ++++
themes/terminal/layouts/partials/logo.html | 5 ++
themes/terminal/layouts/partials/menu.html | 60 +++++++++++++++++
themes/terminal/layouts/partials/pagination.html | 20 ++++++
.../layouts/partials/posts_pagination.html | 26 ++++++++
themes/terminal/layouts/shortcodes/code.html | 15 +++++
themes/terminal/layouts/shortcodes/figure.html | 8 +++
themes/terminal/layouts/shortcodes/image.html | 3 +
themes/terminal/layouts/shortcodes/prismjs.html | 25 +++++++
22 files changed, 581 insertions(+)
create mode 100644 themes/terminal/layouts/404.html
create mode 100644 themes/terminal/layouts/_default/baseof.html
create mode 100644 themes/terminal/layouts/_default/index.html
create mode 100644 themes/terminal/layouts/_default/list.html
create mode 100644 themes/terminal/layouts/_default/rss.xml
create mode 100644 themes/terminal/layouts/_default/single.html
create mode 100644 themes/terminal/layouts/_default/terms.html
create mode 100644 themes/terminal/layouts/partials/comments.html
create mode 100644 themes/terminal/layouts/partials/cover.html
create mode 100644 themes/terminal/layouts/partials/extended_footer.html
create mode 100644 themes/terminal/layouts/partials/extended_head.html
create mode 100644 themes/terminal/layouts/partials/footer.html
create mode 100644 themes/terminal/layouts/partials/head.html
create mode 100644 themes/terminal/layouts/partials/header.html
create mode 100644 themes/terminal/layouts/partials/logo.html
create mode 100644 themes/terminal/layouts/partials/menu.html
create mode 100644 themes/terminal/layouts/partials/pagination.html
create mode 100644 themes/terminal/layouts/partials/posts_pagination.html
create mode 100644 themes/terminal/layouts/shortcodes/code.html
create mode 100644 themes/terminal/layouts/shortcodes/figure.html
create mode 100644 themes/terminal/layouts/shortcodes/image.html
create mode 100644 themes/terminal/layouts/shortcodes/prismjs.html
(limited to 'themes/terminal/layouts')
diff --git a/themes/terminal/layouts/404.html b/themes/terminal/layouts/404.html
new file mode 100644
index 0000000..e680954
--- /dev/null
+++ b/themes/terminal/layouts/404.html
@@ -0,0 +1,10 @@
+{{ define "main" }}
+
+
+ {{ partial "header.html" . }}
+
+
+ {{ block "main" . }}
+ {{ end }}
+
+
+ {{ block "footer" . }}
+ {{ partial "footer.html" . }}
+ {{ end }}
+
+
+
+
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 }}
diff --git a/themes/terminal/layouts/_default/list.html b/themes/terminal/layouts/_default/list.html
new file mode 100644
index 0000000..02f69b4
--- /dev/null
+++ b/themes/terminal/layouts/_default/list.html
@@ -0,0 +1,55 @@
+{{ define "main" }}
+ {{ with .Content }}
+
+ {{ . }}
+
+ {{ end }}
+
+ {{ 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 }}
diff --git a/themes/terminal/layouts/_default/rss.xml b/themes/terminal/layouts/_default/rss.xml
new file mode 100644
index 0000000..65aa855
--- /dev/null
+++ b/themes/terminal/layouts/_default/rss.xml
@@ -0,0 +1,40 @@
+{{- $pctx := . -}}
+{{- if .IsHome -}}{{ $pctx = .Site }}{{- end -}}
+{{- $pages := slice -}}
+{{- if or $.IsHome $.IsSection -}}
+{{- $pages = $pctx.RegularPages -}}
+{{- else -}}
+{{- $pages = $pctx.Pages -}}
+{{- end -}}
+{{- $limit := .Site.Config.Services.RSS.Limit -}}
+{{- if ge $limit 1 -}}
+{{- $pages = $pages | first $limit -}}
+{{- end -}}
+{{- printf "" | safeHTML }}
+
+
+
+ {{ 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 }}
diff --git a/themes/terminal/layouts/_default/terms.html b/themes/terminal/layouts/_default/terms.html
new file mode 100644
index 0000000..399d665
--- /dev/null
+++ b/themes/terminal/layouts/_default/terms.html
@@ -0,0 +1,17 @@
+{{ define "main" }}
+