From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/32298 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "S. Manning" Newsgroups: gmane.text.pandoc Subject: Determining that a Pandoc Variable is the Empty String Date: Tue, 07 Mar 2023 21:41:10 -0700 Message-ID: Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="10552"; mail-complaints-to="usenet@ciao.gmane.io" To: Pandoc discuss Original-X-From: pandoc-discuss+bncBDJ5LMOP34CRB2FDUCQAMGQEHD6UZQI-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Wed Mar 08 05:42:05 2023 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-ed1-f60.google.com ([209.85.208.60]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1pZlcr-0002b0-1n for gtp-pandoc-discuss@m.gmane-mx.org; Wed, 08 Mar 2023 05:42:05 +0100 Original-Received: by mail-ed1-f60.google.com with SMTP id p36-20020a056402502400b004bb926a3d54sf21887462eda.2 for ; Tue, 07 Mar 2023 20:42:04 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1678250524; cv=pass; d=google.com; s=arc-20160816; b=LezK9BUPHzkCFiqMQBgoSf80JpovYrnbOfxJHzDMK244aafLYJ66S1vO5EyMIASFYN j4hcfqmBtNFySUD76TE7zyen/p+2cq7qKtzyP6k3ZpqXpq8zykG6dfsvSoqDamitAAUI ss1rxasH6Ct7fHSTQaGCHnsTjNZ1P9ysXh9QCkq5bMGrBc6Wug48JiSFpfkSivvrgEcO Qo2nSZCj/32Lo08TkYHWKJP8PAKShvFEaAtp4VAFsehBHmIhUvgcjFyxDuAPl3/SrhOc zzrbNoggvfRu0p5Jqgu6Qezr8nxXtc6831Facg6DKlZPS3ghShmuut3DcfaNNWi4Erg6 6wnA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:content-transfer-encoding :message-id:subject:to:from:date:mime-version:sender:dkim-signature; bh=weWsVTocgdWEIAgjoJ6nbodQAe7Br52LvnMYXtHpGoY=; b=qx9ki8gj1u2zZ1CEkAZSRtTPNJc40lI1AaDx0dyPPYwf5695hHoqlwbFz0mQel2G6A A+WRY62AQrcDuI7qkMGKQ5znU6yNULwnnW6DJtWdQyjJOCO7hXboMxzfZrKmb5EtqElT KXxfDDMFb6Ch+ogiNDuI9cn/IOY9kuAF8Ux9GyFYlGxH/DaqVQnRrJTnOJnyVa659jev HF12JCbY5SpWtsjEqJ23/4+POYpHQ+ndKhnMooFGLHAMHk86jOEoBWJ3Smhfc2EBi2/D 9JW2I0p2G3TfPtqQhHb/U1KDNltwRb6NR04q5tpa501z+GJIs8ivVjGZUO1aWnuwj0BQ dX1w== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@ssl01.alldomains.hosting header.s=dkim header.b=LGsykWlL; spf=neutral (google.com: 213.145.224.20 is neither permitted nor denied by best guess record for domain of scriptor-aFO/2INALiozYggVrLCuDg@public.gmane.org) smtp.mailfrom=scriptor-aFO/2INALiozYggVrLCuDg@public.gmane.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20210112; t=1678250524; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to :x-original-authentication-results:x-original-sender :content-transfer-encoding:message-id:subject:to:from:date :mime-version:sender:from:to:cc:subject:date:message-id:reply-to; bh=weWsVTocgdWEIAgjoJ6nbodQAe7Br52LvnMYXtHpGoY=; b=IfUPbtDSB2Gmk0w9F15Wjx276OcxmqTv79L9xdAjFdZKsGDL/crDaoEIS8l7ho0ERG uvauvPfZz2rog/rzn4kOtRsIw1bjv5Epu6wyIO5otV91X1YGMrPShwn7vY+6ccfKARdK lJIg9Jq9j9wqNT2CMbiRtAU/eZy1vZJpzWKfUIoBQf5HKb86XzWoSyl4o8DvITR7JlIZ tRGZ6Cn0rwvenFDWlSSCLrOssOms64T9zrW9/twt49uMn5M/piRHMOC0QTSRjNXWajME i4dTbP6TbQmUGrqR46im8fSlRQSL+F621RaD9W4rwBkwTTgDEILoA9Y0YVZHQ/Az9VTw sisA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678250524; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence:reply-to :x-original-authentication-results:x-original-sender :content-transfer-encoding:message-id:subject:to:from:date :mime-version:x-gm-message-state:sender:from:to:cc:subject:date :message-id:reply-to; bh=weWsVTocgdWEIAgjoJ6nbodQAe7Br52LvnMYXtHpGoY=; b=EkpmQWimdeEeEA0Lklj8P1su0SljA1P6zy6CjlTVjCIwrp4CU2cXNyiWK+HZoYoaex Ezf7ynmuKJtLVpbg64nBCOv5wXVlC27uuE5EsgzRxPb9HC+OjISky7jeHmkfLnIGSP2S xAfThoXohFkG5zoAtGFHjexLHLY/fFIyt7dwPymcRwUD+r2sXhEEw47JwB3uOpHIwIZF 5rTQwjYqjvF19tG6G9X+tvo1cN9xiBsvISJeFr/9NK2AhfgLfPnbVCO/9JEeULxk4TWR c6WbXtvuRKIPff3t3Ahn5KRm0AbB2 Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AO0yUKUVVUknjguOmp6pi/qSEhkj8VUiNerH7caJty4MyM2ncPHk/ihf f4d0ZAwfK1m/x8PEscgJ1e8= X-Google-Smtp-Source: AK7set/gj0QeHbKoykS53wyRC5WKmJOtKAx5oMZbJnq80qbmHFb9cdE/dvVAOZkHUsuuIq6E7nlv3Q== X-Received: by 2002:a17:906:274f:b0:877:7480:c561 with SMTP id a15-20020a170906274f00b008777480c561mr8576268ejd.1.1678250524552; Tue, 07 Mar 2023 20:42:04 -0800 (PST) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a17:907:a602:b0:88c:15fe:2274 with SMTP id vt2-20020a170907a60200b0088c15fe2274ls10028466ejc.7.-pod-prod-gmail; Tue, 07 Mar 2023 20:41:10 -0800 (PST) X-Received: by 2002:a17:907:c0c:b0:8af:2cf7:dd2b with SMTP id ga12-20020a1709070c0c00b008af2cf7dd2bmr21470021ejc.13.1678250470857; Tue, 07 Mar 2023 20:41:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1678250470; cv=none; d=google.com; s=arc-20160816; b=eWmjiQA21Dt5YiTeq0Dkq+QvbfjJUv3jWdqfX/qv/mlLLC26jRHvo3774BbcoAe+zR yuUvAPYonRXQ9yNFvXmC5ZR80ysaUoCbqKrRqryo7gRsge6OJ3i2Ne1gQmPOeVxE97Ju c1X/LtoEpX2f9HuhHuHP7X5TOb+Iyr7X5uCxHO3jCIaMvvSlUzwfWvn2fB2giBGXZgBe iCGDepyg/l9ivzEhk59vijoJ7VQ8cfQz3EnBjJnCa6UjjoQ/jwpPzO4+PssD10zlgF7j 09fLdsdwZHYTmFMywRGqOK45Qbfw8MFUjMbZpKkg3MzgSbBqa8y4EwAauny83GtOBRY3 ibtw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:message-id:subject:to:from:date :mime-version:dkim-signature; bh=j1s3jwqcVq2j69pmGvKdD10SuBLldsnlGxHrCRjogxQ=; b=qKiyzxqVcRh497rHrSXQ7kYLKejvw0Fplp6nOodYvc+0wmTNv+ky5xEAIR0w3x4gJK gtQ2SU/ZQ+cQ8ls0pgHQIukRPmefR2MFlj3DftbyyOTKpeR6NnOOPTcORLDEEeAf58uo 0LMutV8oi+CYN/HLJ8yP4znn9QB0s2QGWh1VbCBCSvHGtS13me9jbu0bkar+XXR4rA1G Fad08WQB69C1XyJBZlu5o6JMrqJv0RNEx0ipafpCh6Kk+g7QTNbNKk9AIm4/B+IZMWRw N/h/rHl1SUpq8kKGCBuyKolQLlxky4x74o0Lz4VYnHJDLzruNCUDaFdkcndgUkAE3PIe XAhA== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@ssl01.alldomains.hosting header.s=dkim header.b=LGsykWlL; spf=neutral (google.com: 213.145.224.20 is neither permitted nor denied by best guess record for domain of scriptor-aFO/2INALiozYggVrLCuDg@public.gmane.org) smtp.mailfrom=scriptor-aFO/2INALiozYggVrLCuDg@public.gmane.org Original-Received: from ssl01.alldomains.hosting (ssl01.alldomains.hosting. [213.145.224.20]) by gmr-mx.google.com with ESMTPS id i23-20020a0564020f1700b0046c3ce626bdsi650650eda.2.2023.03.07.20.41.10 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Mar 2023 20:41:10 -0800 (PST) Received-SPF: neutral (google.com: 213.145.224.20 is neither permitted nor denied by best guess record for domain of scriptor-aFO/2INALiozYggVrLCuDg@public.gmane.org) client-ip=213.145.224.20; Original-Received: (qmail 1970307 invoked by uid 7799); 8 Mar 2023 05:41:10 +0100 Original-Received: by simscan 1.4.0 ppid: 1970302, pid: 1970304, t: 0.0702s scanners: clamav: 0.103.7/m:62/d:26834 Original-Received: from ssl01.alldomains.hosting (scriptor-aFO/2INALiozYggVrLCuDg@public.gmane.org@213.145.224.20) by ssl01.alldomains.hosting with SMTP [44182]; 8 Mar 2023 05:41:10 +0100 X-Sender: scriptor-aFO/2INALiozYggVrLCuDg@public.gmane.org X-Original-Sender: scriptor-aFO/2INALiozYggVrLCuDg@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@ssl01.alldomains.hosting header.s=dkim header.b=LGsykWlL; spf=neutral (google.com: 213.145.224.20 is neither permitted nor denied by best guess record for domain of scriptor-aFO/2INALiozYggVrLCuDg@public.gmane.org) smtp.mailfrom=scriptor-aFO/2INALiozYggVrLCuDg@public.gmane.org Precedence: list Mailing-list: list pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org; contact pandoc-discuss+owners-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org List-ID: X-Google-Group-Id: 1007024079513 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , Xref: news.gmane.io gmane.text.pandoc:32298 Archived-At: I would like to add a tag system to my static site which I generate with=20 Pandoc templates. Adding a tags: variable in myPage.yaml is easy, but=20 then I want to add links from pages with the tag to the page for that=20 tag. Code like: $for(tags)$ =E2=87=90 back to $tags$  $endfor$ adds a link even if the tags variable is empty ("tags: " in the YAML=20 file). How can I check that the tag is not empty or a null string or however=20 Pandoc defines it? https://pandoc.org/MANUAL.html#interpolated-variables alludes to=20 variable types such as string and list, but does not define them or=20 explain how to get the attributes of complex variables such as lists. --=20 You received this message because you are subscribed to the Google Groups "= pandoc-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an e= mail to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/= pandoc-discuss/baea52e4f4b9a22d832faa30ab3fd116%40ageofdatini.info.