diff --git a/content/people/sascha_jochum/index.md b/content/people/sascha_jochum/index.md index a59f154b6..18b61250d 100644 --- a/content/people/sascha_jochum/index.md +++ b/content/people/sascha_jochum/index.md @@ -5,7 +5,7 @@ template: "person_page.html" extra: socialLinks: { LinkedIn: "https://www.linkedin.com/in/sascha-jochum/"} organizations: ["foundation"] - imgPath: images/people/sascha_jochum.jpg + imgPath: sascha_jochum.jpg taxonomies: memberships: [partner] diff --git a/static/images/people/sascha_jochum.jpg b/content/people/sascha_jochum/sascha_jochum.jpg similarity index 100% rename from static/images/people/sascha_jochum.jpg rename to content/people/sascha_jochum/sascha_jochum.jpg diff --git a/templates/partials/person_card.html b/templates/partials/person_card.html index b7f71d522..b1faf3424 100644 --- a/templates/partials/person_card.html +++ b/templates/partials/person_card.html @@ -1,8 +1,8 @@
{% set url = '/' ~ post.relative_path | replace(from='_', to='-') | replace(from='index.md', to=post.extra.imgPath) %} - {{url}} - img here + {% set url2 = get_url(path='/' ~ post.relative_path | replace(from='_', to='-') | replace(from='index.md', to=post.extra.imgPath)) %} + img here

{{post.title}}

diff --git a/templates/person_page.html b/templates/person_page.html index 16eb83592..36a81c39f 100644 --- a/templates/person_page.html +++ b/templates/person_page.html @@ -4,7 +4,7 @@
- +