Skip to content
Snippets Groups Projects
Commit dcdc7d9b authored by Kevin Lin's avatar Kevin Lin
Browse files

Add /assets/images/ as default staffer subpath

parent ae88f878
No related branches found
No related tags found
No related merge requests found
......@@ -47,6 +47,7 @@ defaults:
type: staffers
values:
layout: staffer
subpath: '/assets/images/'
- scope:
path: ''
type: modules
......
<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">
......
......@@ -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!
......@@ -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 }
......@@ -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!
......@@ -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% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment