Allow swapping bar left and right bar in config

This commit is contained in:
ineesalmeida 2023-01-04 22:26:39 +00:00
parent 80bcfa8449
commit f7d1aa9766
3 changed files with 21 additions and 0 deletions

View file

@ -32,4 +32,15 @@
@include shadow(0.5);
}
&__swapped {
&__left {
float: right;
}
&__right {
float: left;
left: 1rem;
}
}
}

View file

@ -25,3 +25,5 @@ colorRightColumnBodyText = "#666"
colorRightColumnIconPrimary = "#fff"
colorRightColumnIconBackground = "#e3bfb8"
pages = 1
# Set this param to 'true' to swap the bar positions
swapColumns = false

View file

@ -5,14 +5,22 @@
{{ partial "head.html" . }}
<body>
<div class="content">
{{ if .Site.Params.swapColumns }}
<div class="content__left content__swapped__left">
{{ else }}
<div class="content__left">
{{ end }}
<h1 class="mainHeading">{{ $data.BasicInfo.FirstName }} <span>{{ $data.BasicInfo.LastName }}</span></h1>
{{ partial "_profile.html" $data }}
{{ partial "_experience.html" $data }}
{{ partial "_education.html" $data }}
{{ partial "_references.html" $data }}
</div>
{{ if .Site.Params.swapColumns }}
<div class="content__right content__swapped__right">
{{ else }}
<div class="content__right">
{{ end }}
{{ partial "_avatar.html" $data }}
{{ partial "_contacts.html" $data }}
{{ partial "_skills.html" $data }}