Allow section titles to be hidden within the section themselves

This commit is contained in:
Jason Tipton 2020-06-30 13:24:17 -08:00
parent 2936164cc1
commit be1974a6e1
10 changed files with 25 additions and 6 deletions

View file

@ -4,6 +4,8 @@ section:
enable: true
weight: 6
showOnNavbar: true
# Can optionally hide the title in sections
# hideTitle: true
# Your achievements achievements
achievements:

View file

@ -4,7 +4,8 @@ section:
enable: true
weight: 3
showOnNavbar: true
# Can optionally hide the title in sections
# hideTitle: true
# Your experiences
experiences:

View file

@ -4,6 +4,8 @@ section:
enable: true
weight: 4
showOnNavbar: true
# Can optionally hide the title in sections
# hideTitle: true
# filter buttons
buttons:

View file

@ -4,5 +4,7 @@ section:
enable: true
weight: 5
showOnNavbar: true
# Can optionally hide the title in sections
# hideTitle: true
# no other configuration is required

View file

@ -4,6 +4,8 @@ section:
enable: true
weight: 2
showOnNavbar: true
# Can optionally hide the title in sections
# hideTitle: true
# Your Skills.
# Give a summary of you each skill in the summary section.

View file

@ -1,5 +1,7 @@
<div class="container-fluid anchor pb-5 achievements-section" id="{{ replace (lower .section.name) " " "-" }}">
<h1 class="text-center">{{ .section.name }}</h1>
{{ if not (.section.hideTitle) }}
<h1 class="text-center">{{ .section.name }}</h1>
{{ end }}
<div class="container">
<div class="row" id="gallery">
</div>

View file

@ -1,5 +1,7 @@
<div class="container-fluid anchor pb-5 experiences-section" id="{{ replace (lower .section.name) " " "-" }}">
<h1 class="text-center">{{ .section.name }}</h1>
{{ if not (.section.hideTitle) }}
<h1 class="text-center">{{ .section.name }}</h1>
{{ end }}
<div class="container timeline text-justify">
{{ $totalExperiences:= len .experiences }}

View file

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

View file

@ -1,5 +1,7 @@
<div class="container-fluid anchor pb-5 recent-posts-section" id="{{ replace (lower .section.name) " " "-" }}">
<h1 class="text-center">{{ .section.name }}</h1>
{{ if not (.section.hideTitle) }}
<h1 class="text-center">{{ .section.name }}</h1>
{{ end }}
<div class="container">
<div class="row" id="recent-post-cards">
{{ range first 3 (where site.RegularPages.ByDate.Reverse "Type" "in" site.Params.mainSections )}}

View file

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