Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/hossainemruz/toha.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Tipton <jason@blueyetisoftware.com>2020-07-03 22:04:30 +0300
committerGitHub <noreply@github.com>2020-07-03 22:04:30 +0300
commita83b1c5658c5bcb3f82a794b249cda8bd58e1550 (patch)
tree3b478385181864d2d4d71f3a7a8b2df3e3c69397 /layouts/partials
parent2936164cc16e4cd05b13795dec7193dade089761 (diff)
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
Diffstat (limited to 'layouts/partials')
-rw-r--r--layouts/partials/achievements.html4
-rw-r--r--layouts/partials/experiences.html4
-rw-r--r--layouts/partials/footer.html2
-rw-r--r--layouts/partials/navbar.html2
-rw-r--r--layouts/partials/projects.html4
-rw-r--r--layouts/partials/recent-posts.html4
-rw-r--r--layouts/partials/skills.html4
7 files changed, 17 insertions, 7 deletions
diff --git a/layouts/partials/achievements.html b/layouts/partials/achievements.html
index 1805631..75995a9 100644
--- a/layouts/partials/achievements.html
+++ b/layouts/partials/achievements.html
@@ -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>
diff --git a/layouts/partials/experiences.html b/layouts/partials/experiences.html
index 5c63d14..d63b319 100644
--- a/layouts/partials/experiences.html
+++ b/layouts/partials/experiences.html
@@ -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 }}
diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html
index 8c8649a..77693ce 100644
--- a/layouts/partials/footer.html
+++ b/layouts/partials/footer.html
@@ -6,7 +6,7 @@
{{ if .Site.Data.sections }}
<ul>
{{- range sort .Site.Data.sections "section.weight" }}
- {{ if .section.enable }}
+ {{ if and (.section.enable) (.section.showOnNavbar)}}
<li class="nav-item">
<a class="smooth-scroll" href="#{{ replace (lower .section.name) " " "-" }}">{{ .section.name }}</a>
</li>
diff --git a/layouts/partials/navbar.html b/layouts/partials/navbar.html
index 00570c7..dc1b872 100644
--- a/layouts/partials/navbar.html
+++ b/layouts/partials/navbar.html
@@ -21,7 +21,7 @@
</li>
{{- if .Site.Data.sections }}
{{- range sort .Site.Data.sections "section.weight" }}
- {{ if (and .section.enable .section.showOnNavbar) }}
+ {{ if and (.section.enable) (.section.showOnNavbar)}}
<li class="nav-item">
<a class="nav-link smooth-scroll" href="#{{ replace (lower .section.name) " " "-" }}">{{ .section.name }}</a>
</li>
diff --git a/layouts/partials/projects.html b/layouts/partials/projects.html
index e8a9f35..fc23c72 100644
--- a/layouts/partials/projects.html
+++ b/layouts/partials/projects.html
@@ -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 }}
diff --git a/layouts/partials/recent-posts.html b/layouts/partials/recent-posts.html
index 03142fc..2d0cc87 100644
--- a/layouts/partials/recent-posts.html
+++ b/layouts/partials/recent-posts.html
@@ -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 )}}
diff --git a/layouts/partials/skills.html b/layouts/partials/skills.html
index 5fab89a..8790be6 100644
--- a/layouts/partials/skills.html
+++ b/layouts/partials/skills.html
@@ -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 }}