From 595f096a5a437c838eeb0167476453d570f08c90 Mon Sep 17 00:00:00 2001 From: KasukabeDefenceForce Date: Mon, 14 Oct 2024 18:06:25 +0530 Subject: [PATCH] Make author id optional parameter --- templates/news_page_no_twitter.html.j2 | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/templates/news_page_no_twitter.html.j2 b/templates/news_page_no_twitter.html.j2 index 1bf408a..50c324f 100644 --- a/templates/news_page_no_twitter.html.j2 +++ b/templates/news_page_no_twitter.html.j2 @@ -34,20 +34,26 @@
{% set project_info = content %} - {% set author_id = project_info['author_id'] %} - {% set author_info = member_data[author_id] %} - {% set author_name = author_info['full_name'] %} + {% if project_info['author_id'] %} + {% set author_id = project_info['author_id'] %} + {% set author_info = member_data[author_id] %} + {% set author_name = author_info['full_name'] %} + {% else %} + {% set author_name = "" %} + {%endif%}

{{ project_info.title }}

{#