Configure section title and menu urls in section yaml files

This commit is contained in:
Jason Tipton 2020-06-29 20:47:41 -08:00
parent 45535cd290
commit ff692650a7
7 changed files with 114 additions and 99 deletions

View file

@ -33,7 +33,11 @@
{{ range sort .Site.Data.sections "section.weight" }}
{{ if .section.enable }}
<div class="container-fluid section-holder d-flex {{ $background }}">
{{ if .section.template }}
{{- partial .section.template . -}}
{{ else }}
{{- partial (printf "%s.html" (replace (lower .section.name) " " "-")) . -}}
{{ end }}
</div>
<!--- alter background color for next section --->
{{ if eq $background "bg-white" }}

View file

@ -1,4 +1,5 @@
<div class="container anchor p-md-5" id="about">
<div class="container anchor p-md-5" id="{{ replace (lower .section.name) " " "-" }}">
<div id="about">
<div class="row pt-sm-2 pt-md-4 align-self-center">
<!-- summery -->
<div class="col-md-6">
@ -42,4 +43,5 @@
</div>
</div>
</div>
</div>
</div>

View file

@ -1,4 +1,5 @@
<div class="container-fluid anchor pb-5" id="achievements">
<div class="container-fluid anchor pb-5" id="{{ replace (lower .section.name) " " "-" }}">
<div id="achievements">
<h1 class="text-center">{{ .section.name }}</h1>
<div class="container">
<div class="row" id="gallery">
@ -10,4 +11,5 @@
{{ partial "misc/achievement.html" . }}
{{ end }}
</div>
</div>
</div>

View file

@ -1,4 +1,5 @@
<div class="container-fluid anchor" id="experiences">
<div class="container-fluid anchor pb-5" id="{{ replace (lower .section.name) " " "-" }}">
<div id="experiences">
<h1 class="text-center">{{ .section.name }}</h1>
<div class="container timeline text-justify">
@ -20,4 +21,5 @@
{{ end }}
{{ end }}
</div>
</div>
</div>

View file

@ -1,4 +1,5 @@
<div class="container-fluid anchor pb-5" id="projects">
<div class="container-fluid anchor pb-5" id="{{ replace (lower .section.name) " " "-" }}">
<div id="projects">
<h1 class="text-center">{{ .section.name }}</h1>
<div class="container ml-auto text-center">
<div class="btn-group flex-wrap" role="group" id="project-filter-buttons">
@ -16,4 +17,5 @@
{{ end }}
</div>
</div>
</div>
</div>

View file

@ -1,4 +1,5 @@
<div class="container-fluid anchor pb-5" id="recent-posts">
<div class="container-fluid anchor pb-5" id="{{ replace (lower .section.name) " " "-" }}">
<div id="recent-posts">
<h1 class="text-center">{{ .section.name }}</h1>
<div class="container">
<div class="row" id="recent-post-cards">
@ -7,4 +8,5 @@
{{ end }}
</div>
</div>
</div>
</div>

View file

@ -1,6 +1,6 @@
<div class="container-fluid anchor pb-5" id="skills">
<div class="container-fluid anchor pb-5" id="{{ replace (lower .section.name) " " "-" }}">
<div id="skills">
<h1 class="text-center">{{ .section.name }}</h1>
<div class="container d-flex-block">
<div class="row" id="primary-skills">
{{ range .skills }}
@ -8,4 +8,5 @@
{{ end }}
</div>
</div>
</div>
</div>