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:
authorWilliam Hou <whou125@gmail.com>2021-07-04 12:11:12 +0300
committerGitHub <noreply@github.com>2021-07-04 12:11:12 +0300
commit46952f6ab96086a669757ed3721ab7e7dcd63532 (patch)
treeeb0b72e875d7164dd10cef572315e3e27b526184 /layouts/partials/sections
parent4099f4f1e65299866e739b3be43b6d147ab16e61 (diff)
Remove about section whitespace when there are no soft skills/badges (#369)
* Remove about section whitespace when there are no soft skills * Check for badges in conditional
Diffstat (limited to 'layouts/partials/sections')
-rw-r--r--layouts/partials/sections/about.html3
1 files changed, 2 insertions, 1 deletions
diff --git a/layouts/partials/sections/about.html b/layouts/partials/sections/about.html
index 3bb02d6..9f26313 100644
--- a/layouts/partials/sections/about.html
+++ b/layouts/partials/sections/about.html
@@ -11,7 +11,8 @@
<div class="container anchor p-lg-5 about-section" id="{{ $sectionID }}">
<div class="row pt-sm-2 pt-md-4 align-self-center">
<!-- summary -->
- <div class="col-sm-6">
+ <!-- takes up full section width if no badges/soft skills are specified -->
+ {{ if or (.softSkills) (.badges) }} <div class="col-sm-6"> {{ else }} <div class="col-sm-12"> {{ end }}
<h3 class="p-1">{{ $author.name }}</h3>
{{ if .designation }}
<h5 class="p-1">