Allow section titles to be hidden inline (#24)
* Allow section titles to be hidden within the section themselves * Show sections in footer to match navbar
This commit is contained in:
parent
2936164cc1
commit
a83b1c5658
12 changed files with 27 additions and 8 deletions
|
@ -4,6 +4,8 @@ section:
|
||||||
enable: true
|
enable: true
|
||||||
weight: 6
|
weight: 6
|
||||||
showOnNavbar: true
|
showOnNavbar: true
|
||||||
|
# Can optionally hide the title in sections
|
||||||
|
# hideTitle: true
|
||||||
|
|
||||||
# Your achievements achievements
|
# Your achievements achievements
|
||||||
achievements:
|
achievements:
|
||||||
|
|
|
@ -4,7 +4,8 @@ section:
|
||||||
enable: true
|
enable: true
|
||||||
weight: 3
|
weight: 3
|
||||||
showOnNavbar: true
|
showOnNavbar: true
|
||||||
|
# Can optionally hide the title in sections
|
||||||
|
# hideTitle: true
|
||||||
|
|
||||||
# Your experiences
|
# Your experiences
|
||||||
experiences:
|
experiences:
|
||||||
|
|
|
@ -4,6 +4,8 @@ section:
|
||||||
enable: true
|
enable: true
|
||||||
weight: 4
|
weight: 4
|
||||||
showOnNavbar: true
|
showOnNavbar: true
|
||||||
|
# Can optionally hide the title in sections
|
||||||
|
# hideTitle: true
|
||||||
|
|
||||||
# filter buttons
|
# filter buttons
|
||||||
buttons:
|
buttons:
|
||||||
|
|
|
@ -4,5 +4,7 @@ section:
|
||||||
enable: true
|
enable: true
|
||||||
weight: 5
|
weight: 5
|
||||||
showOnNavbar: true
|
showOnNavbar: true
|
||||||
|
# Can optionally hide the title in sections
|
||||||
|
# hideTitle: true
|
||||||
|
|
||||||
# no other configuration is required
|
# no other configuration is required
|
||||||
|
|
|
@ -4,6 +4,8 @@ section:
|
||||||
enable: true
|
enable: true
|
||||||
weight: 2
|
weight: 2
|
||||||
showOnNavbar: true
|
showOnNavbar: true
|
||||||
|
# Can optionally hide the title in sections
|
||||||
|
# hideTitle: true
|
||||||
|
|
||||||
# Your Skills.
|
# Your Skills.
|
||||||
# Give a summary of you each skill in the summary section.
|
# Give a summary of you each skill in the summary section.
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
<div class="container-fluid anchor pb-5 achievements-section" id="{{ replace (lower .section.name) " " "-" }}">
|
<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="container">
|
||||||
<div class="row" id="gallery">
|
<div class="row" id="gallery">
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
<div class="container-fluid anchor pb-5 experiences-section" id="{{ replace (lower .section.name) " " "-" }}">
|
<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">
|
<div class="container timeline text-justify">
|
||||||
{{ $totalExperiences:= len .experiences }}
|
{{ $totalExperiences:= len .experiences }}
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
{{ if .Site.Data.sections }}
|
{{ if .Site.Data.sections }}
|
||||||
<ul>
|
<ul>
|
||||||
{{- range sort .Site.Data.sections "section.weight" }}
|
{{- range sort .Site.Data.sections "section.weight" }}
|
||||||
{{ if .section.enable }}
|
{{ if and (.section.enable) (.section.showOnNavbar)}}
|
||||||
<li class="nav-item">
|
<li class="nav-item">
|
||||||
<a class="smooth-scroll" href="#{{ replace (lower .section.name) " " "-" }}">{{ .section.name }}</a>
|
<a class="smooth-scroll" href="#{{ replace (lower .section.name) " " "-" }}">{{ .section.name }}</a>
|
||||||
</li>
|
</li>
|
||||||
|
|
|
@ -21,7 +21,7 @@
|
||||||
</li>
|
</li>
|
||||||
{{- if .Site.Data.sections }}
|
{{- if .Site.Data.sections }}
|
||||||
{{- range sort .Site.Data.sections "section.weight" }}
|
{{- range sort .Site.Data.sections "section.weight" }}
|
||||||
{{ if (and .section.enable .section.showOnNavbar) }}
|
{{ if and (.section.enable) (.section.showOnNavbar)}}
|
||||||
<li class="nav-item">
|
<li class="nav-item">
|
||||||
<a class="nav-link smooth-scroll" href="#{{ replace (lower .section.name) " " "-" }}">{{ .section.name }}</a>
|
<a class="nav-link smooth-scroll" href="#{{ replace (lower .section.name) " " "-" }}">{{ .section.name }}</a>
|
||||||
</li>
|
</li>
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
<div class="container-fluid anchor pb-5 projects-section" id="{{ replace (lower .section.name) " " "-" }}">
|
<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="container ml-auto text-center">
|
||||||
<div class="btn-group flex-wrap" role="group" id="project-filter-buttons">
|
<div class="btn-group flex-wrap" role="group" id="project-filter-buttons">
|
||||||
{{ range .buttons }}
|
{{ range .buttons }}
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
<div class="container-fluid anchor pb-5 recent-posts-section" id="{{ replace (lower .section.name) " " "-" }}">
|
<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="container">
|
||||||
<div class="row" id="recent-post-cards">
|
<div class="row" id="recent-post-cards">
|
||||||
{{ range first 3 (where site.RegularPages.ByDate.Reverse "Type" "in" site.Params.mainSections )}}
|
{{ range first 3 (where site.RegularPages.ByDate.Reverse "Type" "in" site.Params.mainSections )}}
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
<div class="container-fluid anchor pb-5 skills-section" id="{{ replace (lower .section.name) " " "-" }}">
|
<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="container d-flex-block">
|
||||||
<div class="row" id="primary-skills">
|
<div class="row" id="primary-skills">
|
||||||
{{ range .skills }}
|
{{ range .skills }}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue