From dcdc7d9b42e9220c51aaee54a49f0cf9ebc734ef Mon Sep 17 00:00:00 2001 From: Kevin Lin <kevinl@cs.uw.edu> Date: Thu, 1 Oct 2020 08:04:38 -0700 Subject: [PATCH] Add /assets/images/ as default staffer subpath --- _config.yml | 1 + _layouts/staffer.html | 2 +- _staffers/evil-kevin.md | 2 +- _staffers/kevin.md | 2 +- _staffers/more-evil-kevin.md | 2 +- _staffers/really-evil-kevin.md | 2 +- 6 files changed, 6 insertions(+), 5 deletions(-) diff --git a/_config.yml b/_config.yml index 670fac4..7877fc0 100644 --- a/_config.yml +++ b/_config.yml @@ -47,6 +47,7 @@ defaults: type: staffers values: layout: staffer + subpath: '/assets/images/' - scope: path: '' type: modules diff --git a/_layouts/staffer.html b/_layouts/staffer.html index 945bd69..6a5e894 100644 --- a/_layouts/staffer.html +++ b/_layouts/staffer.html @@ -1,6 +1,6 @@ <div class="staffer"> {% if page.photo %} - <img class="staffer-image" src="{{ site.baseurl }}{{ page.photo }}" alt=""> + <img class="staffer-image" src="{{ site.baseurl }}{{ page.subpath }}{{ page.photo }}" alt=""> {% endif %} <div> <h3 class="staffer-name"> diff --git a/_staffers/evil-kevin.md b/_staffers/evil-kevin.md index de773ff..ff5264f 100644 --- a/_staffers/evil-kevin.md +++ b/_staffers/evil-kevin.md @@ -3,7 +3,7 @@ name: Evil Kevin role: Teaching Assistant email: me@example.com website: https://kevinl.info -photo: /assets/images/kevin.jpg +photo: kevin.jpg --- I like teaching Computer Science! diff --git a/_staffers/kevin.md b/_staffers/kevin.md index 2cf260d..7759a4f 100644 --- a/_staffers/kevin.md +++ b/_staffers/kevin.md @@ -3,7 +3,7 @@ name: Kevin Lin role: Instructor email: me@example.com website: https://kevinl.info -photo: /assets/images/kevin.jpg +photo: kevin.jpg --- [Schedule an appointment](#){: .btn .btn-outline } diff --git a/_staffers/more-evil-kevin.md b/_staffers/more-evil-kevin.md index cbc499b..a416b3f 100644 --- a/_staffers/more-evil-kevin.md +++ b/_staffers/more-evil-kevin.md @@ -3,7 +3,7 @@ name: More Evil Kevin role: Teaching Assistant email: me@example.com website: https://kevinl.info -photo: /assets/images/kevin.jpg +photo: kevin.jpg --- I like teaching Computer Science! diff --git a/_staffers/really-evil-kevin.md b/_staffers/really-evil-kevin.md index fb1c25c..377d089 100644 --- a/_staffers/really-evil-kevin.md +++ b/_staffers/really-evil-kevin.md @@ -3,7 +3,7 @@ name: Really Evil Kevin role: Teaching Assistant email: me@example.com website: https://kevinl.info -photo: /assets/images/kevin.jpg +photo: kevin.jpg --- I like teaching Computer Science! -- GitLab