From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/26761 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Nandakumar Chandrasekhar Newsgroups: gmane.text.pandoc Subject: Adding title of post to table of contents Date: Sat, 7 Nov 2020 00:57:36 -0800 (PST) Message-ID: <3d97dc4e-e05b-48cf-8a80-557918bf0d29n@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_2536_1243560587.1604739456977" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="20125"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBCY7JSF32YFRBAODTH6QKGQEVCWVQEQ-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Sat Nov 07 09:57:41 2020 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-ot1-f61.google.com ([209.85.210.61]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1kbK2W-00058D-Sp for gtp-pandoc-discuss@m.gmane-mx.org; Sat, 07 Nov 2020 09:57:40 +0100 Original-Received: by mail-ot1-f61.google.com with SMTP id j17sf1707503ots.9 for ; Sat, 07 Nov 2020 00:57:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:date:from:to:message-id:subject:mime-version :x-original-sender:reply-to:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-subscribe:list-unsubscribe; bh=r8Q3Q+kPYD74V6oqIdUO24OhR+R4EEwfbmckLdBu8PM=; b=s30Ug6nW9FWxm53sDzNnLGMUnUzKBD13W6+rlmCYC6JBQU+FRutbajz82qreinG7TB OcYg8kkVzrhYQf4BodFEO3YyMGD440Sd1eLmNJNQNGMV0Yg9f3q3oK0pbbZETDGrxuLs 33kyi/TzA77KihpsGZgtyaiP0To9eOAI7AJUv8sTvDmXyo4ZY1/NnmO2Zk9udIsCr4bn EV5MZmidf8R/ruYRxS9tnHiwbqvKbvOhvmA5cPjarvMNJsMgW2GvgQ9QYVLbvf2/LOYw wBQ1S5Sk/rK1jl02YYzi7SCjv+yFbooKy8h9Vcp++Q3EViYf6beqNtuROnlY1hlfyLFa qjaA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:message-id:subject:mime-version:x-original-sender :reply-to:precedence:mailing-list:list-id:list-post:list-help :list-archive:list-subscribe:list-unsubscribe; bh=r8Q3Q+kPYD74V6oqIdUO24OhR+R4EEwfbmckLdBu8PM=; b=QY/1PIjx1/qyX/ZFgopC7VuTcJYeoDMUBPiWic7eTRO7vTdRMDNhdfdoiqkOqR032s L8kubclogfoR9ut2QrI4rIG1tqpacRJsdVuCYsvgzqqq1fTMtsEOtalgWR6JMv8+z8RO 41vyKe9nrGy/Q74YXaIOeJFCCXkUG6Ibp/4ITXjAvMkOvrXAm/g8lZl6XjkqY8IT//vk Hyo+KZ4EfwEiwS9+e15CVQkkbZ9STPxJyXC+L39z/G7ok2bFh9TlmsgOqHOBvEs7M1rf clVaTHB0Jr3VsZRESpYJLBNnqiexmSGWNHTKI9Xx+UrO/birXezgzWk4Bys8wa8ANxUl b90Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:date:from:to:message-id:subject :mime-version:x-original-sender:reply-to:precedence:mailing-list :list-id:x-spam-checked-in-group:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=r8Q3Q+kPYD74V6oqIdUO24OhR+R4EEwfbmckLdBu8PM=; b=o0pfVFoVXITlFaQAhAnvenar3ufgP1/+XmwvtYjpQ07g6M2P4wejJ4SpUnhBWPwImI Sfn4mw1ZLSzSKhIcfCfHBxEOPuJ7WNY/w4TpTY3G2km2riYSUKmNbR7U4J9RZbQS2322 hYiEWJAhg1aS339V1XTaRt3rMQjwFbvv0HHjS5zMWr/Lx+ukTutOsKsRn0Ba34cAnhFn iiXE2RQOMWMStzJ9eq7aXjzR/Qh8fA4/TkMoxSkjWC+shN261nro9uJFNCw20INft/pj Ih/cmxYfvDRD8BeD5jkT1uNwjHBNTBLF+1Kuq7R68MdgXXAX4UCGwEPqa5ss/FubTCym d+Lg== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM530CjzZmhca0aROVHnWE8azhs32384Vr0uT2USNQP6vgQ0cZQBTg 3mLDHG9kREN9ojt7hXMhhXU= X-Google-Smtp-Source: ABdhPJyjUA6xNt2K7bu1FSwKNR4W4e5+NdQFPsofJTtwpw5GfvqN+3Vah0RBXctRY2oxZxt5z0ebnQ== X-Received: by 2002:a4a:c218:: with SMTP id z24mr3900176oop.9.1604739459976; Sat, 07 Nov 2020 00:57:39 -0800 (PST) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a9d:6a95:: with SMTP id l21ls895942otq.4.gmail; Sat, 07 Nov 2020 00:57:37 -0800 (PST) X-Received: by 2002:a9d:694e:: with SMTP id p14mr3437564oto.254.1604739457588; Sat, 07 Nov 2020 00:57:37 -0800 (PST) X-Original-Sender: navanitachora-Re5JQEeQqe8AvxtiuMwx3w@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:26761 Archived-At: ------=_Part_2536_1243560587.1604739456977 Content-Type: multipart/alternative; boundary="----=_Part_2537_1065361992.1604739456977" ------=_Part_2537_1065361992.1604739456977 Content-Type: text/plain; charset="UTF-8" Dear Folks, I am using a template to generate a table of contents for blog posts my template is below: $if(toc)$ $endif$ Now I have no issues getting all the headings of the post in the table of contents except for the title of the blog post. If this is a non-standard use case and not the done thing kindly let me know. Otherwise, how would I modify the template above to get the title of the post as the first link? Many thanks, Nanda -- 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 email 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/3d97dc4e-e05b-48cf-8a80-557918bf0d29n%40googlegroups.com. ------=_Part_2537_1065361992.1604739456977 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Dear Folks,

I am using a template to generate a table of= contents for blog posts my template is below:
$if(toc)$
<nav id=3D"$idprefix$TOC" role=3D"doc= -toc">
$if= (toc-title)$
= <h2 id=3D"$idprefix$toc-title">$toc-title$</h2>
$endif$
$table-of-contents$
<= div></nav>
<= div>$endif$=

Now I have no issues getting all the headings of the post in the table o= f contents except for the title of the blog post.

= If this is a non-standard use case and not the done thing kindly let me kno= w.

Otherwise, how would I modify the template above to get the title= of the post as the first link?

Many thanks,
=
Nanda

--
You received this message because you are subscribed to the Google Groups &= quot;pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an e= mail to pand= oc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d= /msgid/pandoc-discuss/3d97dc4e-e05b-48cf-8a80-557918bf0d29n%40googlegroups.= com.
------=_Part_2537_1065361992.1604739456977-- ------=_Part_2536_1243560587.1604739456977--