From 6f8c2ae9bc924cb1b59e1057bb31d7013251fb00 Mon Sep 17 00:00:00 2001 From: Karthik Date: Sat, 22 Feb 2020 15:20:45 +0530 Subject: update theme --- layouts/#index.html# | 25 +++++++++++++++++++++++++ layouts/404.html | 11 ++++++++--- layouts/_default/baseof.html | 2 +- layouts/_default/list.html | 3 +++ layouts/_default/single.html | 1 - layouts/index.html | 5 +---- layouts/partials/header.html | 9 ++++++++- 7 files changed, 46 insertions(+), 10 deletions(-) create mode 100644 layouts/#index.html# diff --git a/layouts/#index.html# b/layouts/#index.html# new file mode 100644 index 0000000..0d03d2f --- /dev/null +++ b/layouts/#index.html# @@ -0,0 +1,25 @@ +{{define "main"}} +{{- partial "hero.html" . -}} +
+ {{ if .Site.Params.search.enabled }} + {{partial "search.html" .}} + {{end}} +
+ {{ range first 5 (where site.RegularPages "Type" "in" site.Params.mainSections).ByTitle }} +
+
+
{{.Title}}
+
{{ .PublishDate.Format "January 2, 2006" }}
+ {{.Summary}} + Read More... +
+
+ {{end}} +
+
+
+ + I'm Not On Faceboook + +
+{{end}} diff --git a/layouts/404.html b/layouts/404.html index bb5b067..225fe3d 100644 --- a/layouts/404.html +++ b/layouts/404.html @@ -1,7 +1,12 @@ {{define "main"}}
-

Oops!

-

The page you are looking for does not exist !

- +

{{":warning:" | emojify}}

+

Oops!

+
The page does not exist!
+ +
+ {{ if .Site.Params.search.enabled}} + {{partial "search.html" . }} + {{end}}
{{ end }} diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 1aac84f..0c27033 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -8,5 +8,5 @@ {{ end }} -{{- partial "footer.html" . -}} + {{- partial "footer.html" . -}} diff --git a/layouts/_default/list.html b/layouts/_default/list.html index 8b6ccee..33e58b2 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -18,4 +18,7 @@ {{end }} +{{if .Site.Params.search.enabled}} +{{partial "search.html" .}} +{{end}} {{end}} diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 9445ee6..6fe303f 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -22,7 +22,6 @@ {{ template "_internal/disqus.html" . }} {{end}} - {{else}}

{{.Title}}

diff --git a/layouts/index.html b/layouts/index.html index 3cc10dc..0d03d2f 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -5,8 +5,7 @@ {{partial "search.html" .}} {{end}}
- {{range first 6 .Site.RegularPages }} - {{if eq .Section "post"}} + {{ range first 5 (where site.RegularPages "Type" "in" site.Params.mainSections).ByTitle }}
{{.Title}}
@@ -16,7 +15,6 @@
{{end}} - {{end}}
@@ -25,4 +23,3 @@
{{end}} - diff --git a/layouts/partials/header.html b/layouts/partials/header.html index e50fd55..a634e75 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -1,7 +1,14 @@ - + {{if .IsHome}} + + {{else}} + {{if eq .Section "post"}} + + {{end}} + + {{end}} {{ hugo.Generator }} -- cgit v1.2.3