Link to headings by name
tags: links internal-links toc headings export-option
Description/Summary
Alpha 101 #
-
Link (with description) to a heading with section number: Link to Beta 102 heading
-
Link (no description) to a heading without section number: Zeta 103 which has some markup.
The space after that
*
in the link is optional.. so this also works: Zeta 103 which has some markup.
1 …
Content
Alpha 101 #
-
Link (with description) to a heading with section number: Link to Beta 102 heading
-
Link (no description) to a heading without section number: Zeta 103 which has some markup.
The space after that
*
in the link is optional.. so this also works: Zeta 103 which has some markup.
1 Beta 102 #
- Link (with description) to a heading without section number: Link to Alpha 101 heading
1.1 Gamma 102.1 #
1.1.1 Delta 102.1.1 #
1.1.2 Epsilon 102.1.2 #
Zeta 103 which has some markup #
Links (no descriptions) to headings with section numbers #
Page (Debug)
Page Variable | Value | |
---|---|---|
Name | "Link to headings by name" | |
Title | "Link to headings by name" | |
ResourceType | "page" | |
Kind | "page" | |
Section | "posts" | |
Draft | false | |
Type | "posts" | |
Layout | "" | |
Permalink | "https://ox-hugo.scripter.co/test/posts/link-to-headings-by-name/" | |
RelPermalink | "/posts/link-to-headings-by-name/" | |
Data |
| |
NextPage | Link destination | |
PrevPage | Links outside the same post | |
NextInSection | Link destination | |
PrevInSection | Links outside the same post |
Page Params (Debug)
Key | Type | Value |
---|---|---|
draft | bool | false |
iscjklanguage | bool | false |
lastmod | time.Time | 2022-04-05 21:59:59 -0400 -0400 |
tags | []string | "links" "internal-links" "toc" "headings" "export-option" |
title | string | "Link to headings by name" |
File Object (Debug)
FileInfo Variable | Value |
---|---|
UniqueID | "ef8b6b4af504011c6540ab3669c957d0" |
BaseFileName | "link-to-headings-by-name" |
TranslationBaseName | "link-to-headings-by-name" |
Lang | "en" |
Section | "posts" |
LogicalName | "link-to-headings-by-name.md" |
Dir | "posts/" |
Ext | "md" |
Path | "posts/link-to-headings-by-name.md" |