Skip to content

Commit

Permalink
Don't show post signature for about page
Browse files Browse the repository at this point in the history
  • Loading branch information
caseif committed May 28, 2020
1 parent 7353486 commit 9f67715
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions src/_internal/template/post.php
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,15 @@ function render_post(Post $post, bool $abridge = false): void {
HTML;
}

$post_sig = '';
if (!$post->about) {
$post_sig = <<<HTML
<div class="post-signature">
Posted by {$post->author_name} on <time datetime="{$robot_date}">{$human_date}</time>
</div>
HTML;
}

echo <<<HTML
<article class="post" data-id="{$post->id}" data-title="{$post->title}">
<header class="post-header">
Expand All @@ -144,9 +153,7 @@ function render_post(Post $post, bool $abridge = false): void {
</div>
<footer class="post-footer">
{$full_post_link}
<div class="post-signature">
Posted by {$post->author_name} on <time datetime="{$robot_date}">{$human_date}</time>
</div>
{$post_sig}
{$controls_html}
</footer>
</article>
Expand Down

0 comments on commit 9f67715

Please sign in to comment.