From 82ca984d5730889de7e718e9ac709923de3d72f8 Mon Sep 17 00:00:00 2001 From: Jesse Leite Date: Tue, 11 Jul 2023 09:44:49 -0400 Subject: [PATCH] What if I'm a bad boy? --- src/Page.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/Page.php b/src/Page.php index 6c3ff1d..8627ade 100644 --- a/src/Page.php +++ b/src/Page.php @@ -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(); @@ -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; }