diff --git a/authors.json b/authors.json new file mode 100644 index 0000000000000000000000000000000000000000..97bbb628bd4ac34e0341556b0955c601c1496f81 --- /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 262fdab1445326a8c9d85681e0862c44992d865e..46b7d9768939e6fcde0281455d4d15db7bc50f00 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>