diff --git a/app/src/Handlers/DirectoryHandler.php b/app/src/Handlers/DirectoryHandler.php index 856f927..eb78ee1 100644 --- a/app/src/Handlers/DirectoryHandler.php +++ b/app/src/Handlers/DirectoryHandler.php @@ -60,6 +60,7 @@ class DirectoryHandler 'files' => $files, 'path' => $path, 'readme' => $this->readme($files), + 'title' => $path == '.' ? 'Home' : $path, ]); } diff --git a/app/views/index.twig b/app/views/index.twig index 13b7783..e8d7e95 100644 --- a/app/views/index.twig +++ b/app/views/index.twig @@ -1,5 +1,4 @@ {% extends "layouts/app.twig" %} -{% set title = path == '.' ? 'Home' : path %} {% block content %} {% include "components/header.twig" %}