diff --git a/_config.yml b/_config.yml index 0d23feb..ee0bc21 100644 --- a/_config.yml +++ b/_config.yml @@ -19,4 +19,4 @@ encoding: utf-8 livereload: true livereload_min_delay: 60 livereload_max_delay: 600 -author: RaxVentus +author: RaxVentus \ No newline at end of file diff --git a/_layouts/post.html b/_layouts/post.html index 509c433..9871e4c 100644 --- a/_layouts/post.html +++ b/_layouts/post.html @@ -12,10 +12,10 @@ layout: default <hr> -{% assign authorData = site.data.authors[page.author] | default: site.data.author %} +{% assign authorData = site.data.authors[page.author] | default: site.data.authors[site.author] %} <div class="author-bio"> - <img src="/assets/img/{{ authorData.image }}" alt="{{ page.author.name | default: site.author }}'s profile picture." /> + <img src="/assets/img/{{ authorData.image }}" alt="{{ page.author.name | default: site.author.name }}'s profile picture." /> <div class="author-name">{{ page.author.name | default: site.author.name }}</div> <p class="bio">{{ authorData.bio }}</p> {% for social in authorData.socials %}