From 08f72ca1e5f54020dfb4417fb80f7cce1e4a9bad Mon Sep 17 00:00:00 2001 From: Taoning Ge Date: Sat, 17 Aug 2024 15:57:39 +0800 Subject: [PATCH] hidden date and description when both is empty --- lib.typ | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib.typ b/lib.typ index 8769bc1..309e1f0 100644 --- a/lib.typ +++ b/lib.typ @@ -410,7 +410,9 @@ pad[ #justified-header(title-content, location) - #secondary-justified-header(description, date) + #if description != "" or date != "" [ + #secondary-justified-header(description, date) + ] ] }