File tree 2 files changed +4
-5
lines changed
resources/views/components/post
2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change 8
8
<header aria-label =" Header section" role =" doc-pageheader" >
9
9
<h1 itemprop =" headline" class =" mb-4" >{{ $title ?? ' Blog Post' } } </h1 >
10
10
<div id =" byline" aria-label =" About the post" role =" doc-introduction" >
11
- @includeWhen ($post -> date , ' hyde::components.post.date' )
12
- @includeWhen ($post -> author , ' hyde::components.post.author' )
13
- @includeWhen ($post -> category , ' hyde::components.post.category' )
11
+ @includeWhen (isset ( $post -> date ) , ' hyde::components.post.date' )
12
+ @includeWhen (isset ( $post -> author ) , ' hyde::components.post.author' )
13
+ @includeWhen (isset ( $post -> category ) , ' hyde::components.post.category' )
14
14
</div >
15
15
</header >
16
16
@includeWhen (isset ($post -> image ), ' hyde::components.post.image' )
Original file line number Diff line number Diff line change @@ -72,8 +72,7 @@ public function test_rebuild_documentation_page()
72
72
73
73
public function test_rebuild_blog_post ()
74
74
{
75
- // @todo replace with touch once https://github.com/hydephp/framework/issues/211 is fixed
76
- file_put_contents (Hyde::path ('_posts/foo.md ' ), "--- \nauthor: 'foo' \n--- \nfoo " );
75
+ touch (Hyde::path ('_posts/foo.md ' ));
77
76
78
77
$ this ->artisan ('rebuild _posts/foo.md ' )
79
78
->assertExitCode (0 );
You can’t perform that action at this time.
0 commit comments