From ac4ae28ee1270391a34f5271a3f8aeb44d2d311c Mon Sep 17 00:00:00 2001 From: Tim van Dijen <tvdijen@gmail.com> Date: Wed, 4 Jan 2023 09:15:51 +0100 Subject: [PATCH] Add extra optional header template. This allows people to add extra header-lines without needing to override the base.twig template completely by creating _head.twig with their own meta/css/... lines. If the template is missing nothing is added. --- templates/base.twig | 1 + 1 file changed, 1 insertion(+) diff --git a/templates/base.twig b/templates/base.twig index 9eef89566..bfb6a0b6c 100644 --- a/templates/base.twig +++ b/templates/base.twig @@ -10,6 +10,7 @@ <link rel="stylesheet" href="{{ asset("css/stylesheet.css") }}"> <link rel="icon" href="{{ asset("icons/favicon.ico") }}"> <meta name="robots" content="noindex, nofollow"> + {{ include('_head.twig', ignore_missing = true) }} {% block preload %}{% endblock %} </head> <body id="{{ templateId }}"> -- GitLab