TOC Local
Description/Summary
Test the#+toc: headlines N local
syntax where a TOC is exported
containing headings only up to level-N relative to the heading in
which that keyword is used.
Content
Below, TOC is exported with only level-1 headings in this post.
Below exported TOC should look the same as above even when it’s
generated using the local
param as it is at the root level of this
post.
Post sub-heading 1 #
Below, TOC is exported with only level-1 headings relative to this “Post sub-heading 1” section.
Post sub-heading 1.1 #
Post sub-heading 1.1.1 #
Post sub-heading 1.2 #
Post sub-heading 1.3 #
Post sub-heading 2 #
Post sub-heading 2.1 #
Post sub-heading 2.2 #
Below, TOC is exported with only up to level-2 headings relative to this “Post sub-heading 2.2” section.
Post sub-heading 2.2.1 #
Post sub-heading 2.2.2 #
Post sub-heading 2.2.3 #
Below, TOC is exported with only level-1 headings relative to this “Post sub-heading 2.2.3” section.
Post sub-heading 2.2.3.1 #
Post sub-heading 2.2.3.2 #
Post sub-heading 3 #
Post sub-heading 3.1 #
Page (Debug)
Page Variable | Value | |
---|---|---|
Name | "TOC Local" | |
Title | "TOC Local" | |
ResourceType | "page" | |
Kind | "page" | |
Section | "posts" | |
Draft | false | |
Type | "posts" | |
Layout | "" | |
Permalink | "https://ox-hugo.scripter.co/test/posts/toc-local/" | |
RelPermalink | "/posts/toc-local/" | |
Data |
| |
NextPage | TOC :target | |
PrevPage | TOC with all headings (numbered, except for selected unnumbered) | |
NextInSection | TOC :target | |
PrevInSection | TOC with all headings (numbered, except for selected unnumbered) |
Page Params (Debug)
Key | Type | Value |
---|---|---|
description | string | " Test the `#+toc: headlines N local` syntax where a TOC is exported\n containing headings only up to level-N relative to the heading in\n which that keyword is used.\n " |
draft | bool | false |
iscjklanguage | bool | false |
lastmod | time.Time | 2022-01-11 23:56:17 -0500 -0500 |
tags | []string | "keyword" "toc" "local" |
title | string | "TOC Local" |
File Object (Debug)
FileInfo Variable | Value |
---|---|
UniqueID | "5b7529979021ce2b0b879f732f0d749c" |
BaseFileName | "toc-local" |
TranslationBaseName | "toc-local" |
Lang | "en" |
Section | "posts" |
LogicalName | "toc-local.md" |
Dir | "posts/" |
Ext | "md" |
Path | "posts/toc-local.md" |