Skip to content

Commit

Permalink
Fix post footer, enable to display post author (#285)
Browse files Browse the repository at this point in the history
Fixes #284
  • Loading branch information
jtama authored Nov 18, 2024
1 parent bddb9eb commit 12e6304
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ <h1 class="page-title">{page.title}</h1>
</div>

</div>
{#let author= (page.data.author?? ? cdi:authors.get(page.data.author) : null)}
{#if page.data.author??}
{#let author=cdi:authors.get(page.data.author)}
{#if author}
<div class="author">
<img src="{site.image(author.avatar)}" alt="author-{page.data.author}"/>
Expand All @@ -55,6 +56,7 @@ <h1 class="page-title">{page.title}</h1>
</div>
{/if}
{/let}
{/if}
</div>
</div> <!-- End Wrap Content -->
</div> <!-- End Page Content -->
Expand Down

0 comments on commit 12e6304

Please sign in to comment.