Do not leak post's immediate sub-heading tag into the front-matter
tags: expected-tag post-heading-followed-soon-with-subheading
Description/Summary
Disable exporting of sub-heading tags by setting export optiontags:nil.
Content
Sub-heading 1 #
This is a special case where:
- A post has a sub-heading as the first line in its body, and
- That sub-heading has a tag too!
The passing case for this test would be that the unexpected_tag does
not leak into the post’s front-matter.
Page (Debug)
| Page Variable | Value | |
|---|---|---|
| Name | "Do not leak post's immediate sub-heading tag into the front-matter" | |
| Title | "Do not leak post's immediate sub-heading tag into the front-matter" | |
| ResourceType | "page" | |
| Kind | "page" | |
| Section | "posts" | |
| Draft | false | |
| Type | "posts" | |
| Layout | "" | |
| Permalink | "https://ox-hugo.scripter.co/test/posts/dont-leak-subheading-tags/" | |
| RelPermalink | "/posts/dont-leak-subheading-tags/" | |
| Data |
| |
| NextPage | Disabling Pandoc citations in a subtree (nil string) | |
| PrevPage | Don't number headings (but yes in TOC) | |
| NextInSection | Disabling Pandoc citations in a subtree (nil string) | |
| PrevInSection | Don't number headings (but yes in TOC) |
Page Params (Debug)
| Key | Type | Value |
|---|---|---|
| description | string | " Disable exporting of sub-heading tags by setting export option\n `tags:nil`.\n " |
| draft | bool | false |
| iscjklanguage | bool | false |
| lastmod | time.Time | 2022-01-10 18:44:27 -0500 -0500 |
| tags | []string | "expected-tag" "post-heading-followed-soon-with-subheading" |
| title | string | "Do not leak post's immediate sub-heading tag into the front-matter" |
File Object (Debug)
| FileInfo Variable | Value |
|---|---|
| UniqueID | "7832204dc54577f8856cccd2ba951cd0" |
| BaseFileName | "dont-leak-subheading-tags" |
| TranslationBaseName | "dont-leak-subheading-tags" |
| Lang | "en" |
| Section | "posts" |
| LogicalName | "dont-leak-subheading-tags.md" |
| Dir | "posts/" |
| Ext | "md" |
| Path | "posts/dont-leak-subheading-tags.md" |