Skip to content

Commit

Permalink
Blog name isse (#766)
Browse files Browse the repository at this point in the history
* Apply author name to blog posts

* Remove duplicate code

* Minor change

* Update search result listing

* Falsy gate in case no author
  • Loading branch information
wilson1000 authored Oct 31, 2024
1 parent 595d041 commit 688458f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@

<div class="meta">
<span class="c-article-item__dateline">
By <strong>${author_display_name}</strong> |
${?author_display_name}
By <strong>${author_display_name}</strong> |
${/?author_display_name}
<span class="c-article-item__dateline__date">${post_date_formatted}</span>
</span>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,10 @@

<div class="meta">
<span class="c-article-item__dateline">
By
<strong><?= $author_display_name ?></strong> |
<?php if ($author_display_name) : ?>
By
<strong><?= $author_display_name ?></strong> |
<?php endif; ?>
<span class="c-article-item__dateline__date">
<?= get_gmt_from_date($post->post_date, 'j M Y') ?>
</span>
Expand Down

0 comments on commit 688458f

Please sign in to comment.