Skip to content

Commit ef37341

Browse files
committed
Fix #211
1 parent d0ef92b commit ef37341

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

resources/views/components/post/article.blade.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88
<header aria-label="Header section" role="doc-pageheader">
99
<h1 itemprop="headline" class="mb-4">{{ $title ?? 'Blog Post' }}</h1>
1010
<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')
1414
</div>
1515
</header>
1616
@includeWhen(isset($post->image), 'hyde::components.post.image')

tests/Feature/Commands/HydeRebuildStaticSiteCommandTest.php

+1-2
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,7 @@ public function test_rebuild_documentation_page()
7272

7373
public function test_rebuild_blog_post()
7474
{
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'));
7776

7877
$this->artisan('rebuild _posts/foo.md')
7978
->assertExitCode(0);

0 commit comments

Comments
 (0)