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
logo: /assets/img/sample/profile.jpg # Support network resources.
avatar: /assets/img/sample/avatar.jpg # Support network resources.
github:
username: github_username # change to your github username

View file

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

View file

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

View file

Before

Width:  |  Height:  |  Size: 18 KiB

After

Width:  |  Height:  |  Size: 18 KiB