Skip to content

Commit dc88935

Browse files
committed
Renamed variable in Config.
1 parent c5ece12 commit dc88935

4 files changed

Lines changed: 11 additions & 11 deletions

File tree

_config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ url: 'https://www.example.com'
1515

1616
author: Chirpy # change to your full name
1717

18-
logo: /assets/img/sample/profile.jpg # Support network resources.
18+
avatar: /assets/img/sample/avatar.jpg # Support network resources.
1919

2020
github:
2121
username: github_username # change to your github username

_includes/sidebar.html

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@
66

77
<div id="nav-wrap">
88
<div id="profile-wrap" class="d-flex justify-content-center">
9-
<div id="profile">
10-
<a href="{{ site.baseurl }}/" alt="profile-photo">
11-
{% assign profile_img = site.logo %}
12-
{% if profile_img | slice: 0 == '/' %}
13-
{% assign profile_img = profile_img | prepend: site.baseurl %}
9+
<div id="avatar">
10+
<a href="{{ site.baseurl }}/" alt="avatar">
11+
{% assign avatar = site.avatar %}
12+
{% if avatar | slice: 0 == '/' %}
13+
{% assign avatar = avatar | prepend: site.baseurl %}
1414
{% endif %}
15-
<img src="{{ profile_img }}"></img>
15+
<img src="{{ avatar }}"></img>
1616
</a>
1717
</div>
1818
</div>

assets/css/_src/main.scss

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ body {
128128
padding-bottom: 1rem;
129129
}
130130

131-
#profile {
131+
#avatar {
132132
width: 6rem;
133133
height: 6rem;
134134
border-radius: 50%;
@@ -140,11 +140,11 @@ body {
140140
transition: border-color 0.35s ease-in-out;
141141
}
142142

143-
#profile:hover {
143+
#avatar:hover {
144144
border-color: #fff;
145145
}
146146

147-
#profile img {
147+
#avatar img {
148148
width: 100%;
149149
height: 100%;
150150
display: block;
@@ -155,7 +155,7 @@ body {
155155
transition: all .5s !important;
156156
}
157157

158-
#profile img:hover {
158+
#avatar img:hover {
159159
-ms-transform: scale(1.2);
160160
-moz-transform: scale(1.2);
161161
-webkit-transform: scale(1.2);

0 commit comments

Comments
 (0)