CINXE.COM

Use Page Params in Template finds nothing - support - HUGO

<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>Use Page Params in Template finds nothing - support - HUGO</title> <meta name="description" content="Hi, I’m trying to use Params from the frontmatter in the template to load js only under certain conditions, but it won’t work (using v0.121.1): The Pages Frontmatter looks like this: --- params: use_babylon: true u&amp;hellip;"> <meta name="generator" content="Discourse 3.4.0.beta3-dev - https://github.com/discourse/discourse version 5bf5d1335680f28a8eb65c488353be9585eed08e"> <link rel="icon" type="image/png" href="https://global.discourse-cdn.com/flex036/uploads/gohugo/optimized/2X/6/66a05218f64425b2fa59ede30c1b4b7dc1fdf5f9_2_32x32.ico"> <link rel="apple-touch-icon" type="image/png" href="https://global.discourse-cdn.com/flex036/uploads/gohugo/optimized/2X/c/c2d3414c64e766d814100b32063948e604298a70_2_180x180.png"> <meta name="theme-color" media="all" content="#0a1922"> <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, user-scalable=yes, viewport-fit=cover"> <link rel="canonical" href="https://discourse.gohugo.io/t/use-page-params-in-template-finds-nothing/52260" /> <link rel="search" type="application/opensearchdescription+xml" href="https://discourse.gohugo.io/opensearch.xml" title="HUGO Search"> <link href="https://yyz2.discourse-cdn.com/flex036/stylesheets/color_definitions_hugo-light_1_3_09733212c5bcbf3d2262e9135364889a94410a8e.css?__ws=discourse.gohugo.io" media="all" rel="stylesheet" class="light-scheme"/> <link href="https://yyz2.discourse-cdn.com/flex036/stylesheets/desktop_d02c2ac443d5119470bb87ccc1761df2dc8dc4ce.css?__ws=discourse.gohugo.io" media="all" rel="stylesheet" data-target="desktop" /> <link href="https://yyz2.discourse-cdn.com/flex036/stylesheets/checklist_d02c2ac443d5119470bb87ccc1761df2dc8dc4ce.css?__ws=discourse.gohugo.io" media="all" rel="stylesheet" data-target="checklist" /> <link href="https://yyz2.discourse-cdn.com/flex036/stylesheets/discourse-adplugin_d02c2ac443d5119470bb87ccc1761df2dc8dc4ce.css?__ws=discourse.gohugo.io" media="all" rel="stylesheet" data-target="discourse-adplugin" /> <link href="https://yyz2.discourse-cdn.com/flex036/stylesheets/discourse-ai_d02c2ac443d5119470bb87ccc1761df2dc8dc4ce.css?__ws=discourse.gohugo.io" media="all" rel="stylesheet" data-target="discourse-ai" /> <link href="https://yyz2.discourse-cdn.com/flex036/stylesheets/discourse-akismet_d02c2ac443d5119470bb87ccc1761df2dc8dc4ce.css?__ws=discourse.gohugo.io" media="all" rel="stylesheet" data-target="discourse-akismet" /> <link href="https://yyz2.discourse-cdn.com/flex036/stylesheets/discourse-cakeday_d02c2ac443d5119470bb87ccc1761df2dc8dc4ce.css?__ws=discourse.gohugo.io" media="all" rel="stylesheet" data-target="discourse-cakeday" /> <link href="https://yyz2.discourse-cdn.com/flex036/stylesheets/discourse-details_d02c2ac443d5119470bb87ccc1761df2dc8dc4ce.css?__ws=discourse.gohugo.io" media="all" rel="stylesheet" data-target="discourse-details" /> <link href="https://yyz2.discourse-cdn.com/flex036/stylesheets/discourse-lazy-videos_d02c2ac443d5119470bb87ccc1761df2dc8dc4ce.css?__ws=discourse.gohugo.io" media="all" rel="stylesheet" data-target="discourse-lazy-videos" /> <link href="https://yyz2.discourse-cdn.com/flex036/stylesheets/discourse-local-dates_d02c2ac443d5119470bb87ccc1761df2dc8dc4ce.css?__ws=discourse.gohugo.io" media="all" rel="stylesheet" data-target="discourse-local-dates" /> <link href="https://yyz2.discourse-cdn.com/flex036/stylesheets/discourse-narrative-bot_d02c2ac443d5119470bb87ccc1761df2dc8dc4ce.css?__ws=discourse.gohugo.io" media="all" rel="stylesheet" data-target="discourse-narrative-bot" /> <link href="https://yyz2.discourse-cdn.com/flex036/stylesheets/discourse-presence_d02c2ac443d5119470bb87ccc1761df2dc8dc4ce.css?__ws=discourse.gohugo.io" media="all" rel="stylesheet" data-target="discourse-presence" /> <link href="https://yyz2.discourse-cdn.com/flex036/stylesheets/discourse-solved_d02c2ac443d5119470bb87ccc1761df2dc8dc4ce.css?__ws=discourse.gohugo.io" media="all" rel="stylesheet" data-target="discourse-solved" /> <link href="https://yyz2.discourse-cdn.com/flex036/stylesheets/footnote_d02c2ac443d5119470bb87ccc1761df2dc8dc4ce.css?__ws=discourse.gohugo.io" media="all" rel="stylesheet" data-target="footnote" /> <link href="https://yyz2.discourse-cdn.com/flex036/stylesheets/hosted-site_d02c2ac443d5119470bb87ccc1761df2dc8dc4ce.css?__ws=discourse.gohugo.io" media="all" rel="stylesheet" data-target="hosted-site" /> <link href="https://yyz2.discourse-cdn.com/flex036/stylesheets/poll_d02c2ac443d5119470bb87ccc1761df2dc8dc4ce.css?__ws=discourse.gohugo.io" media="all" rel="stylesheet" data-target="poll" /> <link href="https://yyz2.discourse-cdn.com/flex036/stylesheets/spoiler-alert_d02c2ac443d5119470bb87ccc1761df2dc8dc4ce.css?__ws=discourse.gohugo.io" media="all" rel="stylesheet" data-target="spoiler-alert" /> <link href="https://yyz2.discourse-cdn.com/flex036/stylesheets/discourse-ai_desktop_d02c2ac443d5119470bb87ccc1761df2dc8dc4ce.css?__ws=discourse.gohugo.io" media="all" rel="stylesheet" data-target="discourse-ai_desktop" /> <link href="https://yyz2.discourse-cdn.com/flex036/stylesheets/poll_desktop_d02c2ac443d5119470bb87ccc1761df2dc8dc4ce.css?__ws=discourse.gohugo.io" media="all" rel="stylesheet" data-target="poll_desktop" /> <link href="https://yyz2.discourse-cdn.com/flex036/stylesheets/desktop_theme_2_554e2f649b5332218939d027878568e9fb5cb3e9.css?__ws=discourse.gohugo.io" media="all" rel="stylesheet" data-target="desktop_theme" data-theme-id="2" data-theme-name="custom header links"/> <link href="https://yyz2.discourse-cdn.com/flex036/stylesheets/desktop_theme_3_ba320989966c049743dec43ab8cc84324bf2a254.css?__ws=discourse.gohugo.io" media="all" rel="stylesheet" data-target="desktop_theme" data-theme-id="3" data-theme-name="hugo light"/> <meta id="data-ga-universal-analytics" data-tracking-code="UA-7131036-7" data-json="{&quot;cookieDomain&quot;:&quot;auto&quot;}" data-auto-link-domains=""> <script async src="https://www.googletagmanager.com/gtag/js?id=UA-7131036-7" nonce="e9qNemFKwPzMNb6y8735sjgC1"></script> <script defer src="https://global.discourse-cdn.com/flex036/assets/google-universal-analytics-v4-e154af4adb3c483a3aba7f9a7229b8881cdc5cf369290923d965a2ad30163ae8.gz.js" data-discourse-entrypoint="google-universal-analytics-v4" nonce="e9qNemFKwPzMNb6y8735sjgC1"></script> <link rel="alternate nofollow" type="application/rss+xml" title="RSS feed of &#39;Use Page Params in Template finds nothing&#39;" href="https://discourse.gohugo.io/t/use-page-params-in-template-finds-nothing/52260.rss" /> <meta property="og:site_name" content="HUGO" /> <meta property="og:type" content="website" /> <meta name="twitter:card" content="summary" /> <meta name="twitter:image" content="https://global.discourse-cdn.com/flex036/uploads/gohugo/original/2X/b/b91c8ab3a3c1c8679127cf049b46fa919e9e0e5c.png" /> <meta property="og:image" content="https://global.discourse-cdn.com/flex036/uploads/gohugo/original/2X/b/b91c8ab3a3c1c8679127cf049b46fa919e9e0e5c.png" /> <meta property="og:url" content="https://discourse.gohugo.io/t/use-page-params-in-template-finds-nothing/52260" /> <meta name="twitter:url" content="https://discourse.gohugo.io/t/use-page-params-in-template-finds-nothing/52260" /> <meta property="og:title" content="Use Page Params in Template finds nothing" /> <meta name="twitter:title" content="Use Page Params in Template finds nothing" /> <meta property="og:description" content="Hi, I’m trying to use Params from the frontmatter in the template to load js only under certain conditions, but it won’t work (using v0.121.1): The Pages Frontmatter looks like this: --- params: use_babylon: true use_lightbox: true use_dflip: false --- In my custom-script-footer.html Partial-Template i have tried the following so far, following these guides: Front matter | Hugo Param | Hugo {{ if .Params &quot;use_babylon&quot; }} USE_BABYLON - script code goes here {{ end }} That doesn’t f..." /> <meta name="twitter:description" content="Hi, I’m trying to use Params from the frontmatter in the template to load js only under certain conditions, but it won’t work (using v0.121.1): The Pages Frontmatter looks like this: --- params: use_babylon: true use_lightbox: true use_dflip: false --- In my custom-script-footer.html Partial-Template i have tried the following so far, following these guides: Front matter | Hugo Param | Hugo {{ if .Params &quot;use_babylon&quot; }} USE_BABYLON - script code goes here {{ end }} That doesn’t f..." /> <meta property="og:article:section" content="support" /> <meta property="og:article:section:color" content="652D90" /> <meta name="twitter:label1" value="Reading time" /> <meta name="twitter:data1" value="1 mins 🕑" /> <meta name="twitter:label2" value="Likes" /> <meta name="twitter:data2" value="1 ❤" /> <meta property="article:published_time" content="2024-11-03T15:49:53+00:00" /> <meta property="og:ignore_canonical" content="true" /> <script type="application/ld+json">{"@context":"http://schema.org","@type":"QAPage","name":"Use Page Params in Template finds nothing","mainEntity":{"@type":"Question","name":"Use Page Params in Template finds nothing","text":"Hi, I’m trying to use Params from the frontmatter in the template to load js only under certain conditions, but it won’t work (using v0.121.1):\n\nThe Pages Frontmatter looks like this:\n\n---\n\nparams:\n\nuse_babylon: true\n\nuse_lightbox: true\n\nuse_dflip: false\n\n---\n\nIn my custom-script-footer.html Partia&hellip;","upvoteCount":1,"answerCount":1,"datePublished":"2024-11-03T15:49:53.665Z","author":{"@type":"Person","name":"cnichte","url":"https://discourse.gohugo.io/u/cnichte"},"acceptedAnswer":{"@type":"Answer","text":"Hi folks i build dan example, but at last I updated my Hugo from 0.121.2 to 0.139.0.\n\nResult: The error is gone. Everything works as <a href=\"https://gohugo.io/methods/page/param/\" rel=\"noopener nofollow ugc\">it should<\/a> :slight_smile:","upvoteCount":0,"datePublished":"2024-11-21T23:06:56.316Z","url":"https://discourse.gohugo.io/t/use-page-params-in-template-finds-nothing/52260/9","author":{"@type":"Person","name":"cnichte","url":"https://discourse.gohugo.io/u/cnichte"}}}}</script> </head> <body class="crawler browser-update"> <script defer="" src="https://yyz2.discourse-cdn.com/flex036/theme-javascripts/417061e7eee24be4fb6a457975f0dce96a82d9e6.js?__ws=discourse.gohugo.io" data-theme-id="5" nonce="e9qNemFKwPzMNb6y8735sjgC1"></script> <header> <a href="/"> HUGO </a> </header> <div id="main-outlet" class="wrap" role="main"> <div id="topic-title"> <h1> <a href="/t/use-page-params-in-template-finds-nothing/52260">Use Page Params in Template finds nothing</a> </h1> <div class="topic-category" itemscope itemtype="http://schema.org/BreadcrumbList"> <span itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem"> <a href="/c/support/34" class="badge-wrapper bullet" itemprop="item"> <span class='badge-category-bg' style='background-color: #652D90'></span> <span class='badge-category clear-badge'> <span class='category-name' itemprop='name'>support</span> </span> </a> <meta itemprop="position" content="1" /> </span> </div> </div> <div itemscope itemtype='http://schema.org/DiscussionForumPosting'> <meta itemprop='headline' content='Use Page Params in Template finds nothing'> <link itemprop='url' href='https://discourse.gohugo.io/t/use-page-params-in-template-finds-nothing/52260'> <meta itemprop='datePublished' content='2024-11-03T15:49:53Z'> <meta itemprop='articleSection' content='support'> <meta itemprop='keywords' content=''> <div itemprop='publisher' itemscope itemtype="http://schema.org/Organization"> <meta itemprop='name' content='HUGO'> </div> <div id='post_1' class='topic-body crawler-post'> <div class='crawler-post-meta'> <span class="creator" itemprop="author" itemscope itemtype="http://schema.org/Person"> <a itemprop="url" href='https://discourse.gohugo.io/u/cnichte'><span itemprop='name'>cnichte</span></a> </span> <link itemprop="mainEntityOfPage" href="https://discourse.gohugo.io/t/use-page-params-in-template-finds-nothing/52260"> <span class="crawler-post-infos"> <time datetime='2024-11-03T15:49:53Z' class='post-time'> November 3, 2024, 3:49pm </time> <meta itemprop='dateModified' content='2024-11-03T16:01:48Z'> <span itemprop='position'>1</span> </span> </div> <div class='post' itemprop='text'> <p>Hi, I’m trying to use Params from the frontmatter in the template to load js only under certain conditions, but it won’t work (using v0.121.1):</p> <p>The Pages Frontmatter looks like this:</p> <pre><code class="lang-auto">--- params: use_babylon: true use_lightbox: true use_dflip: false --- </code></pre> <p>In my <code>custom-script-footer.html</code> Partial-Template i have tried the following so far, following these guides:</p> <ul> <li><a href="https://gohugo.io/content-management/front-matter/#parameters" class="inline-onebox" rel="noopener nofollow ugc">Front matter | Hugo</a></li> <li><a href="https://gohugo.io/methods/page/param/" class="inline-onebox" rel="noopener nofollow ugc">Param | Hugo</a></li> </ul> <pre><code class="lang-auto">{{ if .Params "use_babylon" }} USE_BABYLON - script code goes here {{ end }} </code></pre> <p>That doesn’t find anything and is always <code>false</code>, so i checked that <code>.</code></p> <pre><code class="lang-auto">{{ . }} </code></pre> <p>That prints out: <code>Page(/portfolio/plastik/portraitplastik-2/index.md)</code></p> <p>so im shure I get the page Object at this point.</p> <pre><code class="lang-auto">{{ .Params }} </code></pre> <p>that prints out</p> <pre><code class="lang-auto">map[date:2023-08-06 12:51:00 +0000 +0000 description: draft:false images:[] iscjklanguage:false lastmod:2024-11-03 00:03:14 +0100 CET lead: menu:map[portfolio:map[identifier:portraitplastik-2-d52ef981-7487-4430-9a39-e82ab55a01bd parent:]] params:map[use_babylon:true use_dflip:false use_lightbox:true] publishdate:2023-08-06 12:51:00 +0000 +0000 title:Portraitplastik 2 weight:620] </code></pre> <p>So there seem to be a <code>param</code> map with my parameters:</p> <pre><code class="lang-auto">{{ .Params.params }} </code></pre> <p>gives me:</p> <pre><code class="lang-auto">map[use_babylon:true use_dflip:false use_lightbox:true] </code></pre> <p>so, I tried that:</p> <pre><code class="lang-auto">{{ in .Params.params "use_babylon" }} --&gt; is always false and {{ if .Params.params "use_babylon" }} USE_BABYLON - script code goes here {{ end }} leads to an exception. </code></pre> <p>Neither leads to the goal.</p> <p>What am I missing here?</p> <p>Best regards - carsten</p> </div> <div itemprop="interactionStatistic" itemscope itemtype="http://schema.org/InteractionCounter"> <meta itemprop="interactionType" content="http://schema.org/LikeAction"/> <meta itemprop="userInteractionCount" content="1" /> <span class='post-likes'>1 Like</span> </div> </div> <div id='post_2' itemprop='comment' itemscope itemtype='http://schema.org/Comment' class='topic-body crawler-post'> <div class='crawler-post-meta'> <span class="creator" itemprop="author" itemscope itemtype="http://schema.org/Person"> <a itemprop="url" href='https://discourse.gohugo.io/u/irkode'><span itemprop='name'>irkode</span></a> </span> <span class="crawler-post-infos"> <time itemprop='datePublished' datetime='2024-11-03T16:05:30Z' class='post-time'> November 3, 2024, 4:05pm </time> <meta itemprop='dateModified' content='2024-11-03T17:18:40Z'> <span itemprop='position'>2</span> </span> </div> <div class='post' itemprop='text'> <p>See <a href="https://gohugo.io/methods/page/params/" class="inline-onebox">Params | Hugo</a></p> <p>Either use dot notation or the index function.</p> <p>Looks like you read the Page.Param docs - without s which has a different behaviour.</p> <p>Props for the good description. <img src="https://emoji.discourse-cdn.com/twitter/slight_smile.png?v=12" title=":slight_smile:" class="emoji" alt=":slight_smile:" loading="lazy" width="20" height="20"></p> </div> <div itemprop="interactionStatistic" itemscope itemtype="http://schema.org/InteractionCounter"> <meta itemprop="interactionType" content="http://schema.org/LikeAction"/> <meta itemprop="userInteractionCount" content="0" /> <span class='post-likes'></span> </div> </div> <div id='post_3' itemprop='comment' itemscope itemtype='http://schema.org/Comment' class='topic-body crawler-post'> <div class='crawler-post-meta'> <span class="creator" itemprop="author" itemscope itemtype="http://schema.org/Person"> <a itemprop="url" href='https://discourse.gohugo.io/u/cnichte'><span itemprop='name'>cnichte</span></a> </span> <span class="crawler-post-infos"> <time itemprop='datePublished' datetime='2024-11-03T17:55:17Z' class='post-time'> November 3, 2024, 5:55pm </time> <meta itemprop='dateModified' content='2024-11-03T17:55:17Z'> <span itemprop='position'>3</span> </span> </div> <div class='post' itemprop='text'> <p>Thanks for the reply <img src="https://emoji.discourse-cdn.com/twitter/slight_smile.png?v=12" title=":slight_smile:" class="emoji" alt=":slight_smile:" loading="lazy" width="20" height="20"></p> <h2><a name="p-170804-attempt-chaining-identifiers-1" class="anchor" href="#p-170804-attempt-chaining-identifiers-1"></a>Attempt chaining identifiers</h2> <pre><code class="lang-auto">{{ .Params.use_babylon -}} --&gt; gives nothing {{ .Params.params.use_babylon -}} --&gt; exception </code></pre> <p>Exception: execute of template failed at &lt;.Params.params.use_babylon&gt;: can’t evaluate field use_babylon in type <span class="chcklst-box fa fa-square-o fa-fw"></span>string</p> <h2><a name="p-170804-attempt-with-index-2" class="anchor" href="#p-170804-attempt-with-index-2"></a>Attempt with index</h2> <p>because <code>{{ .Params.params }}</code>gives me</p> <pre><code class="lang-auto">map[use_babylon:true use_dflip:false use_lightbox:true] </code></pre> <p>I tried also the index like so</p> <pre><code class="lang-auto">{{ index .Params.params "use_babylon" }} </code></pre> <p>Error: &lt;index .Params.params “use_babylon”&gt;: error calling index: index of type <span class="chcklst-box fa fa-square-o fa-fw"></span>string with args [use_babylon] failed: cannot index slice/array with type string</p> <pre><code class="lang-auto">{{ index .Params.params use_babylon }} </code></pre> <p>Error: function “use_babylon” not defined</p> <p>So, that seemed not to work either.</p> </div> <div itemprop="interactionStatistic" itemscope itemtype="http://schema.org/InteractionCounter"> <meta itemprop="interactionType" content="http://schema.org/LikeAction"/> <meta itemprop="userInteractionCount" content="0" /> <span class='post-likes'></span> </div> </div> <div id='post_4' itemprop='comment' itemscope itemtype='http://schema.org/Comment' class='topic-body crawler-post'> <div class='crawler-post-meta'> <span class="creator" itemprop="author" itemscope itemtype="http://schema.org/Person"> <a itemprop="url" href='https://discourse.gohugo.io/u/jmooring'><span itemprop='name'>jmooring</span></a> </span> <span class="crawler-post-infos"> <time itemprop='datePublished' datetime='2024-11-03T18:11:29Z' class='post-time'> November 3, 2024, 6:11pm </time> <meta itemprop='dateModified' content='2024-11-03T18:33:56Z'> <span itemprop='position'>4</span> </span> </div> <div class='post' itemprop='text'> <p>Are you passing any context when you call the footer partial?</p> <p><a href="https://gohugo.io/troubleshooting/faq/#why-is-my-partial-template-not-rendered-as-expected">https://gohugo.io/troubleshooting/faq/#why-is-my-partial-template-not-rendered-as-expected</a></p> <p>Are you call the <code>partial</code> function or the <code>partialCached</code> function?</p> </div> <div itemprop="interactionStatistic" itemscope itemtype="http://schema.org/InteractionCounter"> <meta itemprop="interactionType" content="http://schema.org/LikeAction"/> <meta itemprop="userInteractionCount" content="0" /> <span class='post-likes'></span> </div> </div> <div id='post_5' itemprop='comment' itemscope itemtype='http://schema.org/Comment' class='topic-body crawler-post'> <div class='crawler-post-meta'> <span class="creator" itemprop="author" itemscope itemtype="http://schema.org/Person"> <a itemprop="url" href='https://discourse.gohugo.io/u/cnichte'><span itemprop='name'>cnichte</span></a> </span> <span class="crawler-post-infos"> <time itemprop='datePublished' datetime='2024-11-03T18:55:55Z' class='post-time'> November 3, 2024, 6:55pm </time> <meta itemprop='dateModified' content='2024-11-03T18:55:55Z'> <span itemprop='position'>5</span> </span> </div> <div class='post' itemprop='text'> <p>in the Theme the <code>footer/script-footer-custom.html</code> is called from <code>script-footer.html</code> like so:</p> <pre><code class="lang-auto">{{ partial "footer/script-footer-custom.html" . -}} </code></pre> <p>I have not yet found out where <code>script-footer.html</code> itself is called.</p> </div> <div itemprop="interactionStatistic" itemscope itemtype="http://schema.org/InteractionCounter"> <meta itemprop="interactionType" content="http://schema.org/LikeAction"/> <meta itemprop="userInteractionCount" content="0" /> <span class='post-likes'></span> </div> </div> <div id='post_6' itemprop='comment' itemscope itemtype='http://schema.org/Comment' class='topic-body crawler-post'> <div class='crawler-post-meta'> <span class="creator" itemprop="author" itemscope itemtype="http://schema.org/Person"> <a itemprop="url" href='https://discourse.gohugo.io/u/jmooring'><span itemprop='name'>jmooring</span></a> </span> <span class="crawler-post-infos"> <time itemprop='datePublished' datetime='2024-11-03T19:04:05Z' class='post-time'> November 3, 2024, 7:04pm </time> <meta itemprop='dateModified' content='2024-11-03T19:04:05Z'> <span itemprop='position'>6</span> </span> </div> <div class='post' itemprop='text'> <p>I can’t figure out what you’re doing wrong based on the above. I suggest you share your repository, or create a test repository that demonstrates the problem you’re having.</p> </div> <div itemprop="interactionStatistic" itemscope itemtype="http://schema.org/InteractionCounter"> <meta itemprop="interactionType" content="http://schema.org/LikeAction"/> <meta itemprop="userInteractionCount" content="0" /> <span class='post-likes'></span> </div> </div> <div id='post_7' itemprop='comment' itemscope itemtype='http://schema.org/Comment' class='topic-body crawler-post'> <div class='crawler-post-meta'> <span class="creator" itemprop="author" itemscope itemtype="http://schema.org/Person"> <a itemprop="url" href='https://discourse.gohugo.io/u/cnichte'><span itemprop='name'>cnichte</span></a> </span> <span class="crawler-post-infos"> <time itemprop='datePublished' datetime='2024-11-03T19:07:02Z' class='post-time'> November 3, 2024, 7:07pm </time> <meta itemprop='dateModified' content='2024-11-03T19:07:02Z'> <span itemprop='position'>7</span> </span> </div> <div class='post' itemprop='text'> <p>okay, thank you. i prepare that in the next days.</p> </div> <div itemprop="interactionStatistic" itemscope itemtype="http://schema.org/InteractionCounter"> <meta itemprop="interactionType" content="http://schema.org/LikeAction"/> <meta itemprop="userInteractionCount" content="0" /> <span class='post-likes'></span> </div> </div> <div id='post_8' itemprop='comment' itemscope itemtype='http://schema.org/Comment' class='topic-body crawler-post'> <div class='crawler-post-meta'> <span class="creator" itemprop="author" itemscope itemtype="http://schema.org/Person"> <a itemprop="url" href='https://discourse.gohugo.io/u/irkode'><span itemprop='name'>irkode</span></a> </span> <span class="crawler-post-infos"> <time itemprop='datePublished' datetime='2024-11-03T20:44:09Z' class='post-time'> November 3, 2024, 8:44pm </time> <meta itemprop='dateModified' content='2024-11-03T22:35:21Z'> <span itemprop='position'>8</span> </span> </div> <div class='post' itemprop='text'> <p>Update… ok reread the answers above…looke like you already tried…sry</p> <p>So … rest of the post is obsolete…</p> <p>Sry…deleted…</p> <p>I go with <a class="mention" href="/u/jmooring">@jmooring</a> and we would need the complete context.</p> </div> <div itemprop="interactionStatistic" itemscope itemtype="http://schema.org/InteractionCounter"> <meta itemprop="interactionType" content="http://schema.org/LikeAction"/> <meta itemprop="userInteractionCount" content="0" /> <span class='post-likes'></span> </div> </div> <div id='post_9' itemprop='comment' itemscope itemtype='http://schema.org/Comment' class='topic-body crawler-post'> <div class='crawler-post-meta'> <span class="creator" itemprop="author" itemscope itemtype="http://schema.org/Person"> <a itemprop="url" href='https://discourse.gohugo.io/u/cnichte'><span itemprop='name'>cnichte</span></a> </span> <span class="crawler-post-infos"> <time itemprop='datePublished' datetime='2024-11-21T23:06:56Z' class='post-time'> November 21, 2024, 11:06pm </time> <meta itemprop='dateModified' content='2024-11-21T23:06:56Z'> <span itemprop='position'>9</span> </span> </div> <div class='post' itemprop='text'> <p>Hi folks i build dan example, but at last I updated my Hugo from <code>0.121.2</code> to <code>0.139.0</code>.</p> <p>Result: The error is gone. Everything works as <a href="https://gohugo.io/methods/page/param/" rel="noopener nofollow ugc">it should</a> <img src="https://emoji.discourse-cdn.com/twitter/slight_smile.png?v=12" title=":slight_smile:" class="emoji" alt=":slight_smile:" loading="lazy" width="20" height="20"></p> </div> <div itemprop="interactionStatistic" itemscope itemtype="http://schema.org/InteractionCounter"> <meta itemprop="interactionType" content="http://schema.org/LikeAction"/> <meta itemprop="userInteractionCount" content="0" /> <span class='post-likes'></span> </div> </div> </div> <div id="related-topics" class="more-topics__list " role="complementary" aria-labelledby="related-topics-title"> <h3 id="related-topics-title" class="more-topics__list-title"> Related topics </h3> <div class="topic-list-container" itemscope itemtype='http://schema.org/ItemList'> <meta itemprop='itemListOrder' content='http://schema.org/ItemListOrderDescending'> <table class='topic-list'> <thead> <tr> <th>Topic</th> <th></th> <th class="replies">Replies</th> <th class="views">Views</th> <th>Activity</th> </tr> </thead> <tbody> <tr class="topic-list-item" id="topic-list-item-40165"> <td class="main-link" itemprop='itemListElement' itemscope itemtype='http://schema.org/ListItem'> <meta itemprop='position' content='1'> <span class="link-top-line"> <a itemprop='url' href='https://discourse.gohugo.io/t/access-page-params-in-template/40165' class='title raw-link raw-topic-link'>Access Page params in template</a> </span> <div class="link-bottom-line"> <a href='/c/support/34' class='badge-wrapper bullet'> <span class='badge-category-bg' style='background-color: #652D90'></span> <span class='badge-category clear-badge'> <span class='category-name'>support</span> </span> </a> <div class="discourse-tags"> </div> </div> </td> <td class="replies"> <span class='posts' title='posts'>2</span> </td> <td class="views"> <span class='views' title='views'>869</span> </td> <td> August 24, 2022 </td> </tr> <tr class="topic-list-item" id="topic-list-item-4624"> <td class="main-link" itemprop='itemListElement' itemscope itemtype='http://schema.org/ListItem'> <meta itemprop='position' content='2'> <span class="link-top-line"> <a itemprop='url' href='https://discourse.gohugo.io/t/newbie-question-cant-access-page-params-from-homepage/4624' class='title raw-link raw-topic-link'>Newbie question: can&#39;t access Page Params from homepage</a> </span> <div class="link-bottom-line"> <a href='/c/support/34' class='badge-wrapper bullet'> <span class='badge-category-bg' style='background-color: #652D90'></span> <span class='badge-category clear-badge'> <span class='category-name'>support</span> </span> </a> <div class="discourse-tags"> </div> </div> </td> <td class="replies"> <span class='posts' title='posts'>1</span> </td> <td class="views"> <span class='views' title='views'>654</span> </td> <td> November 21, 2016 </td> </tr> <tr class="topic-list-item" id="topic-list-item-2378"> <td class="main-link" itemprop='itemListElement' itemscope itemtype='http://schema.org/ListItem'> <meta itemprop='position' content='3'> <span class="link-top-line"> <a itemprop='url' href='https://discourse.gohugo.io/t/having-trouble-accessing-front-matter-in-template/2378' class='title raw-link raw-topic-link'>Having trouble accessing front matter in template</a> </span> <div class="link-bottom-line"> <a href='/c/support/34' class='badge-wrapper bullet'> <span class='badge-category-bg' style='background-color: #652D90'></span> <span class='badge-category clear-badge'> <span class='category-name'>support</span> </span> </a> <div class="discourse-tags"> </div> </div> </td> <td class="replies"> <span class='posts' title='posts'>4</span> </td> <td class="views"> <span class='views' title='views'>1894</span> </td> <td> January 4, 2016 </td> </tr> <tr class="topic-list-item" id="topic-list-item-10888"> <td class="main-link" itemprop='itemListElement' itemscope itemtype='http://schema.org/ListItem'> <meta itemprop='position' content='4'> <span class="link-top-line"> <a itemprop='url' href='https://discourse.gohugo.io/t/best-way-to-dynamically-output-selected-page-variable-not-custom-page-params/10888' class='title raw-link raw-topic-link'>Best way to dynamically output selected Page Variable (Not Custom Page Params)</a> </span> <div class="link-bottom-line"> <a href='/c/support/34' class='badge-wrapper bullet'> <span class='badge-category-bg' style='background-color: #652D90'></span> <span class='badge-category clear-badge'> <span class='category-name'>support</span> </span> </a> <div class="discourse-tags"> </div> </div> </td> <td class="replies"> <span class='posts' title='posts'>3</span> </td> <td class="views"> <span class='views' title='views'>656</span> </td> <td> March 6, 2018 </td> </tr> <tr class="topic-list-item" id="topic-list-item-29146"> <td class="main-link" itemprop='itemListElement' itemscope itemtype='http://schema.org/ListItem'> <meta itemprop='position' content='5'> <span class="link-top-line"> <a itemprop='url' href='https://discourse.gohugo.io/t/reference-page-params-in-template-from-a-variable-name/29146' class='title raw-link raw-topic-link'>Reference page params in template from a variable name</a> </span> <div class="link-bottom-line"> <a href='/c/support/34' class='badge-wrapper bullet'> <span class='badge-category-bg' style='background-color: #652D90'></span> <span class='badge-category clear-badge'> <span class='category-name'>support</span> </span> </a> <div class="discourse-tags"> </div> </div> </td> <td class="replies"> <span class='posts' title='posts'>2</span> </td> <td class="views"> <span class='views' title='views'>378</span> </td> <td> November 2, 2020 </td> </tr> </tbody> </table> </div> </div> </div> <footer class="container wrap"> <nav class='crawler-nav'> <ul> <li itemscope itemtype='http://schema.org/SiteNavigationElement'> <span itemprop='name'> <a href='/' itemprop="url">Home </a> </span> </li> <li itemscope itemtype='http://schema.org/SiteNavigationElement'> <span itemprop='name'> <a href='/categories' itemprop="url">Categories </a> </span> </li> <li itemscope itemtype='http://schema.org/SiteNavigationElement'> <span itemprop='name'> <a href='/guidelines' itemprop="url">Guidelines </a> </span> </li> <li itemscope itemtype='http://schema.org/SiteNavigationElement'> <span itemprop='name'> <a href='/tos' itemprop="url">Terms of Service </a> </span> </li> <li itemscope itemtype='http://schema.org/SiteNavigationElement'> <span itemprop='name'> <a href='/privacy' itemprop="url">Privacy Policy </a> </span> </li> </ul> </nav> <p class='powered-by-link'>Powered by <a href="https://www.discourse.org">Discourse</a>, best viewed with JavaScript enabled</p> </footer> <div class="buorg"><div>Unfortunately, <a href="https://www.discourse.org/faq/#browser">your browser is unsupported</a>. Please <a href="https://browsehappy.com">switch to a supported browser</a> to view rich content, log in and reply.</div></div> </body> </html>

Pages: 1 2 3 4 5 6 7 8 9 10