From 4ee4326f3b4f9fb3437955d5f463659b453778e6 Mon Sep 17 00:00:00 2001 From: Chris Kankiewicz Date: Mon, 17 Feb 2020 23:31:40 -0700 Subject: [PATCH] Title improvements --- app/src/Handlers/DirectoryHandler.php | 1 + app/views/index.twig | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) 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" %}