forked from robert/robertjohnson.work
Merge pull request #359 from philippart-s/sidebar-order
feat: ✨ add choice of position for the sidebar
This commit is contained in:
commit
80eb73d656
@ -3,6 +3,7 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
sidebar:
|
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
|
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
|
education: True # set to False if you want education in main section instead of in sidebar
|
||||||
|
|
||||||
|
@ -45,7 +45,7 @@ p {
|
|||||||
|
|
||||||
.sidebar-wrapper {
|
.sidebar-wrapper {
|
||||||
grid-column: span 3;
|
grid-column: span 3;
|
||||||
order: 2;
|
order: $sidebar-order;
|
||||||
background: $theme-color;
|
background: $theme-color;
|
||||||
color: #fff;
|
color: #fff;
|
||||||
a {
|
a {
|
||||||
@ -161,6 +161,7 @@ p {
|
|||||||
|
|
||||||
.main-wrapper {
|
.main-wrapper {
|
||||||
grid-column: span 7;
|
grid-column: span 7;
|
||||||
|
order: $resume-order;
|
||||||
background: #fff;
|
background: #fff;
|
||||||
padding: 60px;
|
padding: 60px;
|
||||||
.section-title {
|
.section-title {
|
||||||
|
@ -4,5 +4,15 @@
|
|||||||
|
|
||||||
@charset "utf-8";
|
@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 "skins/{{ site.theme_skin | default: 'blue' }}"; // skin
|
||||||
@import "default"; // main partials
|
@import "default"; // main partials
|
||||||
|
Loading…
Reference in New Issue
Block a user