Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/gurusabarish/hugo-profile.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOscar Lopez <oscareduardolp6@gmail.com>2022-08-18 01:33:16 +0300
committerOscar Lopez <oscareduardolp6@gmail.com>2022-08-18 01:33:16 +0300
commit325e3bc8ee81663d23e29be7604ff22252af38bc (patch)
treefe635a61d0bc16d8181cf88bf6c7327963e4c083
parenta17736285164e678d6480ddd876474de4aaaedf7 (diff)
Added option to add custom titles to sections
-rw-r--r--exampleSite/config.yaml5
-rw-r--r--layouts/partials/sections/achievements.html2
-rw-r--r--layouts/partials/sections/contact.html2
-rw-r--r--layouts/partials/sections/education.html2
-rw-r--r--layouts/partials/sections/experience.html2
-rw-r--r--layouts/partials/sections/projects.html2
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 }}
<section id="achievements" class="py-5">
<div class="container">
- <h3 class="text-center">Achievements</h3>
+ <h3 class="text-center">{{ .Site.Params.achievements.title | default "Achievements" }}</h3>
<div class="px-0 px-md-5 px-lg-5">
<div class="row justify-content-center px-3 px-md-5 px-lg-5">
{{ 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 }}
<section id="contact" class="py-5">
<div class="container">
- <h3 class="text-center">Get In Touch</h3>
+ <h3 class="text-center">{{ .Site.Params.contact.title | default "Get in Touch" }}</h3>
<div class="px-0 px-md-5 px-lg-5">
<div class="row justify-content-center px-md-5">
<div class="col-md-8 py-3">
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 }}
<section id="education" class="py-5">
<div class="container">
- <h3 class="text-center">Education</h3>
+ <h3 class="text-center">{{ Site.Params.education.title | default "Education" }}</h3>
<div class="row justify-content-center py-5">
{{ $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 }}
<section id="experience" class="py-5">
<div class="container">
- <h3 class="text-center">Experience</h3>
+ <h3 class="text-center">{{ .Site.Params.experience.title | default "Experience" }}</h3>
<div class="row justify-content-center">
<div class="col-sm-12 col-md-8 col-lg-8 py-5">
<div class="experience-container px-3 pt-2">
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 }}
<section id="projects" class="py-5">
<div class="container">
- <h3 class="text-center">Projects</h3>
+ <h3 class="text-center">{{ .Site.Params.projects.title | default "Projects" }}</h3>
<div class="row justify-content-center px-3 px-md-5">
{{ range .Site.Params.projects.items }}
<div class="col-lg-4 col-md-6 my-3">