.Kind (page): .Type (posts) / .Layout ()
Bundle: n/a (regular page)
[ categories | tags | search ]
ox-hugo Test Site

This is the test site for the ox-hugo package for Emacs/Org-mode.

It is updated automatically after each commit to the ox-hugo repo. It was last updated on Oct 05, 2024 21:20 UTC.


This page was created/modified in commit eff2ed2 "Remove the <div> .. </div> hack from #+toc inserted TOC" on 2022-01-11.
Markdown source of this page

TOC Local

tags: keyword 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.

Table of Contents

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 VariableValue
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
page.Data{} (type:page.Data)
NextPageTOC :target
PrevPageTOC with all headings (numbered, except for selected unnumbered)
NextInSectionTOC :target
PrevInSectionTOC with all headings (numbered, except for selected unnumbered)

Page Params (Debug)

KeyTypeValue
descriptionstring " 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 "
draftbool false
iscjklanguagebool false
lastmodtime.Time 2022-01-11 23:56:17 -0500 -0500
tags[]string "keyword" "toc" "local"
titlestring "TOC Local"

File Object (Debug)

FileInfo VariableValue
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"

This site is generated using the ox-hugo package for Emacs/Org-mode + hugo-bare-min-theme + Hugo 0.101.0 (commit 466fa43c16709b4483689930a4f9ac8add5c9f66) . This site is powered by Netlify.
[Test Site home | ox-hugo home]