forked from robert/robertjohnson.work
feat: ✨ add choice of position for the sidebar
This commit is contained in:
parent
0d8fce9100
commit
b696e746bd
@ -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
|
||||
|
||||
|
@ -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 {
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user