Skip to content

Commit 3e74244

Browse files
committed
adding external image for config
1 parent c2e1051 commit 3e74244

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

_config.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
1+
# main text of home
12
name: John Doe
23
bio: 'A Man who travels the world eating noodles'
34

4-
# main text of home
5+
# if it's an external image, update below for true
6+
external-image: true
57
picture: 'assets/images/profile.jpg'
68

79
url: http://sergiokopplin.github.io/indigo

_includes/header.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
{% if showHeader == true %}
88
<header class="header-home {% if site.animation %}animated{% endif %}">
99
<a class="link" href="{{ site.url }}/about">
10-
<img class="selfie" alt="{{ site.name }}" src="{{ site.url }}/{{ site.picture }}" />
10+
<img class="selfie" alt="{{ site.name }}" src="{% if site.external-image == true %}{{ site.picture }}{% else %}{{ site.url }}/{{ site.picture }}{% endif %}" />
1111
</a>
1212

1313
<h1 class="title">{{ site.name }}</h1>

0 commit comments

Comments
 (0)