From 9a8672e1f1d6eaf4d0aaa1f75e3422f2ad237e2d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nelson=20Estev=C3=A3o?= Date: Wed, 25 Jul 2018 14:54:05 +0100 Subject: [PATCH] Update image profile class --- _data/data.yml | 4 ++-- _includes/sidebar.html | 4 +++- _sass/_base.scss | 2 +- _sass/_print.scss | 2 +- 4 files changed, 7 insertions(+), 5 deletions(-) diff --git a/_data/data.yml b/_data/data.yml index fbd6e3c..63c6517 100644 --- a/_data/data.yml +++ b/_data/data.yml @@ -6,12 +6,12 @@ sidebar: # Site Settings title: My Resume url: 'http://webjeda.com' - 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 # Profile information name: Alan Doe tagline: Full Stack Developer - pic: profile.png #place a 100x100 picture inside /assets/images/ folder and provide the name of the file below + avatar: profile.png #place a 100x100 picture inside /assets/images/ folder and provide the name of the file below # Sidebar links email: hello@webjeda.com diff --git a/_includes/sidebar.html b/_includes/sidebar.html index 1b1f2c3..13c3dc0 100644 --- a/_includes/sidebar.html +++ b/_includes/sidebar.html @@ -3,7 +3,9 @@
- profile picture + {% if site.data.data.sidebar.name %} + profile picture + {% endif %} {% if site.data.data.sidebar.name %}

{{site.data.data.sidebar.name}}

diff --git a/_sass/_base.scss b/_sass/_base.scss index 7fd45de..81d781c 100644 --- a/_sass/_base.scss +++ b/_sass/_base.scss @@ -71,7 +71,7 @@ p { margin-bottom: 15px; } - .profile-img { + .avatar { //used for profile image max-width: 100px; margin-bottom: 15px; diff --git a/_sass/_print.scss b/_sass/_print.scss index 0e848ad..cc77ade 100644 --- a/_sass/_print.scss +++ b/_sass/_print.scss @@ -7,7 +7,7 @@ font-size: 12pt; } - img.profile-img { + img.avatar { filter: grayscale(1); -webkit-filter: greyscale(1); }