From 98813f3c4771d5f8622079b279894834ea2a9738 Mon Sep 17 00:00:00 2001 From: Dave Smith-Hayes Date: Wed, 15 May 2024 22:27:06 -0400 Subject: [PATCH] Fix references the templates --- code/src/Controller/HomePage.php | 2 +- code/templates/home.twig | 4 ++-- code/templates/layouts/skeleton.twig | 8 ++++---- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/code/src/Controller/HomePage.php b/code/src/Controller/HomePage.php index f43657b..cab9b84 100644 --- a/code/src/Controller/HomePage.php +++ b/code/src/Controller/HomePage.php @@ -8,6 +8,6 @@ class HomePage extends Controller { public function respond(): Response { - return $this->render('home'); + return $this->render('home.twig'); } } diff --git a/code/templates/home.twig b/code/templates/home.twig index 9629149..6247624 100644 --- a/code/templates/home.twig +++ b/code/templates/home.twig @@ -1,6 +1,6 @@ -{% extends 'layouts/skeleton' %} +{% extends 'layouts/skeleton.twig' %} -{% block "content" %} +{% block content %}

Slovocast

diff --git a/code/templates/layouts/skeleton.twig b/code/templates/layouts/skeleton.twig index 2acd9b9..4e617e8 100644 --- a/code/templates/layouts/skeleton.twig +++ b/code/templates/layouts/skeleton.twig @@ -1,20 +1,20 @@ - {% block "page_title" %}{% endblock %} + {% block page_title %}{% endblock %}
- {% block "header" %}{% endblock %} + {% block header %}{% endblock %}
- {% block "content" %}{% endblock %} + {% block content %}{% endblock %}