From 452e16423084c128435807b9164b17f6fa6c5fab Mon Sep 17 00:00:00 2001 From: Dominik George <dominik.george@teckids.org> Date: Wed, 13 Mar 2024 21:46:05 +0100 Subject: [PATCH] Use author full name --- authors.json | 5 +++++ templates/blog/post.html | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 authors.json diff --git a/authors.json b/authors.json new file mode 100644 index 00000000..97bbb628 --- /dev/null +++ b/authors.json @@ -0,0 +1,5 @@ +{ + "nik": { + "display_name": "Dominik George" + } +} diff --git a/templates/blog/post.html b/templates/blog/post.html index 262fdab1..46b7d976 100644 --- a/templates/blog/post.html +++ b/templates/blog/post.html @@ -27,7 +27,8 @@ </figure> </div> <div class="media-content"> - <p class="title is-4">{{ page.authors.0 }}</p> + {% set authors_data = load_data(path="authors.json") -%} + <p class="title is-4">{{ authors_data[page.authors.0].display_name }}</p> <p class="subtitle is-6">{{ page.authors.0 }}</p> </div> </div> -- GitLab