Update image profile class

This commit is contained in:
Nelson Estevão 2018-07-25 14:54:05 +01:00
parent 6e4464af39
commit 9a8672e1f1
4 changed files with 7 additions and 5 deletions

View File

@ -6,12 +6,12 @@ sidebar:
# Site Settings # Site Settings
title: My Resume title: My Resume
url: 'http://webjeda.com' 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 # Profile information
name: Alan Doe name: Alan Doe
tagline: Full Stack Developer 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 # Sidebar links
email: hello@webjeda.com email: hello@webjeda.com

View File

@ -3,7 +3,9 @@
<div class="profile-container"> <div class="profile-container">
<img class="profile-img" src="{{site.baseurl}}/assets/images/{{ site.data.data.sidebar.pic }}" alt="profile picture" /> {% if site.data.data.sidebar.name %}
<img class="avatar" src="{{ site.baseurl }}/assets/images/{{ site.data.data.sidebar.avatar }}" alt="profile picture" />
{% endif %}
{% if site.data.data.sidebar.name %} {% if site.data.data.sidebar.name %}
<h1 class="name">{{site.data.data.sidebar.name}}</h1> <h1 class="name">{{site.data.data.sidebar.name}}</h1>

View File

@ -71,7 +71,7 @@ p {
margin-bottom: 15px; margin-bottom: 15px;
} }
.profile-img { .avatar {
//used for profile image //used for profile image
max-width: 100px; max-width: 100px;
margin-bottom: 15px; margin-bottom: 15px;

View File

@ -7,7 +7,7 @@
font-size: 12pt; font-size: 12pt;
} }
img.profile-img { img.avatar {
filter: grayscale(1); filter: grayscale(1);
-webkit-filter: greyscale(1); -webkit-filter: greyscale(1);
} }