From ac656d244def0e67b32b88a6c3530957d66d181a Mon Sep 17 00:00:00 2001
From: Alex V <41950214+AlexVerrico@users.noreply.github.com>
Date: Tue, 7 Jul 2020 18:34:40 +1000
Subject: [PATCH 1/4] Make name of portfolio image configurable (#41)

---
 _config.yml           | 1 +
 _layouts/default.html | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/_config.yml b/_config.yml
index 3f5993e86..cf637f684 100644
--- a/_config.yml
+++ b/_config.yml
@@ -18,6 +18,7 @@ plainwhite:
   sitemap: true # set to true to generate sitemap.xml content
   search: true # set to true to enable searchbar
   dark_mode: true # set to true to add dark mode toggle
+  portfolio_image: "portfolio.png" # the filename of the image in /assets/ to display
 
   # generate social links in footer
   social_links:
diff --git a/_layouts/default.html b/_layouts/default.html
index 8801ae23e..ba42ab561 100644
--- a/_layouts/default.html
+++ b/_layouts/default.html
@@ -8,7 +8,7 @@
 <body>
   <main class="container">
     <section class="about">
-      <a href="{{ "/" | relative_url}}"><img src="{{ "/assets/portfolio.png" | relative_url }}" alt="{{ site.plainwhite.name }}"></a>
+      <a href="{{ "/" | relative_url}}"><img src="{{ site.baseurl }}/assets/{{ site.plainwhite.portfolio_image }}" alt="{{ site.plainwhite.name }}"></a>
       <h2 id="title">
         <a href="{{ "/" | relative_url }}">{{ site.plainwhite.name }}</a>
       </h2>

From 6cbebc3859b46622cab7624049a5100081506a91 Mon Sep 17 00:00:00 2001
From: Alex V <41950214+AlexVerrico@users.noreply.github.com>
Date: Tue, 7 Jul 2020 18:40:40 +1000
Subject: [PATCH 2/4] Make name of portfolio image configurable (#41)

---
 README.md | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/README.md b/README.md
index 27d172089..a56f454b2 100644
--- a/README.md
+++ b/README.md
@@ -54,7 +54,12 @@ plainwhite:
 
 **Updating Placeholder Image**
 
-The placeholder portfolio image can be replaced by the desired image by placing it as `assets/portfolio.png` in your jekyll website.
+The placeholder portfolio image can be replaced by the desired image by placing it as `assets/portfolio.png` in your jekyll website, or by changing the following line in `_config.yaml`
+
+```yaml
+plainwhite:
+  portfolio_image: "portfolio.png" # the filename of the image in /assets/ to display
+```
 
 **Comments (Disqus)**
 

From df271e9f68b39b1fef5632e17d0dcb7ebf974268 Mon Sep 17 00:00:00 2001
From: Alex V <41950214+AlexVerrico@users.noreply.github.com>
Date: Fri, 10 Jul 2020 11:21:55 +1000
Subject: [PATCH 3/4] Address comments on #71

---
 _config.yml           | 2 +-
 _layouts/default.html | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/_config.yml b/_config.yml
index cf637f684..811c980df 100644
--- a/_config.yml
+++ b/_config.yml
@@ -18,7 +18,7 @@ plainwhite:
   sitemap: true # set to true to generate sitemap.xml content
   search: true # set to true to enable searchbar
   dark_mode: true # set to true to add dark mode toggle
-  portfolio_image: "portfolio.png" # the filename of the image in /assets/ to display
+  portfolio_image: "assets/portfolio.png" # the path from the base directory of the site to the image to display (no / at the start)
 
   # generate social links in footer
   social_links:
diff --git a/_layouts/default.html b/_layouts/default.html
index ba42ab561..6dd80561b 100644
--- a/_layouts/default.html
+++ b/_layouts/default.html
@@ -8,7 +8,7 @@
 <body>
   <main class="container">
     <section class="about">
-      <a href="{{ "/" | relative_url}}"><img src="{{ site.baseurl }}/assets/{{ site.plainwhite.portfolio_image }}" alt="{{ site.plainwhite.name }}"></a>
+      <a href="{{ "/" | relative_url}}"><img src="{{site.baseurl }}/{{ site.plainwhite.portfolio_image }}" alt="{{ site.plainwhite.name }}"></a>
       <h2 id="title">
         <a href="{{ "/" | relative_url }}">{{ site.plainwhite.name }}</a>
       </h2>

From c5608a50940e091e0888eaa92fa18792c4c54554 Mon Sep 17 00:00:00 2001
From: Alex V <41950214+AlexVerrico@users.noreply.github.com>
Date: Mon, 13 Jul 2020 09:58:06 +1000
Subject: [PATCH 4/4] Update README.md

---
 README.md | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/README.md b/README.md
index a56f454b2..83e900bf0 100644
--- a/README.md
+++ b/README.md
@@ -58,7 +58,7 @@ The placeholder portfolio image can be replaced by the desired image by placing
 
 ```yaml
 plainwhite:
-  portfolio_image: "portfolio.png" # the filename of the image in /assets/ to display
+  portfolio_image:  "assets/portfolio.png" # the path from the base directory of the site to the image to display (no / at the start)
 ```
 
 **Comments (Disqus)**