From ff692650a7ca228a45f35d60b841265a6c2343b6 Mon Sep 17 00:00:00 2001 From: Jason Tipton Date: Mon, 29 Jun 2020 20:47:41 -0800 Subject: [PATCH] Configure section title and menu urls in section yaml files --- layouts/index.html | 6 ++- layouts/partials/about.html | 78 +++++++++++++++--------------- layouts/partials/achievements.html | 22 +++++---- layouts/partials/experiences.html | 42 ++++++++-------- layouts/partials/projects.html | 32 ++++++------ layouts/partials/recent-posts.html | 16 +++--- layouts/partials/skills.html | 17 ++++--- 7 files changed, 114 insertions(+), 99 deletions(-) diff --git a/layouts/index.html b/layouts/index.html index 507e1a8..a7f621c 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -33,7 +33,11 @@ {{ range sort .Site.Data.sections "section.weight" }} {{ if .section.enable }}
- {{- partial (printf "%s.html" (replace (lower .section.name) " " "-")) . -}} + {{ if .section.template }} + {{- partial .section.template . -}} + {{ else }} + {{- partial (printf "%s.html" (replace (lower .section.name) " " "-")) . -}} + {{ end }}
{{ if eq $background "bg-white" }} diff --git a/layouts/partials/about.html b/layouts/partials/about.html index 2af5476..f4f542b 100644 --- a/layouts/partials/about.html +++ b/layouts/partials/about.html @@ -1,44 +1,46 @@ -
-
- -
+
+
+
+ +

{{ site.Params.author.name }}

- {{ if .designation }} -
- {{ .designation }} - {{ if .company }} - at {{ .company.name }} - {{ end }} -
- {{ end }} -

- {{ .summary | markdownify }} -

-
- -
- {{ if .resume }} - - {{ end }} -
- -
-
- {{ range .softSkills }} - {{ partial "progress/soft-skills" . }} + {{ end }} +

+ {{ .summary | markdownify }} +

+
+ +
+ {{ if .resume }} + + {{ end }} +
+ +
+
+ {{ range .softSkills }} + {{ partial "progress/soft-skills" . }} + {{ end }} +
diff --git a/layouts/partials/achievements.html b/layouts/partials/achievements.html index 49b3ce9..599d6cf 100644 --- a/layouts/partials/achievements.html +++ b/layouts/partials/achievements.html @@ -1,13 +1,15 @@ -
-

{{ .section.name }}

-
-