<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Navigation and links on pydata-hugo-theme</title><link>https://saltstack.github.io/pydata-hugo-theme/navigation/</link><description>Recent content in Navigation and links on pydata-hugo-theme</description><generator>Hugo</generator><language>en-US</language><atom:link href="https://saltstack.github.io/pydata-hugo-theme/navigation/index.xml" rel="self" type="application/rss+xml"/><item><title>Header links</title><link>https://saltstack.github.io/pydata-hugo-theme/navigation/header-links/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://saltstack.github.io/pydata-hugo-theme/navigation/header-links/</guid><description>&lt;h2 id="external-link-behavior"&gt;External link behavior&lt;/h2&gt;&#10;&lt;p&gt;Every content-authored Markdown link and most theme-rendered links pass through &lt;code&gt;link-target-attrs.html&lt;/code&gt;, which decides whether a link opens in a new tab based on &lt;code&gt;external_links&lt;/code&gt;:&lt;/p&gt;&#10;&lt;div class="highlight-wrapper"&gt;&#10; &lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-toml" data-lang="toml"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;[&lt;span style="color:#a6e22e"&gt;params&lt;/span&gt;.&lt;span style="color:#a6e22e"&gt;external_links&lt;/span&gt;]&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#a6e22e"&gt;new_tab&lt;/span&gt; = &lt;span style="color:#66d9ef"&gt;true&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#a6e22e"&gt;exceptions&lt;/span&gt; = [&lt;span style="color:#e6db74"&gt;&amp;#39;https://docs.example.com/&amp;#39;&lt;/span&gt;]&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&#10; &lt;button class="copybtn" type="button" aria-label="Copy to clipboard"&gt;&#10; &lt;i class="fa-regular fa-copy copybtn-icon-default" aria-hidden="true"&gt;&lt;/i&gt;&#10; &lt;i class="fa-solid fa-check copybtn-icon-copied" aria-hidden="true"&gt;&lt;/i&gt;&#10; &lt;/button&gt;&#10;&lt;/div&gt;&#10;&lt;p&gt;A URL is treated as internal (no new tab) if it&amp;rsquo;s not &lt;code&gt;http(s)&lt;/code&gt;, points back at &lt;code&gt;site.BaseURL&lt;/code&gt;, or matches a prefix in &lt;code&gt;exceptions&lt;/code&gt;. This is applied automatically to every Markdown-authored link via a &lt;a href="https://saltstack.github.io/pydata-hugo-theme/hugo-only/render-hooks/"&gt;render hook&lt;/a&gt;&#10; — you don&amp;rsquo;t need to add &lt;code&gt;target=&amp;quot;_blank&amp;quot;&lt;/code&gt; by hand anywhere in your content.&lt;/p&gt;</description></item><item><title>Page table of contents</title><link>https://saltstack.github.io/pydata-hugo-theme/navigation/page-toc/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://saltstack.github.io/pydata-hugo-theme/navigation/page-toc/</guid><description>&lt;p&gt;The right sidebar renders &lt;code&gt;secondary_sidebar_items&lt;/code&gt; (default &lt;code&gt;['page-toc']&lt;/code&gt;, which renders &lt;code&gt;.TableOfContents&lt;/code&gt; from your Markdown headings via &lt;code&gt;page-toc.html&lt;/code&gt;).&lt;/p&gt;&#10;&lt;div class="highlight-wrapper"&gt;&#10; &lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-toml" data-lang="toml"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;[&lt;span style="color:#a6e22e"&gt;params&lt;/span&gt;]&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#a6e22e"&gt;secondary_sidebar_items&lt;/span&gt; = [&lt;span style="color:#e6db74"&gt;&amp;#39;page-toc&amp;#39;&lt;/span&gt;]&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&#10; &lt;button class="copybtn" type="button" aria-label="Copy to clipboard"&gt;&#10; &lt;i class="fa-regular fa-copy copybtn-icon-default" aria-hidden="true"&gt;&lt;/i&gt;&#10; &lt;i class="fa-solid fa-check copybtn-icon-copied" aria-hidden="true"&gt;&lt;/i&gt;&#10; &lt;/button&gt;&#10;&lt;/div&gt;&#10;&lt;h2 id="hiding-it-on-a-single-page"&gt;Hiding it on a single page&lt;/h2&gt;&#10;&lt;p&gt;Set &lt;code&gt;show_toc: false&lt;/code&gt; in a page&amp;rsquo;s frontmatter to hide the entire right sidebar for that page (it isn&amp;rsquo;t just the TOC — the whole &lt;code&gt;secondary_sidebar_items&lt;/code&gt; slot is skipped):&lt;/p&gt;&#10;&lt;div class="highlight-wrapper"&gt;&#10; &lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-yaml" data-lang="yaml"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;---&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#f92672"&gt;title&lt;/span&gt;: &lt;span style="color:#ae81ff"&gt;A wide page with no right sidebar&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#f92672"&gt;show_toc&lt;/span&gt;: &lt;span style="color:#66d9ef"&gt;false&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;---&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&#10; &lt;button class="copybtn" type="button" aria-label="Copy to clipboard"&gt;&#10; &lt;i class="fa-regular fa-copy copybtn-icon-default" aria-hidden="true"&gt;&lt;/i&gt;&#10; &lt;i class="fa-solid fa-check copybtn-icon-copied" aria-hidden="true"&gt;&lt;/i&gt;&#10; &lt;/button&gt;&#10;&lt;/div&gt;&#10;&lt;p&gt;This is a Hugo-idiomatic per-page override — see &lt;a href="https://saltstack.github.io/pydata-hugo-theme/hugo-only/page-overrides/"&gt;Per-page overrides&lt;/a&gt;&#10; for how the fallback chain (page → site → hardcoded default) works generally.&lt;/p&gt;</description></item><item><title>Sidebar navigation</title><link>https://saltstack.github.io/pydata-hugo-theme/navigation/navigation/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://saltstack.github.io/pydata-hugo-theme/navigation/navigation/</guid><description>&lt;p&gt;The left sidebar nav tree is built from &lt;code&gt;site.Menus.sidebar&lt;/code&gt; — falling back to &lt;code&gt;site.Menus.main&lt;/code&gt; if no &lt;code&gt;sidebar&lt;/code&gt; menu is defined — rendered by &lt;code&gt;sidebar-nav.html&lt;/code&gt;. This site&amp;rsquo;s own sidebar (see the left of this page) is built exactly this way; its &lt;code&gt;hugo.toml&lt;/code&gt; defines &lt;code&gt;[[menus.sidebar]]&lt;/code&gt; entries with &lt;code&gt;identifier&lt;/code&gt;/&lt;code&gt;parent&lt;/code&gt;/&lt;code&gt;weight&lt;/code&gt; to create the grouped, collapsible tree you&amp;rsquo;re looking at.&lt;/p&gt;&#10;&lt;p&gt;A top-level entry with an empty &lt;code&gt;url = ''&lt;/code&gt; and an &lt;code&gt;identifier&lt;/code&gt; renders as an expandable group header; entries that set &lt;code&gt;parent = &amp;quot;&amp;lt;identifier&amp;gt;&amp;quot;&lt;/code&gt; nest underneath it.&lt;/p&gt;</description></item></channel></rss>