Added education in home

This commit is contained in:
gurusabarish
2022-02-28 19:28:45 +05:30
parent f8eb6d0646
commit 54ecbb65c4
9 changed files with 240 additions and 61 deletions
+1 -1
View File
@@ -9,7 +9,7 @@
</title>
</head>
<body class="light">
<body class="light" onload="loading()">
<!-- javascripts -->
<!-- <script src="/js/jquery-3.6.0.min.js"></script> -->
<script src="/bootstrap-5/js/bootstrap.bundle.js"></script>
+1
View File
@@ -15,6 +15,7 @@
{{- partial "sections/hero/index.html" . -}}
{{- partial "sections/about.html" . -}}
{{- partial "sections/experience.html" . -}}
{{- partial "sections/education.html" . -}}
{{- partial "sections/projects.html" . -}}
{{- partial "sections/achievements.html" . -}}
{{- partial "sections/contact.html" . -}}
+15 -1
View File
@@ -16,4 +16,18 @@
})
</script>
{{- end }}
{{- end }}
<script>
let loadingIcons;
function loading() {
myVar = setTimeout(showPage, 100);
}
function showPage() {
try{
document.getElementById("loading-icons").style.display = "block";
} catch(err) {}
}
</script>
+64
View File
@@ -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 }}
+5 -40
View File
@@ -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>
</section>
{{ end }}
+10 -2
View File
@@ -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>
+16 -14
View File
@@ -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 }}
{{ 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>