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/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 ++++++++ 11 files changed, 262 insertions(+) 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 (limited to 'themes/terminal/layouts/partials') diff --git a/themes/terminal/layouts/partials/comments.html b/themes/terminal/layouts/partials/comments.html new file mode 100644 index 0000000..64f5a64 --- /dev/null +++ b/themes/terminal/layouts/partials/comments.html @@ -0,0 +1,8 @@ + diff --git a/themes/terminal/layouts/partials/cover.html b/themes/terminal/layouts/partials/cover.html new file mode 100644 index 0000000..ea562ea --- /dev/null +++ b/themes/terminal/layouts/partials/cover.html @@ -0,0 +1,24 @@ +{{- $cover := false -}} +{{- $autoCover := default $.Site.Params.autoCover false }} + +{{- if index .Params "cover" -}} + {{- if .Resources.GetMatch .Params.Cover }} + {{- $cover = (.Resources.GetMatch .Params.Cover).RelPermalink -}} + {{- else -}} + {{- $cover = absURL .Params.Cover -}} + {{- end -}} +{{- else if $.Site.Params.AutoCover -}} + {{- if (not .Params.Cover) -}} + {{- if .Resources.GetMatch "cover.*" -}} + {{- $cover = (.Resources.GetMatch "cover.*").RelPermalink -}} + {{- end -}} + {{- end -}} +{{- end -}} + +{{if $cover -}} + + {{ .Title | plainify | default +{{- end }} diff --git a/themes/terminal/layouts/partials/extended_footer.html b/themes/terminal/layouts/partials/extended_footer.html new file mode 100644 index 0000000..1ef9361 --- /dev/null +++ b/themes/terminal/layouts/partials/extended_footer.html @@ -0,0 +1,4 @@ + diff --git a/themes/terminal/layouts/partials/extended_head.html b/themes/terminal/layouts/partials/extended_head.html new file mode 100644 index 0000000..69baf1f --- /dev/null +++ b/themes/terminal/layouts/partials/extended_head.html @@ -0,0 +1,4 @@ + diff --git a/themes/terminal/layouts/partials/footer.html b/themes/terminal/layouts/partials/footer.html new file mode 100644 index 0000000..e2588eb --- /dev/null +++ b/themes/terminal/layouts/partials/footer.html @@ -0,0 +1,22 @@ + + + + + +{{ if $.Site.Params.showLanguageSelector }} + +{{ end }} + + +{{ partial "extended_footer.html" . }} diff --git a/themes/terminal/layouts/partials/head.html b/themes/terminal/layouts/partials/head.html new file mode 100644 index 0000000..48f2d28 --- /dev/null +++ b/themes/terminal/layouts/partials/head.html @@ -0,0 +1,76 @@ + + + + + + + +{{ template "_internal/google_analytics.html" . }} + + + +{{ if (isset .Params "color") }} + +{{ else if and (ne $.Site.Params.ThemeColor "orange") (ne $.Site.Params.ThemeColor "color" "") }} + +{{ end }} + + +{{ if (fileExists "static/style.css") -}} + +{{- end }} + + + +{{ if isset $.Site.Params "favicon" }} + +{{ else }} + +{{ end }} + + + +{{ if (isset $.Site.Params "twitter") }} + {{ if (isset $.Site.Params.Twitter "site") }} + + {{ end }} + +{{ end }} + + + + + + + + +{{ if and (not .IsHome) (isset .Params "cover") }} + +{{ else }} + {{ if isset $.Site.Params "favicon" }} + + {{ else }} + + {{ end }} +{{ end }} + + +{{ range .Params.categories }} + +{{ end }} +{{ if isset .Params "date" }} + +{{ end }} + + +{{ with .OutputFormats.Get "RSS" }} + +{{ end }} + + +{{ with .OutputFormats.Get "json" }} + +{{ end }} + + +{{ partial "extended_head.html" . }} diff --git a/themes/terminal/layouts/partials/header.html b/themes/terminal/layouts/partials/header.html new file mode 100644 index 0000000..23214f8 --- /dev/null +++ b/themes/terminal/layouts/partials/header.html @@ -0,0 +1,13 @@ +
+
+ + {{ if len $.Site.Menus }} + + {{ end }} +
+ {{ if len $.Site.Menus }} + {{ partial "menu.html" . }} + {{ end }} +
diff --git a/themes/terminal/layouts/partials/logo.html b/themes/terminal/layouts/partials/logo.html new file mode 100644 index 0000000..8a1bf1f --- /dev/null +++ b/themes/terminal/layouts/partials/logo.html @@ -0,0 +1,5 @@ + + + diff --git a/themes/terminal/layouts/partials/menu.html b/themes/terminal/layouts/partials/menu.html new file mode 100644 index 0000000..17d39c8 --- /dev/null +++ b/themes/terminal/layouts/partials/menu.html @@ -0,0 +1,60 @@ + diff --git a/themes/terminal/layouts/partials/pagination.html b/themes/terminal/layouts/partials/pagination.html new file mode 100644 index 0000000..777a6b4 --- /dev/null +++ b/themes/terminal/layouts/partials/pagination.html @@ -0,0 +1,20 @@ + diff --git a/themes/terminal/layouts/partials/posts_pagination.html b/themes/terminal/layouts/partials/posts_pagination.html new file mode 100644 index 0000000..04951d5 --- /dev/null +++ b/themes/terminal/layouts/partials/posts_pagination.html @@ -0,0 +1,26 @@ +{{ if or .NextInSection .PrevInSection }} + +{{ end }} \ No newline at end of file -- cgit v1.2.3