Skip to content
This repository has been archived by the owner on Sep 4, 2024. It is now read-only.

Commit

Permalink
fix images path
Browse files Browse the repository at this point in the history
  • Loading branch information
wbglaeser committed Dec 2, 2023
1 parent afa6e0e commit 3a12ed9
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/_data/nav.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"navLogo":"/assets/images/new_logo.png",
"navLogo":"assets/images/new_logo.png",
"navLinks":["de","en"]
}
6 changes: 3 additions & 3 deletions src/_data/team.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
{
"name": "Benjamin Degenhart",
"dig": "Software Engineer @ DigitalService",
"img": "/assets/images/team/benjamin.jpeg",
"img": "assets/images/team/benjamin.jpeg",
"social":[
{
"icon": "medium",
Expand All @@ -23,7 +23,7 @@
{
"name": "Vanessa Ureta",
"dig": "UX & Service Designer @ ifok",
"img": "/assets/images/team/vanessa.jpeg",
"img": "assets/images/team/vanessa.jpeg",
"social":[
{
"icon": "medium",
Expand All @@ -42,7 +42,7 @@
{
"name": "Ben Glaeser",
"dig": "Data Engineer @ SoundCloud",
"img": "/assets/images/team/ben.png",
"img": "assets/images/team/ben.png",
"social":[
{
"icon": "medium",
Expand Down
6 changes: 3 additions & 3 deletions src/_includes/base.njk
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
<nav class="navbar navbar-expand-lg site-navigation">
<div class="container">
<a class="navbar-brand" href="/">
<img src="{{nav.navLogo}}" alt="nav-logo" />
<img src="{% rootPath %}{{nav.navLogo}}" alt="nav-logo" />
</a>
<button
class="navbar-toggler collapsed"
Expand All @@ -55,9 +55,9 @@
{% for navLink in nav.navLinks %}
<li class="nav-item">
{% if navLink == "de" %}
<a class="nav-link" href="/">{{navLink | capitalize}}</a>
<a class="nav-link" href="{% rootPath %}">{{navLink | capitalize}}</a>
{% else %}
<a class="nav-link" href="/{{navLink}}">{{navLink | capitalize}}</a>
<a class="nav-link" href="{% rootPath %}{{navLink}}">{{navLink | capitalize}}</a>
{% endif %}
</li>
{% endfor %}
Expand Down
2 changes: 1 addition & 1 deletion src/_includes/layouts/homepage.njk
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
<div class="site-team-member">
<div class="site-team-item-header">
<div class="thumb">
<img class="site-team-member-image" src="{{member.img}}" alt="user-thumb">
<img class="site-team-member-image" src="{% rootPath %}{{member.img}}" alt="user-thumb">
</div>
<div class="person">
<h5>{{member.name}}</h5>
Expand Down

0 comments on commit 3a12ed9

Please sign in to comment.