+ education and social buttons

This commit is contained in:
shockrah
2021-11-04 17:25:48 -07:00
parent 616836e9fb
commit c5bb512470
6 changed files with 54 additions and 64 deletions

View File

@@ -4,7 +4,7 @@
<body>
<nav class="navbar navbar-expand-lg navbar-dark bg-dark">
<a class="navbar-brand"><img src="/images/favicon.png" width="30", height="30" class="d-inline-block align-top" alt="">
<strong>Why not look through my:</strong>
<strong>Sections</strong>
</a>
<button class="navbar-toggler" type="button" data-toggle="collapse">
<span class="navbar-toggler-icon"></span>
@@ -28,12 +28,24 @@
<div class="headline">
<h1 class="headline-title reveal-text">{{.Site.Title}}</h1>
<p class="reveal-text" style="font-size: 2rem;">{{.Site.Params.Description}}</p>
<!-- TODO: move this into a partial for better control -->
{{ if .Site.Params.Gitlab }}
<a class="socials" href="{{.Site.Params.Gitlab}}">
<i class="fab fa-gitlab"></i>
</a>
{{ end }}
{{ if .Site.Params.Linkedin }}
<a class="socials" href="{{.Site.Params.Linkedin}}">
<i class="fab fa-linkedin-in"></i>
</a>
{{ end }}
</div>
</div>
<div class="container">
{{- partial "projects.html" . -}}
{{- partial "experience.html" . -}}
{{- partial "education.html" . -}}
</div>
</body>
</html>

View File

@@ -0,0 +1,17 @@
{{ with .Site.GetPage "/education" }}
<h1 class="section-header" id="education">{{.Title}}</h1>
<div class="section">
<ul>
{{ range .Pages }}
<li style="list-style-type: none;">
<a><strong class="bigger">{{.Params.Institution}}</strong></a>
{{ if .Params.Degree }}
<p class="text-muted">{{.Params.When}}</p>
{{ end }}
<p>{{.Content}}</p>
</li>
{{ end }}
</ul>
</div>
{{ end }}

View File

@@ -2,7 +2,7 @@
<h1 class="section-header" id="experience">{{.Title}}</h1>
<div class="section">
<ul class="timeline">
{{ range .Pages }}
{{ range (.Paginate (.Pages.ByParam "rank")).Pages }}
<li>
<a>
<strong class="bigger">{{.Title}}</strong>

View File

@@ -0,0 +1,10 @@
{{ if .Site.Params.Gitlab }}
<a class="socials" href="{{.Site.Params.Gitlab}}">
<i class="fab fa-gitlab"></i>
</a>
{{ end }}
{{ if .Site.Params.Linkedin }}
<a class="socials" href="{{.Site.Params.Linkedin}}">
<i class="fab fa-linkedin-in"></i>
</a>
{{ end }}

View File

@@ -72,6 +72,11 @@ html {
font-weight: bold;
}
.socials {
display:inline;
font-size: 1.5rem;
}
.reveal-text {
animation: slideIn 1.2s;
animation-delay: 750ms;
@@ -178,4 +183,4 @@ ul.timeline > li:before {
.bigger {
font-size: 1.5rem;
}
}