Skip to content

Commit 9f67715

Browse files
committed
Don't show post signature for about page
1 parent 7353486 commit 9f67715

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

src/_internal/template/post.php

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,15 @@ function render_post(Post $post, bool $abridge = false): void {
132132
HTML;
133133
}
134134

135+
$post_sig = '';
136+
if (!$post->about) {
137+
$post_sig = <<<HTML
138+
<div class="post-signature">
139+
Posted by {$post->author_name} on <time datetime="{$robot_date}">{$human_date}</time>
140+
</div>
141+
HTML;
142+
}
143+
135144
echo <<<HTML
136145
<article class="post" data-id="{$post->id}" data-title="{$post->title}">
137146
<header class="post-header">
@@ -144,9 +153,7 @@ function render_post(Post $post, bool $abridge = false): void {
144153
</div>
145154
<footer class="post-footer">
146155
{$full_post_link}
147-
<div class="post-signature">
148-
Posted by {$post->author_name} on <time datetime="{$robot_date}">{$human_date}</time>
149-
</div>
156+
{$post_sig}
150157
{$controls_html}
151158
</footer>
152159
</article>

0 commit comments

Comments
 (0)