Skip to content

Commit

Permalink
Add /assets/images/ as default staffer subpath
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinlin1 committed Oct 1, 2020
1 parent ae88f87 commit dcdc7d9
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ defaults:
type: staffers
values:
layout: staffer
subpath: '/assets/images/'
- scope:
path: ''
type: modules
Expand Down
2 changes: 1 addition & 1 deletion _layouts/staffer.html
Original file line number Diff line number Diff line change
@@ -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">
Expand Down
2 changes: 1 addition & 1 deletion _staffers/evil-kevin.md
Original file line number Diff line number Diff line change
Expand Up @@ -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!
2 changes: 1 addition & 1 deletion _staffers/kevin.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
2 changes: 1 addition & 1 deletion _staffers/more-evil-kevin.md
Original file line number Diff line number Diff line change
Expand Up @@ -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!
2 changes: 1 addition & 1 deletion _staffers/really-evil-kevin.md
Original file line number Diff line number Diff line change
Expand Up @@ -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!

0 comments on commit dcdc7d9

Please sign in to comment.