feat: add choice of position for the sidebar

This commit is contained in:
Stephane Philippart 2023-02-12 17:52:42 +01:00
parent 0d8fce9100
commit b696e746bd
No known key found for this signature in database
GPG Key ID: 9EB1C5CAC6F92CF1
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