Skip to content

Commit

Permalink
What if I'm a bad boy?
Browse files Browse the repository at this point in the history
  • Loading branch information
jesseleite committed Jul 11, 2023
1 parent 0917c42 commit 82ca984
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/Page.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public function directory()
public function path()
{
if ($this->is404()) {
return $this->config['destination'].'/404.html';
return $this->config['destination'] . '/404.html';
}

$url = $this->url();
Expand All @@ -76,9 +76,7 @@ public function path()

$url = $this->config['destination'].$url;

if ($ext === 'html') {
$url .= '/index.html';
}
if ($ext === 'html') $url .= '/index.html';

return $url;
}
Expand Down

0 comments on commit 82ca984

Please sign in to comment.