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:
Diffstat (limited to 'layouts/partials/sections')
-rw-r--r--layouts/partials/sections/education.html64
-rw-r--r--layouts/partials/sections/experience.html45
-rw-r--r--layouts/partials/sections/header.html12
-rw-r--r--layouts/partials/sections/hero/social.html30
4 files changed, 95 insertions, 56 deletions
diff --git a/layouts/partials/sections/education.html b/layouts/partials/sections/education.html
new file mode 100644
index 0000000..7b0b5b9
--- /dev/null
+++ b/layouts/partials/sections/education.html
@@ -0,0 +1,64 @@
+{{ if .Site.Params.education.enable | default false }}
+<section id="education" class="py-5">
+ <div class="container">
+ <h3 class="text-center">Education</h3>
+ <div class="row justify-content-center py-5">
+ {{ $indexMenu := .Site.Params.education.index }}
+ {{ range $index, $element := .Site.Params.education.items }}
+ <div class="col-12">
+ <div class="row row align-items-center justify-content-center m-2 mb-4">
+ {{ if $indexMenu }}
+ <div class="col-md-1 text-center me-2 p-0 d-none d-md-block">
+ <div class="py-2">
+ <span class="index shadow-lg">
+ {{ add $index 1 }}
+ </span>
+ </div>
+ </div>
+ {{ end }}
+
+ <div class="col-md-9">
+ <div class="card">
+ <div class="card-body">
+ <div class="float-end">
+ <small>{{ .date }}</small>
+ </div>
+ <h5 class="card-title">{{ .title }}</h5>
+
+ {{ if .school.url }}
+ <a href="{{ .school.url }}" target="_blank">
+ <h6>
+ {{ .school.name }}
+ </h6>
+ </a>
+ {{ else }}
+ {{ .school.name }}
+ {{ end }}
+
+ <div class="py-1">
+ GPA:
+ <i>
+ <small>{{ .GPA }}</small>
+ </i>
+ </div>
+ <div class="py-1 education-content">
+ {{ .content | markdownify}}
+ </div>
+
+ {{ if .featuredLink.enable }}
+ <div class="py-1">
+ <a href="{{ .featuredLink.url }}" class="btn">
+ {{ .featuredLink.name | default "Featured" }}
+ </a>
+ </div>
+ {{ end }}
+ </div>
+ </div>
+ </div>
+ </div>
+ </div>
+ {{ end }}
+ </div>
+ </div>
+</section>
+{{ end }} \ No newline at end of file
diff --git a/layouts/partials/sections/experience.html b/layouts/partials/sections/experience.html
index 894e8f7..c64c490 100644
--- a/layouts/partials/sections/experience.html
+++ b/layouts/partials/sections/experience.html
@@ -1,3 +1,4 @@
+{{ if .Site.Params.experience.enable | default false }}
<section id="experience" class="py-5">
<div class="container">
<h3 class="text-center">Experience</h3>
@@ -57,6 +58,7 @@
{{ if .info.enable | default true }}
<span class="p-2">
<span
+ style="cursor: pointer;"
data-bs-toggle="tooltip"
data-bs-placement="top"
data-bs-original-title={{ .info.content | default (print "Working as a " .job " at " .company ) }}
@@ -95,6 +97,7 @@
{{ if .info.enable | default true }}
<span class="p-2">
<span
+ style="cursor: pointer;"
data-bs-toggle="tooltip"
data-bs-placement="top"
data-bs-original-title={{ .info.content | default (print "Worked as a " .job " at " .company ) }}
@@ -120,48 +123,10 @@
</div>
{{ end }}
{{ end }}
-
- <!-- <div class="tab-pane fade show active bg-transparent" id="pills-home" role="tabpanel"
- aria-labelledby="pills-home-tab">
- <h4>Software developer</h4>
- <small>Feb 2021 - present</small>
- <p>
- Home is some placeholder content the Contact tab's associated content. Clicking another
- tab
- will
- toggle the visibility
- of this one for the next.
- </p>
- <ul>
- <li>Lead backend developer for a product.</li>
- <li>Created a frontend design for a product.</li>
- </ul>
- </div>
- <div class="tab-pane fade bg-transparent" id="pills-profile" role="tabpanel"
- aria-labelledby="pills-profile-tab">
- Profile is some placeholder content the Contact tab's associated content. Clicking another
- tab
- will
- toggle the visibility
- of this one for the next. The tab JavaScript swaps classes to control the content visibility
- and
- styling. You can use it
- with tabs, pills, and any other .nav-powered navigation.
- </div>
- <div class="tab-pane fade bg-transparent" id="pills-contact" role="tabpanel"
- aria-labelledby="pills-contact-tab">
- Contact is some placeholder content the Contact tab's associated content. Clicking another
- tab
- will
- toggle the visibility
- of this one for the next. The tab JavaScript swaps classes to control the content visibility
- and
- styling. You can use it
- with tabs, pills, and any other .nav-powered navigation.
- </div> -->
</div>
</div>
</div>
</div>
</div>
-</section> \ No newline at end of file
+</section>
+{{ end }} \ No newline at end of file
diff --git a/layouts/partials/sections/header.html b/layouts/partials/sections/header.html
index 09fabe5..cea7ed8 100644
--- a/layouts/partials/sections/header.html
+++ b/layouts/partials/sections/header.html
@@ -58,14 +58,22 @@
</li>
{{ end }}
- {{ if not (.Site.Params.navbar.menus.disableExperience | default false) }}
+ {{
+ if and
+ (.Site.Params.experience.enable | default false)
+ (not (.Site.Params.navbar.menus.disableExperience | default false))
+ }}
<li class="nav-item navbar-text">
<a class="nav-link" href="{{ .Site.BaseURL | relURL }}#experience"
aria-label="experience">Experience</a>
</li>
{{ end }}
- {{ if not (.Site.Params.navbar.menus.disableEducation | default false) }}
+ {{
+ if and
+ (.Site.Params.education.enable | default false)
+ (not (.Site.Params.navbar.menus.disableEducation | default false))
+ }}
<li class="nav-item navbar-text">
<a class="nav-link" href="{{ .Site.BaseURL | relURL }}#education"
aria-label="education">Education</a>
diff --git a/layouts/partials/sections/hero/social.html b/layouts/partials/sections/hero/social.html
index b70df15..ab5e8ef 100644
--- a/layouts/partials/sections/hero/social.html
+++ b/layouts/partials/sections/hero/social.html
@@ -1,15 +1,17 @@
-{{ range .Site.Params.hero.socialLinks.fontAwesomeIcons }}
-<span class="px-1">
- <a href="{{ .url }}" target="_blank" class="btn social-icon">
- <i class="{{ .icon }}"></i>
- </a>
-</span>
-{{ end }}
+<span id="loading-icons" style="display: none;">
+ {{ range .Site.Params.hero.socialLinks.fontAwesomeIcons }}
+ <span class="px-1">
+ <a href="{{ .url }}" target="_blank" class="btn social-icon">
+ <i class="{{ .icon }}"></i>
+ </a>
+ </span>
+ {{ end }}
-{{ range .Site.Params.hero.socialLinks.customIcons }}
-<span class="px-1">
- <a href="{{ .url }}" target="_blank" class="btn social-icon">
- <img src="{{ .icon }}">
- </a>
-</span>
-{{ end }} \ No newline at end of file
+ {{ range .Site.Params.hero.socialLinks.customIcons }}
+ <span class="px-1">
+ <a href="{{ .url }}" target="_blank" class="btn social-icon">
+ <img src="{{ .icon }}">
+ </a>
+ </span>
+ {{ end }}
+</span> \ No newline at end of file