Skip to content

Commit

Permalink
Add page slug for compatibility, fixing bug where Blade pages did not…
Browse files Browse the repository at this point in the history
… get canonical link tags
  • Loading branch information
caendesilva committed May 19, 2022
1 parent 283e5d2 commit d3ac8e4
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/Models/BladePage.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,19 @@ class BladePage extends AbstractPage
*/
public string $view;

/**
* The page slug for compatibility
* @var string
*/
public string $slug;

/**
* @param string $view
*/
public function __construct(string $view)
{
$this->view = $view;
$this->slug = $view;
}

public static string $sourceDirectory = '_pages';
Expand Down

0 comments on commit d3ac8e4

Please sign in to comment.