Quantcast
Channel: Sections wrapped in a shortcode do not appear in the TOC
Browsing latest articles
Browse All 15 View Live

Sections wrapped in a shortcode do not appear in the TOC

@StarfallProjects wrote: Hi! I am having an issue with .TableOfContents On a normal page, it generates fine - picks up my <h1> (not ideal but not a big problem) and <h2> However, I have...

View Article



Sections wrapped in a shortcode do not appear in the TOC

@sharonl wrote: We created our own custom page-TOC (“mini TOC”) implementation to support headings created with shortcodes (and other features). See Create a custom page TOC ("mini TOC") with...

View Article

Sections wrapped in a shortcode do not appear in the TOC

@StarfallProjects wrote: Thank you! That set me off on the right track. I modified your partial and came up with this, which avoids using any JavaScript: {{ $headers := findRE...

View Article

Image may be NSFW.
Clik here to view.

Sections wrapped in a shortcode do not appear in the TOC

@pointyfar wrote: StarfallProjects: “Main heading”, “Some content” and “Yet more content” all appear in the TOC. “More content” does not. Hi, Have a read of the docs here:...

View Article

Sections wrapped in a shortcode do not appear in the TOC

@StarfallProjects wrote: I don’t really rely on the docs for the shortcodes, I’ve got myself in a mess trying to follow them before. Looking at the docs, using the following should allow the table of...

View Article


Sections wrapped in a shortcode do not appear in the TOC

@pointyfar wrote: Use without piping to markdownify in the shortcode. Read full topic

View Article

Sections wrapped in a shortcode do not appear in the TOC

@StarfallProjects wrote: What do you mean exactly? In the docs it looks like there are three ways of doing shortcodes: %% with the snippet to make it use the old way modern %% <> None of them...

View Article

Image may be NSFW.
Clik here to view.

Sections wrapped in a shortcode do not appear in the TOC

@pointyfar wrote: StarfallProjects: This is the code for the shortcodes: <div class="docs-insight-tier"> <strong style= "background-color: rgba(255, 185, 199, 1); padding: 0.3rem;...

View Article


Sections wrapped in a shortcode do not appear in the TOC

@StarfallProjects wrote: That removes all the markdown formatting within the shortcode (so headings, bold etc. don’t show as formatted, you just get a load of ## and ** and so on) Read full topic

View Article


Sections wrapped in a shortcode do not appear in the TOC

@pointyfar wrote: Given the following content: ## Lorem 1. one 2. *two* {{< test >}} ## h2 inside &lt; shortcode 1. three 2. *four* ### h3 inside &lt; shortcode 1. five 2. *six* {{<...

View Article

Sections wrapped in a shortcode do not appear in the TOC

@sharonl wrote: Which version of Hugo are each of you using? The % vs. </> shortcode processing logic changed in Hugo v0.5.0 (if I recall correctly). Read full topic

View Article

Sections wrapped in a shortcode do not appear in the TOC

@StarfallProjects wrote: So I tried this (I think) Used the %% shortcode Removed the markdownify pipe I get a jumble of unprocessed markdown, and nothing in the table of contents I am on Hugo 0.58.2...

View Article

Sections wrapped in a shortcode do not appear in the TOC

@pointyfar wrote: In that case you need to either show us your code or create a small dummy project that demonstrates the issue. As I said above, the setup works for me, so there may be something else...

View Article


Image may be NSFW.
Clik here to view.

Sections wrapped in a shortcode do not appear in the TOC

Sections wrapped in a shortcode do not appear in the TOC support Thank you! That set me off on the right track. I modified your partial and came up with this, which avoids using any JavaScript: {{...

View Article

Sections wrapped in a shortcode do not appear in the TOC

Read full topic

View Article

Browsing latest articles
Browse All 15 View Live




Latest Images