From e765e1a1d2590359f07c337c4eb4838ab36ee39e Mon Sep 17 00:00:00 2001 From: timurgordon Date: Wed, 4 Jan 2023 10:21:36 +0300 Subject: [PATCH] fixes to accomodate news post without image --- content/newsroom/share_your_why/index.md | 14 ++++++------ content/people/ashish_bansal/index.md | 28 +++++++++++++----------- templates/newsPage.html | 4 +++- templates/partials/featuredNews.html | 2 ++ templates/partials/newsCard.html | 2 ++ templates/partials/postCard.html | 2 ++ templates/partials/tagCard.html | 4 +++- 7 files changed, 34 insertions(+), 22 deletions(-) diff --git a/content/newsroom/share_your_why/index.md b/content/newsroom/share_your_why/index.md index 95a8c4c88..50170e741 100644 --- a/content/newsroom/share_your_why/index.md +++ b/content/newsroom/share_your_why/index.md @@ -2,17 +2,17 @@ id: share_your_why title: ❤️ Share what you love about ThreeFold image_caption: Share what you love about ThreeFold -description: Here's a call to all ThreeFolders to share why they are involved in the ThreeFold project and what makes them believe in it! +description: Here's a call to all ThreeFolders to share why they are involved in the ThreeFold project and what makes them believe in it! date: 2022-12-23 taxonomies: - people: [victoria.obeegadoo] - tags: [update, technology, news, community] - news-category: [foundation] -image: + people: [victoria_obeegadoo] + tags: [update, technology, news, community] + news-category: [foundation] +image: --- -[Here's](https://forum.threefold.io/t/end-of-year-community-challenge-my-why-personal-tft-grant/3638) a call to all ThreeFolders to share why they are involved in the ThreeFold project and what makes them believe in it! I just shared my own answer and would love to read yours! +[Here's](https://forum.threefold.io/t/end-of-year-community-challenge-my-why-personal-tft-grant/3638) a call to all ThreeFolders to share why they are involved in the ThreeFold project and what makes them believe in it! I just shared my own answer and would love to read yours!
-Ps: In the spirit of the holidays, 200 TFT gifts are available for community members answering on the forum post! \ No newline at end of file +Ps: In the spirit of the holidays, 200 TFT gifts are available for community members answering on the forum post! diff --git a/content/people/ashish_bansal/index.md b/content/people/ashish_bansal/index.md index 5592af60c..bcbc352b5 100644 --- a/content/people/ashish_bansal/index.md +++ b/content/people/ashish_bansal/index.md @@ -1,20 +1,22 @@ -taxonomies: - people: [ashish_bansal] - memberships: [foundation] - categories: [foundation] --- title: Ashish Bansal weight: 3 +taxonomies: + people: [ashish_bansal] + memberships: [foundation] + categories: [foundation] extra: - imgPath: ashish_bansal.jpeg - organizations: [threefold_foundation] - countries: [India] - cities: [Mumbai] - private: 0 - socialLinks: { - LinkedIn: https://www.linkedin.com/in/ab-equity/, - github: https://github.com/Ashishban/, - websites: https://threefold.io/, + imgPath: ashish_bansal.jpeg + organizations: [threefold_foundation] + countries: [India] + cities: [Mumbai] + private: 0 + socialLinks: + { + LinkedIn: https://www.linkedin.com/in/ab-equity/, + github: https://github.com/Ashishban/, + websites: https://threefold.io/, } --- + Ashish has extensive experience analyzing and evaluating investment possibilities, market trends and crypto projects, with a proven track record of 15+ years in improving profits by identifying new themes for investments. He believes and supports ThreeFold's vision for a decentralized internet for all. diff --git a/templates/newsPage.html b/templates/newsPage.html index 73dff2389..b7c91f7c9 100644 --- a/templates/newsPage.html +++ b/templates/newsPage.html @@ -101,8 +101,10 @@
+ {% if page.extra.imgPath %} {% set img_url = get_url(path='/' ~ page.relative_path | replace(from='_', to='-') | replace(from='index.md', to=page.extra.imgPath)) %} - + + {%endif%}
diff --git a/templates/partials/featuredNews.html b/templates/partials/featuredNews.html index a4a452c3c..9a2da3094 100644 --- a/templates/partials/featuredNews.html +++ b/templates/partials/featuredNews.html @@ -31,7 +31,9 @@
+ {% if featured.extra.imgPath %} + {% endif %}

diff --git a/templates/partials/newsCard.html b/templates/partials/newsCard.html index b1e471abb..d4f250bf2 100644 --- a/templates/partials/newsCard.html +++ b/templates/partials/newsCard.html @@ -2,8 +2,10 @@
+ {% if post.extra.imgPath %} {% set img_url = get_url(path='/' ~ post.relative_path | replace(from='_', to='-') | replace(from='index.md', to=post.extra.imgPath)) %} + {% endif %}