From cd0354105993e8d251296626b32e1a895aec75e9 Mon Sep 17 00:00:00 2001 From: SteveSamJacob19 Date: Thu, 15 Feb 2024 12:17:06 +0530 Subject: [PATCH] Blog githubid unclickable --- src/main/content/_layouts/post.html | 4 ++-- src/main/content/blog.html | 32 +++++++++++++++++++---------- src/main/content/index.html | 20 ++++++++++++++++-- 3 files changed, 41 insertions(+), 15 deletions(-) diff --git a/src/main/content/_layouts/post.html b/src/main/content/_layouts/post.html index 738d230d51..448b9191ca 100644 --- a/src/main/content/_layouts/post.html +++ b/src/main/content/_layouts/post.html @@ -50,8 +50,8 @@

{{ page.title | escape }}

{% if page.author_github %} {{ page.author }} {% else %} - {{ page.author }} - {% endif %} + {{ page.author }} + {% endif %} {% for author in page.additional_authors %} {% if additional_author_count == 1 %} {% t global.and %} diff --git a/src/main/content/blog.html b/src/main/content/blog.html index 19cc5e299d..bdd4ab428c 100644 --- a/src/main/content/blog.html +++ b/src/main/content/blog.html @@ -219,12 +219,14 @@

{% endfor %} {% if post.author_github %} - + {% else %} - - {% endif %} + + {% endif %} {% for author in post.additional_authors %} {% if additional_author_count == 1 %} @@ -325,21 +327,29 @@

{% endfor %} {% if post.author_github %} - - {% else %} - - {% endif %} + + {% else %} + + {% endif %} {% for author in post.additional_authors %} {% if additional_author_count == 1 %} and + {% if author.github %} {% else %} + + {% endif %} + {% else %} and {{ additional_author_count }} others diff --git a/src/main/content/index.html b/src/main/content/index.html index 2e94871acd..f9911ad96a 100644 --- a/src/main/content/index.html +++ b/src/main/content/index.html @@ -257,7 +257,15 @@

{{ author.name }} + {% if author.github %} + + {% else %} + + {% endif %} {% else %} and {{ additional_author_count }} others {% break %} @@ -320,7 +328,15 @@

{{ author.name }} + {% if author.github %} + + {% else %} + + {% endif %} {% else %} and {{ additional_author_count }} others {% break %}