Skip to content

Commit 1033834

Browse files
committed
Fix paths and add default profile image
1 parent 46513b4 commit 1033834

File tree

5 files changed

+5
-4
lines changed

5 files changed

+5
-4
lines changed

people/_metadata.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ format:
77
gutter-width: 1.5rem
88
css:
99
- ../styles.css
10-
- ../people.css
10+
- people.css
1111
page-layout: full
1212
toc: false
1313
include-in-header:

people/listings/general-listing.ejs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
</a>
1212
<% } %>
1313
<a href="<%= item.path %>" class="profile-image-wrapper">
14-
<img src="<%= item.photo || 'people/images/default.jpg' %>" alt="Profile" class="profile-image">
14+
<img src="people/<%= item.photo || '/images/default.svg' %>" alt="Profile" class="profile-image">
1515
</a>
1616
<div class="card-body flex-column text-center">
1717
<a href="<%= item.path %>" class="card-title"><%= item.name %></a>

people/listings/management-listing.ejs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<!-- Profile Image Column -->
66
<div class="col-md-3 d-flex justify-content-center align-items-center">
77
<a href="<%= item.path %>">
8-
<img src="<%= item.photo %>" class="profile-image" alt="Profile photo of <%= item.name %>">
8+
<img src="people/<%= item.photo || '/images/default.svg' %>" class="profile-image" alt="Profile photo of <%= item.name %>">
99
</a>
1010
</div>
1111

people/people/images/default.svg

Lines changed: 1 addition & 0 deletions
Loading

people/people/templates/_setup.qmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ get_param <- function(param_name, default = "") {
1818
# Extract member information
1919
name <- get_param("title", NULL)
2020
position <- get_param("position", "")
21-
photo <- get_param("photo", "default-profile.jpg")
21+
photo <- get_param("photo", "images/default.svg")
2222
email <- get_param("email", "")
2323
social_media <- get_param("social_media", list())
2424
mission_paragraphs <- get_param("mission_statement", list())

0 commit comments

Comments
 (0)