File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed
Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Original file line number Diff line number Diff 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>
You can’t perform that action at this time.
0 commit comments