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: ...@@ -47,6 +47,7 @@ defaults:
type: staffers type: staffers
values: values:
layout: staffer layout: staffer
subpath: '/assets/images/'
- scope: - scope:
path: '' path: ''
type: modules type: modules
......
<div class="staffer"> <div class="staffer">
{% if page.photo %} {% 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 %} {% endif %}
<div> <div>
<h3 class="staffer-name"> <h3 class="staffer-name">
......
...@@ -3,7 +3,7 @@ name: Evil Kevin ...@@ -3,7 +3,7 @@ name: Evil Kevin
role: Teaching Assistant role: Teaching Assistant
email: me@example.com email: me@example.com
website: https://kevinl.info website: https://kevinl.info
photo: /assets/images/kevin.jpg photo: kevin.jpg
--- ---
I like teaching Computer Science! I like teaching Computer Science!
...@@ -3,7 +3,7 @@ name: Kevin Lin ...@@ -3,7 +3,7 @@ name: Kevin Lin
role: Instructor role: Instructor
email: me@example.com email: me@example.com
website: https://kevinl.info website: https://kevinl.info
photo: /assets/images/kevin.jpg photo: kevin.jpg
--- ---
[Schedule an appointment](#){: .btn .btn-outline } [Schedule an appointment](#){: .btn .btn-outline }
...@@ -3,7 +3,7 @@ name: More Evil Kevin ...@@ -3,7 +3,7 @@ name: More Evil Kevin
role: Teaching Assistant role: Teaching Assistant
email: me@example.com email: me@example.com
website: https://kevinl.info website: https://kevinl.info
photo: /assets/images/kevin.jpg photo: kevin.jpg
--- ---
I like teaching Computer Science! I like teaching Computer Science!
...@@ -3,7 +3,7 @@ name: Really Evil Kevin ...@@ -3,7 +3,7 @@ name: Really Evil Kevin
role: Teaching Assistant role: Teaching Assistant
email: me@example.com email: me@example.com
website: https://kevinl.info website: https://kevinl.info
photo: /assets/images/kevin.jpg photo: kevin.jpg
--- ---
I like teaching Computer Science! 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