From d40993214ff7463badad6d90d4e453c18d19409f Mon Sep 17 00:00:00 2001 From: Guru Sabarish Date: Sun, 25 Jul 2021 00:58:31 +0530 Subject: [PATCH 1/3] Update index.html --- layouts/index.html | 209 +++++++++++++++++++++++++-------------------- 1 file changed, 115 insertions(+), 94 deletions(-) diff --git a/layouts/index.html b/layouts/index.html index 480d43b..fdf25dc 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -1,103 +1,121 @@ - {{ if eq .Site.Params.version 1 }} +{{ if eq .Site.Params.version 1 }} - - {{- .Site.Title -}} - - - - - - - - - {{ template "_internal/google_analytics.html" . }} {{- partial - "sections/v1/head.html" . -}} - + + {{- .Site.Title -}} + + + + + + + + + {{ template "_internal/google_analytics.html" . }} + {{- partial "sections/v1/head.html" . -}} + - - {{- partial "sections/v1/home.html" . -}} {{- partial - "sections/v1/blog.html" . -}} {{- partial "sections/v1/about.html" . -}} {{- - partial "sections/v1/do_things.html" . -}} {{- partial - "sections/v1/projects.html" . -}} {{- partial "sections/v1/contact.html" . - -}} {{- partial "sections/v1/footer.html" . -}} {{- partial - "sections/v1/scripts.html" . -}} - - {{ else if eq .Site.Params.version 2 }} + + {{- partial "sections/v1/home.html" . -}} + {{- partial "sections/v1/blog.html" . -}} + {{- partial "sections/v1/about.html" . -}} + {{- partial "sections/v1/do_things.html" . -}} + {{- partial "sections/v1/projects.html" . -}} + {{- partial "sections/v1/contact.html" . -}} - - {{- .Site.Title -}} - - - - - {{ template "_internal/google_analytics.html" . }} {{- partial - "sections/v2/head.html" . -}} - + {{- partial "sections/v1/footer.html" . -}} + {{- partial "sections/v1/scripts.html" . -}} + +{{ else if eq .Site.Params.version 2 }} - - {{- partial "sections/v2/header.html" . -}} {{- partial - "sections/v2/about.html" . -}} {{- partial "sections/v2/do_things.html" . - -}} {{- partial "sections/v2/footer.html" . -}} {{- partial - "sections/v2/scripts.html" . -}} - + + {{- .Site.Title -}} + + + + + {{ template "_internal/google_analytics.html" . }} + {{- partial "sections/v2/head.html" . -}} + - {{ else if eq .Site.Params.version 3 }} + + {{- partial "sections/v2/header.html" . -}} + {{- partial "sections/v2/about.html" . -}} + {{- partial "sections/v2/do_things.html" . -}} + {{- partial "sections/v2/footer.html" . -}} + {{- partial "sections/v2/scripts.html" . -}} + - - {{- .Site.Title -}} - - - - - - {{ template "_internal/google_analytics.html" . }} {{- partial - "sections/v3/head.html" . -}} - - - +{{ else if eq .Site.Params.version 3 }} - - - + + {{- .Site.Title -}} + + + + + {{ template "_internal/google_analytics.html" . }} + {{- partial "sections/v3/head.html" . -}} + + + - - - - -
- {{- partial "sections/v3/navbar.html" . -}} {{ if - .Site.Params.disable_home }} {{ else }} {{- partial - "sections/v3/home.html" . -}} {{ end }} {{ if .Site.Params.disable_about - }} {{ else }} {{- partial "sections/v3/about.html" . -}} {{ end }} {{ if - .Site.Params.disable_experience }} {{ else }} {{- partial - "sections/v3/experience.html" . -}} {{ end }} {{ if - .Site.Params.disable_education }} {{ else }} {{- partial - "sections/v3/education.html" . -}} {{ end }} {{ if - .Site.Params.disable_projects }} {{ else }} {{- partial - "sections/v3/projects.html" . -}} {{ end }} {{ if - .Site.Params.disable_achievements }} {{ else }} {{- partial - "sections/v3/achievements.html" . -}} {{ end }} {{ if - .Site.Params.disable_contact }} {{ else }} {{- partial - "sections/v3/contact.html" . -}} {{ end }} {{- partial - "sections/v3/footer.html" . -}} {{- partial "sections/v3/scripts.html" . - -}} -
- + +
+ {{- partial "sections/v3/navbar.html" . -}} + + {{ if .Site.Params.disable_home }} + {{ else }} + {{- partial "sections/v3/home.html" . -}} + {{ end }} + + {{ if .Site.Params.disable_about }} + {{ else }} + {{- partial "sections/v3/about.html" . -}} + {{ end }} + + {{ if .Site.Params.disable_experience }} + {{ else }} + {{- partial "sections/v3/experience.html" . -}} + {{ end }} + + {{ if .Site.Params.disable_education }} + {{ else }} + {{- partial "sections/v3/education.html" . -}} + {{ end }} + + {{ if .Site.Params.disable_projects }} + {{ else }} + {{- partial "sections/v3/projects.html" . -}} + {{ end }} + + {{ if .Site.Params.disable_achievements }} + {{ else }} + {{- partial "sections/v3/achievements.html" . -}} + {{ end }} + + {{ if .Site.Params.disable_contact }} + {{ else }} + {{- partial "sections/v3/contact.html" . -}} + {{ end }} + + {{- partial "sections/v3/footer.html" . -}} + {{- partial "sections/v3/scripts.html" . -}} +
+ - - {{ else }} {{ end }} + + +{{ else }} + +{{ end }} + From 93dda15903302b9c04e3f9d1ce2b3966b072d409 Mon Sep 17 00:00:00 2001 From: Guru Sabarish Date: Sun, 25 Jul 2021 01:02:09 +0530 Subject: [PATCH 2/3] Update achievements.html --- layouts/partials/sections/v3/achievements.html | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/layouts/partials/sections/v3/achievements.html b/layouts/partials/sections/v3/achievements.html index ffa6974..13711e6 100644 --- a/layouts/partials/sections/v3/achievements.html +++ b/layouts/partials/sections/v3/achievements.html @@ -4,8 +4,10 @@
Achievements
- {{ range .Site.Params.achievements }} {{ if .img }} {{ $img = .img }} {{ - end }} + {{ range .Site.Params.achievements }} + {{ if .img }} + {{ $img = .img }} + {{ end }}
Date: Sun, 25 Jul 2021 01:05:04 +0530 Subject: [PATCH 3/3] build bug fix --- layouts/partials/sections/v3/experience.html | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/layouts/partials/sections/v3/experience.html b/layouts/partials/sections/v3/experience.html index 3cca31a..f910f4b 100644 --- a/layouts/partials/sections/v3/experience.html +++ b/layouts/partials/sections/v3/experience.html @@ -38,8 +38,8 @@ role="tablist" aria-orientation="vertical" > - {{ range $index, $element := .Site.Params.experience }} {{ if (eq $index - 0) }} + {{ range $index, $element := .Site.Params.experience }} + {{ if (eq $index 0) }} - {{ range $index, $element := .Site.Params.experience }} {{ if (eq $index - 0) }} + {{ range $index, $element := .Site.Params.experience }} + {{ if (eq $index 0) }}
- {{ end }} {{ end }} + {{ end }} + {{ end }}