Merge pull request #359 from philippart-s/sidebar-order

feat:  add choice of position for the sidebar
This commit is contained in:
Sharath Kumar 2023-07-04 06:54:56 +05:30 committed by GitHub
commit 80eb73d656
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 13 additions and 1 deletions

View File

@ -3,6 +3,7 @@
#
sidebar:
position: left # position of the sidebar : left or right
about: True # set to False or comment line if you want to remove the "how to use?" in the sidebar
education: True # set to False if you want education in main section instead of in sidebar

View File

@ -45,7 +45,7 @@ p {
.sidebar-wrapper {
grid-column: span 3;
order: 2;
order: $sidebar-order;
background: $theme-color;
color: #fff;
a {
@ -161,6 +161,7 @@ p {
.main-wrapper {
grid-column: span 7;
order: $resume-order;
background: #fff;
padding: 60px;
.section-title {

View File

@ -4,5 +4,15 @@
@charset "utf-8";
// define variable with front matter
{% if site.data.data.sidebar.position == 'left' %}
$resume-order: 2;
$sidebar-order: 1;
{% else %}
$resume-order: 1;
$sidebar-order: 2;
{% endif %}
@import "skins/{{ site.theme_skin | default: 'blue' }}"; // skin
@import "default"; // main partials