Skip to content

Commit

Permalink
update image-get method
Browse files Browse the repository at this point in the history
  • Loading branch information
jonaswagner2826 committed Jan 16, 2024
1 parent 79a0a73 commit 0740914
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
3 changes: 2 additions & 1 deletion _data/members.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
- name: Justin Ruths
degrees: PhD
image: https://nova-utd.github.io/assets/res/headshots/Justin.jpg # team_Justin-Ruths.jpg
# image: team_Justin-Ruths.jpg
imageurl: https://nova-utd.github.io/assets/res/headshots/Justin.jpg
altimage:
position: Principle Investigator
email: jruths@utdallas.edu
Expand Down
4 changes: 2 additions & 2 deletions _layouts/about.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
{% if page.profile.image %}
<img style="width: 100%; padding-bottom: 5px;" src="{{ page.profile.image | prepend: '/assets/img/' | prepend: site.baseurl | prepend: site.url }}" alt="photo: {{ page.profile.address }}">
{% endif %}
{% if page.profile.imageurl %}
<!-- {% if page.profile.imageurl %}
<img style="width: 100%; padding-bottom: 5px;" src="page.profile.imageurl" alt="photo: {{ page.profile.address }}">
{% endif %}
{% endif %} -->
{% if page.profile.address %}
<div class="address">
{{ page.profile.address }}
Expand Down
7 changes: 6 additions & 1 deletion _pages/01-team.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,12 @@ description:

<!-- The paddingtop and margin-top edits allow anchors to link properly. -->
<div id = "{{person.name | replace: ' ', '-'}}" class="row" style="padding-top: 60px; margin-top: -60px;">
<img style="float: right; width: 42%; padding-left: 20px;" src="{{ person.image | prepend: '/assets/img/' | prepend: site.baseurl | prepend: site.url }}" alt="photo of {{person.name}}">
<!-- Added an if statement here to allow for image_url update -->
{% if person.website %}
<img style="float: right; width: 42%; padding-left: 20px;" src="{{ person.image | prepend: '/assets/img/' | prepend: site.baseurl | prepend: site.url }}" alt="photo of {{person.name}}">
{% elseif person.imageurl %}
<img style="float: right; width: 42%; padding-left: 20px;" src="person.imageurl" alt="photo of {{person.name}}">
{% endif %}
<div>
<h4>{{person.name}}{% if person.degrees %}, {{person.degrees}} {% endif %}</h4>
{{person.position}} <br>
Expand Down

0 comments on commit 0740914

Please sign in to comment.