@@ -86,6 +86,7 @@ private function save(string $location, string $contents): bool|int
86
86
private function compileView (): string
87
87
{
88
88
return view ($ this ->page ->view , [
89
+ 'page ' => $ this ->page ,
89
90
'currentPage ' => $ this ->page ->view ,
90
91
])->render ();
91
92
}
@@ -98,7 +99,7 @@ private function compileView(): string
98
99
private function compilePost (): string
99
100
{
100
101
return view ('hyde::layouts/post ' )->with ([
101
- 'post ' => $ this ->page ,
102
+ 'page ' => $ this ->page ,
102
103
'title ' => $ this ->page ->title ,
103
104
'markdown ' => MarkdownConverter::parse ($ this ->page ->body ),
104
105
'currentPage ' => 'posts/ ' .$ this ->page ->slug ,
@@ -113,6 +114,7 @@ private function compilePost(): string
113
114
private function compilePage (): string
114
115
{
115
116
return view ('hyde::layouts/page ' )->with ([
117
+ 'page ' => $ this ->page ,
116
118
'title ' => $ this ->page ->title ,
117
119
'markdown ' => MarkdownConverter::parse ($ this ->page ->body ),
118
120
'currentPage ' => $ this ->page ->slug ,
@@ -127,7 +129,7 @@ private function compilePage(): string
127
129
private function compileDocs (): string
128
130
{
129
131
return view ('hyde::layouts/docs ' )->with ([
130
- 'docs ' => $ this ->page ,
132
+ 'page ' => $ this ->page ,
131
133
'title ' => $ this ->page ->title ,
132
134
'markdown ' => MarkdownConverter::parse ($ this ->page ->body , DocumentationPage::class),
133
135
'currentPage ' => Hyde::docsDirectory ().'/ ' .$ this ->page ->slug ,
0 commit comments