From 11ed158b4126a6036e2499d1cb9dcc0053381e58 Mon Sep 17 00:00:00 2001 From: Ayush Kumar <131751122+Ayush277@users.noreply.github.com> Date: Sun, 20 Oct 2024 16:52:16 +0530 Subject: [PATCH] Update nav.html Using unless makes the condition slightly more readable by directly expressing the condition for the exception --- _includes/nav.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_includes/nav.html b/_includes/nav.html index 5a63da061fb..284b1265dfc 100644 --- a/_includes/nav.html +++ b/_includes/nav.html @@ -34,7 +34,7 @@ {% endif %} - {% if page.layout != 'index' %} + {% unless page.layout == 'index' %}