Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

User guide Print page: move tabs to separate pane to eliminate warning #1642

Merged
merged 1 commit into from
Aug 3, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 8 additions & 5 deletions userguide/content/en/docs/adding-content/print.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,30 +46,33 @@ The site should then show a "Print entire section" link in the right hand naviga

To disable showing the the table of contents in the printable view, set the `disable_toc` param to `true`, either in the page front matter, or in `hugo.toml`/`hugo.yaml`/`hugo.json`:

{{< tabpane >}}
{{< tabpane langEqualsHeader=true >}}
{{< tab header="Front matter:" disabled=true />}}
{{< tab header="toml" lang="toml" >}}
{{< tab toml >}}
+++
disable_toc = true
+++
{{< /tab >}}
{{< tab header="yaml" lang="yaml" >}}
{{< tab yaml >}}
---
disable_toc: true
---
{{< /tab >}}
{{< tab header="json" lang="json" >}}
{{< tab json >}}
{
…,
"disable_toc": true,
}
{{< /tab >}}
{{< tab header="or config file:" disabled=true />}}
{{< /tabpane >}}

{{< tabpane >}}
{{< tab header="Config file:" disabled=true />}}
{{< tab header="hugo.toml" lang="toml" >}}
[params.print]
disable_toc = true
Expand Down