From 325e3bc8ee81663d23e29be7604ff22252af38bc Mon Sep 17 00:00:00 2001 From: Oscar Lopez Date: Wed, 17 Aug 2022 17:33:16 -0500 Subject: Added option to add custom titles to sections --- exampleSite/config.yaml | 5 +++++ layouts/partials/sections/achievements.html | 2 +- layouts/partials/sections/contact.html | 2 +- layouts/partials/sections/education.html | 2 +- layouts/partials/sections/experience.html | 2 +- layouts/partials/sections/projects.html | 2 +- 6 files changed, 10 insertions(+), 5 deletions(-) diff --git a/exampleSite/config.yaml b/exampleSite/config.yaml index 7c21f3b..7fe0cea 100644 --- a/exampleSite/config.yaml +++ b/exampleSite/config.yaml @@ -141,6 +141,7 @@ params: # Experience experience: enable: true + # title: "Custom Name" items: - job: "Senior Software Developer" company: "Facebook" @@ -205,6 +206,7 @@ params: # Education education: enable: true + # title: "Custom Name" # index: true items: - title: "Master of Business Administration" @@ -247,6 +249,7 @@ params: # Achievements achievements: enable: true + # title: "Custom Name" items: - title: Google kickstart runner content: I solved all problems with optimal solution. @@ -265,6 +268,7 @@ params: # projects projects: enable: true + # title: "Custom Name" items: - title: Hugo Profile content: A highly customizable and mobile first Hugo template for personal portfolio and blog. @@ -314,6 +318,7 @@ params: #Contact contact: enable: true + #title: "Custom name" content: My inbox is always open. Whether you have a question or just want to say hi, I’ll try my best to get back to you! email: gurusabarisha@gmail.com btnName: Mail me diff --git a/layouts/partials/sections/achievements.html b/layouts/partials/sections/achievements.html index 9e35415..1207c72 100644 --- a/layouts/partials/sections/achievements.html +++ b/layouts/partials/sections/achievements.html @@ -1,7 +1,7 @@ {{ if .Site.Params.achievements.enable | default false }}
-

Achievements

+

{{ .Site.Params.achievements.title | default "Achievements" }}

{{ range .Site.Params.achievements.items }} diff --git a/layouts/partials/sections/contact.html b/layouts/partials/sections/contact.html index 32aeed3..fcd6aeb 100644 --- a/layouts/partials/sections/contact.html +++ b/layouts/partials/sections/contact.html @@ -1,7 +1,7 @@ {{ if .Site.Params.contact.enable | default false }}
-

Get In Touch

+

{{ .Site.Params.contact.title | default "Get in Touch" }}

diff --git a/layouts/partials/sections/education.html b/layouts/partials/sections/education.html index f2a5f04..922c798 100644 --- a/layouts/partials/sections/education.html +++ b/layouts/partials/sections/education.html @@ -1,7 +1,7 @@ {{ if .Site.Params.education.enable | default false }}
-

Education

+

{{ Site.Params.education.title | default "Education" }}

{{ $indexMenu := .Site.Params.education.index }} {{ range $index, $element := .Site.Params.education.items }} diff --git a/layouts/partials/sections/experience.html b/layouts/partials/sections/experience.html index c64c490..0154d6e 100644 --- a/layouts/partials/sections/experience.html +++ b/layouts/partials/sections/experience.html @@ -1,7 +1,7 @@ {{ if .Site.Params.experience.enable | default false }}
-

Experience

+

{{ .Site.Params.experience.title | default "Experience" }}

diff --git a/layouts/partials/sections/projects.html b/layouts/partials/sections/projects.html index c7c0129..dae4694 100644 --- a/layouts/partials/sections/projects.html +++ b/layouts/partials/sections/projects.html @@ -1,7 +1,7 @@ {{ if .Site.Params.projects.enable | default false }}
-

Projects

+

{{ .Site.Params.projects.title | default "Projects" }}

{{ range .Site.Params.projects.items }}
-- cgit v1.2.3