Renamed variable in Config.

This commit is contained in:
Cotes Chung 2019-10-21 13:18:25 +08:00
parent 3e4b83a297
commit 4287b9e612
4 changed files with 11 additions and 11 deletions

View file

@ -15,7 +15,7 @@ url: 'https://www.example.com'
author: Chirpy # change to your full name author: Chirpy # change to your full name
logo: /assets/img/sample/profile.jpg # Support network resources. avatar: /assets/img/sample/avatar.jpg # Support network resources.
github: github:
username: github_username # change to your github username username: github_username # change to your github username

View file

@ -6,13 +6,13 @@
<div id="nav-wrap"> <div id="nav-wrap">
<div id="profile-wrap" class="d-flex justify-content-center"> <div id="profile-wrap" class="d-flex justify-content-center">
<div id="profile"> <div id="avatar">
<a href="{{ site.baseurl }}/" alt="profile-photo"> <a href="{{ site.baseurl }}/" alt="avatar">
{% assign profile_img = site.logo %} {% assign avatar = site.avatar %}
{% if profile_img | slice: 0 == '/' %} {% if avatar | slice: 0 == '/' %}
{% assign profile_img = profile_img | prepend: site.baseurl %} {% assign avatar = avatar | prepend: site.baseurl %}
{% endif %} {% endif %}
<img src="{{ profile_img }}"></img> <img src="{{ avatar }}"></img>
</a> </a>
</div> </div>
</div> </div>

View file

@ -128,7 +128,7 @@ body {
padding-bottom: 1rem; padding-bottom: 1rem;
} }
#profile { #avatar {
width: 6rem; width: 6rem;
height: 6rem; height: 6rem;
border-radius: 50%; border-radius: 50%;
@ -140,11 +140,11 @@ body {
transition: border-color 0.35s ease-in-out; transition: border-color 0.35s ease-in-out;
} }
#profile:hover { #avatar:hover {
border-color: #fff; border-color: #fff;
} }
#profile img { #avatar img {
width: 100%; width: 100%;
height: 100%; height: 100%;
display: block; display: block;
@ -155,7 +155,7 @@ body {
transition: all .5s !important; transition: all .5s !important;
} }
#profile img:hover { #avatar img:hover {
-ms-transform: scale(1.2); -ms-transform: scale(1.2);
-moz-transform: scale(1.2); -moz-transform: scale(1.2);
-webkit-transform: scale(1.2); -webkit-transform: scale(1.2);

View file

Before

Width:  |  Height:  |  Size: 18 KiB

After

Width:  |  Height:  |  Size: 18 KiB