From 227b8d3b7f082a6234e9fe97c5470341973e0f14 Mon Sep 17 00:00:00 2001 From: Bob den Otter Date: Wed, 2 Sep 2020 15:24:37 +0200 Subject: [PATCH] Don't list singletons in Aside --- public/theme/skeleton/partials/_aside.twig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/theme/skeleton/partials/_aside.twig b/public/theme/skeleton/partials/_aside.twig index a200ffee5..bf32a3924 100644 --- a/public/theme/skeleton/partials/_aside.twig +++ b/public/theme/skeleton/partials/_aside.twig @@ -51,7 +51,7 @@ something like '/pages', effectively creating a working link to that ContentTypes's listing page. #} - {% for ct in config.get('contenttypes')|filter(ct => not ct.viewless) %} + {% for ct in config.get('contenttypes')|filter(ct => not ct.viewless and not ct.singleton) %} {% setcontent records = ct.slug latest limit 3 %}