Skip to content

Commit

Permalink
Move files into layouts
Browse files Browse the repository at this point in the history
  • Loading branch information
caendesilva committed Mar 22, 2022
1 parent 47e9044 commit 445fc75
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 3 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
6 changes: 3 additions & 3 deletions src/StaticPageBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ private function save(string $location, string $contents): bool|int
*/
private function compilePost(): string
{
return view('hyde::post')->with([
return view('hyde::layouts/post')->with([
'post' => $this->page,
'title' => $this->page->matter['title'],
'markdown' => MarkdownConverter::parse($this->page->body),
Expand All @@ -110,7 +110,7 @@ private function compilePost(): string
*/
private function compileDocs(): string
{
return view('hyde::docs')->with([
return view('hyde::layouts/docs')->with([
'docs' => $this->page,
'title' => $this->page->title,
'markdown' => MarkdownConverter::parse($this->page->content),
Expand All @@ -124,7 +124,7 @@ private function compileDocs(): string
*/
private function compilePage(): string
{
return view('hyde::page')->with([
return view('hyde::layouts/page')->with([
'title' => $this->page->title,
'markdown' => MarkdownConverter::parse($this->page->content),
'currentPage' => $this->page->slug
Expand Down

0 comments on commit 445fc75

Please sign in to comment.