Skip to content

Commit

Permalink
feat: load layout.less if it exists
Browse files Browse the repository at this point in the history
  • Loading branch information
BernhardBaumrock committed Mar 25, 2024
1 parent 1bbfd4a commit c8f2876
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions classes/StylesArray.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ public function addDefaultFolders()
{
if ($this->wire->page->template == 'admin') return $this;

// add the global layout file
$this->add('/site/templates/layout.less', quiet: true);

// add all style files in the following folders
$this->addAll('/site/templates/layouts');
$this->addAll('/site/templates/less');
Expand Down

0 comments on commit c8f2876

Please sign in to comment.