From e32fb2b41f23981babe5c281cc7a755a388cc69d Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Sun, 25 Aug 2024 19:30:09 +0100 Subject: [PATCH] Combine layouts to make the skeleton easier to use --- source/_layouts/{app.html.twig => base.html.twig} | 4 +++- source/_layouts/default.html.twig | 5 ----- source/index.md | 3 ++- 3 files changed, 5 insertions(+), 7 deletions(-) rename source/_layouts/{app.html.twig => base.html.twig} (78%) delete mode 100644 source/_layouts/default.html.twig diff --git a/source/_layouts/app.html.twig b/source/_layouts/base.html.twig similarity index 78% rename from source/_layouts/app.html.twig rename to source/_layouts/base.html.twig index 05ae600..131832c 100644 --- a/source/_layouts/app.html.twig +++ b/source/_layouts/base.html.twig @@ -7,6 +7,8 @@ {{ site.name|default('Sculpin Skeleton') }} - {% block body %}{% endblock %} + {% block body %} + {% block content %}{% endblock %} + {% endblock %} diff --git a/source/_layouts/default.html.twig b/source/_layouts/default.html.twig deleted file mode 100644 index 56c9c99..0000000 --- a/source/_layouts/default.html.twig +++ /dev/null @@ -1,5 +0,0 @@ -{% extends 'app' %} - -{% block body %} - {% block content %}{% endblock %} -{% endblock %} diff --git a/source/index.md b/source/index.md index d620bba..b4f2f82 100644 --- a/source/index.md +++ b/source/index.md @@ -1,4 +1,5 @@ --- -layout: default +layout: base --- + Hello, World!