<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-us"><generator uri="https://gohugo.io/" version="0.101.0">Hugo</generator><title type="html">Hugo Shortcodes on A Scripter's Notes</title><subtitle type="html">Emacs, scripting and anything text oriented.</subtitle><link href="https://scripter.co/series/hugo-shortcodes/" rel="alternate" type="text/html" title="HTML"/><link href="https://scripter.co/series/hugo-shortcodes/index.xml" rel="alternate" type="application/rss+xml" title="RSS"/><link href="https://scripter.co/series/hugo-shortcodes/atom.xml" rel="self" type="application/atom+xml" title="Atom"/><link href="https://scripter.co/series/hugo-shortcodes/jf2feed.json" rel="alternate" type="application/jf2feed+json" title="jf2feed"/><updated>2024-01-08T07:42:20-05:00</updated><author><name>Kaushal Modi</name><email>kaushal.modi@gmail.com</email></author><id>https://scripter.co/series/hugo-shortcodes/</id><entry><title type="html">titleref: Referencing Hugo posts by their titles</title><link href="https://scripter.co/titleref-referencing-hugo-posts-by-their-titles/?utm_source=atom_feed" rel="alternate" type="text/html"/><link href="https://scripter.co/hugo-modules-getting-started/?utm_source=atom_feed" rel="related" type="text/html" title="Hugo Modules: Getting Started"/><link href="https://scripter.co/auto-count-100daystooffload-posts/?utm_source=atom_feed" rel="related" type="text/html" title="Auto-count #100DaysToOffload posts"/><link href="https://scripter.co/grep-po/?utm_source=atom_feed" rel="related" type="text/html" title="grep -Po"/><link href="https://scripter.co/generics-not-exactly-in-systemverilog/?utm_source=atom_feed" rel="related" type="text/html" title="Generics (not exactly) in SystemVerilog"/><link href="https://scripter.co/sidenotes-using-ox-hugo/?utm_source=atom_feed" rel="related" type="text/html" title="Sidenotes using ox-hugo"/><id>https://scripter.co/titleref-referencing-hugo-posts-by-their-titles/</id><author><name>Kaushal Modi</name></author><published>2022-03-01T00:20:00-05:00</published><updated>2022-03-01T00:20:00-05:00</updated><content type="html"><![CDATA[<blockquote>A custom Hugo shortcode to create cross-references to other posts
using their title strings.</blockquote><div class="ox-hugo-toc toc">
<div class="heading">Table of Contents</div>
<ul>
<li><a href="#relref-shortcode"><code>relref</code> shortcode</a></li>
<li><a href="#relref-org-macro"><code>relref</code> Org macro</a></li>
<li><a href="#titleref-shortcode"><code>titleref</code> shortcode</a></li>
<li><a href="#titleref-org-macro"><code>titleref</code> Org macro</a></li>
<li><a href="#summary">Summary</a></li>
</ul>
</div>
<!--endtoc-->

<h2 id="relref-shortcode"><code>relref</code> shortcode&nbsp;<a class="headline-hash no-text-decoration" href="#relref-shortcode">#</a></h2>


<p>Hugo has a built-in shortcode <a href="https://gohugo.io/content-management/cross-references/"><code>relref</code></a> that gets relative links
<span class="sidenote-number"><small class="sidenote">
There&rsquo;s also a <code>ref</code> shortcode which creates absolute links. <code>ref</code> can
be used wherever <code>relref</code> is used.
</small></span>
to other posts by using their <code>url</code>. In <a href="https://gohugo.io/content-management/organization#path-breakdown-in-hugo">Hugo lingo</a>, a post&rsquo;s <code>url</code>
consists of the post&rsquo;s <code>section</code> and <code>slug</code>
<span class="sidenote-number"><small class="sidenote">
This post&rsquo;s <code>section</code> is <code>posts</code> and <code>slug</code> is
<code>titleref-referencing-hugo-posts-by-their-titles</code>. So the <code>url</code> is
<code>posts/titleref-referencing-hugo-posts-by-their-titles</code>.
</small></span>
.</p>
<p>This page&rsquo;s relative link can be fetched by using <code class="code-inline language-md">{{<span class="p">&lt;</span> <span class="nt">relref</span> <span class="err">&#34;</span><span class="na">posts</span><span class="err">/</span><span class="na">titleref-referencing-hugo-posts-by-their-titles</span><span class="err">&#34;</span> <span class="p">&gt;</span>}}</code>. If a
post&rsquo;s slug is unique across all the posts, its <code>section</code> part can be
skipped. So the same <code>relref</code> can be written as <code class="code-inline language-md">{{<span class="p">&lt;</span> <span class="nt">relref</span> <span class="err">&#34;</span><span class="na">titleref-referencing-hugo-posts-by-their-titles</span><span class="err">&#34;</span> <span class="p">&gt;</span>}}</code> and that will
still return
<a href="/titleref-referencing-hugo-posts-by-their-titles/"> this </a>
same link.</p>
<dl>
<dt>Problem Statement</dt>
<dd>The issue with <code>relref</code> is that it returns only
the link &mdash; the description still needs to be written manually. I
typically use a post&rsquo;s title as description when I link to it. So
the full link with description will look like this when writing in
Org mode
<span class="sidenote-number"><small class="sidenote">
In Markdown, the same link will look like this: <code class="code-inline language-md">[<span class="nt">titleref: Referencing Hugo posts by their titles</span>](<span class="na">{{&lt; relref &quot;titleref-referencing-hugo-posts-by-their-titles&quot; &gt;}}</span>)</code>.
</small></span>
for exporting using <a href="https://ox-hugo.scripter.co">ox-hugo</a>:
<code class="code-inline language-org">[[<span class="na">@@hugo:{{&lt; relref &#34;titleref-referencing-hugo-posts-by-their-titles&#34; &gt;}}@@</span>][<span class="nt">titleref: Referencing Hugo posts by their titles</span>]]</code>.</dd>
</dl>
<p>You can see how impractical and verbose that is!</p>
<p><em>If you write your posts in Markdown, you can jump to the <a href="#titleref-shortcode"><code>titleref</code>
shortcode</a> section.</em></p>

<h2 id="relref-org-macro"><code>relref</code> Org macro&nbsp;<a class="headline-hash no-text-decoration" href="#relref-org-macro">#</a></h2>


<p>An Org macro can help a little over here.</p>
<p><a id="code-snippet--relref-org-macro"></a></p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-org" data-lang="org"><span class="line"><span class="cl"><span class="cs">#+macro</span><span class="c">: relref @@hugo:[@@ $1 @@hugo:]({{&lt; relref &#34;$2&#34; &gt;}})@@</span>
</span></span></code></pre></div><div class="src-block-caption">
  <span class="src-block-number"><a href="#code-snippet--relref-org-macro">Code Snippet 1</a>:</span>
  <code>relref</code> Org macro
</div>
<p><span class="org-target" id="org-target--relref-macro-example"></span> With this macro, that same <code>relref</code> link can
be rewritten as <code class="code-inline language-org"><span class="nb">{{{relref(titleref: Referencing Hugo posts by their titles,titleref-referencing-hugo-posts-by-their-titles)}}}</span></code>.</p>
<p>It&rsquo;s a bit less verbose compared to using the shortcode directly, but
I still wasn&rsquo;t happy with the <a href="https://en.wikipedia.org/wiki/Redundancy_(information_theory)">redundancy</a>.</p>

<h2 id="titleref-shortcode"><code>titleref</code> shortcode&nbsp;<a class="headline-hash no-text-decoration" href="#titleref-shortcode">#</a></h2>


<div class="note">
<p>In that <em>relref</em> link, we are providing both, the post slug and the
post title.
<mark>Both are uniquely associated with each-other</mark> , and Hugo can internally derive one from the other. So there&rsquo;s no
need for us to specify both!</p>
</div>
<p>And so I thought that it should be pretty simple to specify just the
title of post that I want to link, and let Hugo derive the post&rsquo;s
permalink &mdash; and it was simple, by using this custom
<span class="sidenote-number"><small class="sidenote">
A user can add custom shortcodes or override the default Hugo
shortcodes by putting them in the <code>layouts/shortcodes/</code> directory of
the site or theme repo.
</small></span>
shortcode!</p>
<p>An astute Org mode user might think that this idea looks like the
<code class="code-inline language-org">[[<span class="na">*Heading</span>]]</code> syntax <a href="https://orgmode.org/manual/Internal-Links.html">supported by Org</a>, and they
would be right! This <code>titleref</code> idea is inspired by that Org mode
feature.</p>
<p><a id="code-snippet--titleref-sc"></a></p>
<div class="highlight"><div class="chroma">
<table class="lntable"><tr><td class="lntd">
<pre tabindex="0" class="chroma"><code><span class="lnt" id="org-coderef--4922be-1"><a style="outline: none; text-decoration:none; color:inherit" href="#org-coderef--4922be-1"> 1</a>
</span><span class="lnt" id="org-coderef--4922be-2"><a style="outline: none; text-decoration:none; color:inherit" href="#org-coderef--4922be-2"> 2</a>
</span><span class="lnt" id="org-coderef--4922be-3"><a style="outline: none; text-decoration:none; color:inherit" href="#org-coderef--4922be-3"> 3</a>
</span><span class="lnt" id="org-coderef--4922be-4"><a style="outline: none; text-decoration:none; color:inherit" href="#org-coderef--4922be-4"> 4</a>
</span><span class="hl"><span class="lnt" id="org-coderef--4922be-5"><a style="outline: none; text-decoration:none; color:inherit" href="#org-coderef--4922be-5"> 5</a>
</span></span><span class="lnt" id="org-coderef--4922be-6"><a style="outline: none; text-decoration:none; color:inherit" href="#org-coderef--4922be-6"> 6</a>
</span><span class="lnt" id="org-coderef--4922be-7"><a style="outline: none; text-decoration:none; color:inherit" href="#org-coderef--4922be-7"> 7</a>
</span><span class="lnt" id="org-coderef--4922be-8"><a style="outline: none; text-decoration:none; color:inherit" href="#org-coderef--4922be-8"> 8</a>
</span><span class="lnt" id="org-coderef--4922be-9"><a style="outline: none; text-decoration:none; color:inherit" href="#org-coderef--4922be-9"> 9</a>
</span><span class="lnt" id="org-coderef--4922be-10"><a style="outline: none; text-decoration:none; color:inherit" href="#org-coderef--4922be-10">10</a>
</span><span class="lnt" id="org-coderef--4922be-11"><a style="outline: none; text-decoration:none; color:inherit" href="#org-coderef--4922be-11">11</a>
</span><span class="hl"><span class="lnt" id="org-coderef--4922be-12"><a style="outline: none; text-decoration:none; color:inherit" href="#org-coderef--4922be-12">12</a>
</span></span><span class="hl"><span class="lnt" id="org-coderef--4922be-13"><a style="outline: none; text-decoration:none; color:inherit" href="#org-coderef--4922be-13">13</a>
</span></span><span class="lnt" id="org-coderef--4922be-14"><a style="outline: none; text-decoration:none; color:inherit" href="#org-coderef--4922be-14">14</a>
</span><span class="lnt" id="org-coderef--4922be-15"><a style="outline: none; text-decoration:none; color:inherit" href="#org-coderef--4922be-15">15</a>
</span><span class="lnt" id="org-coderef--4922be-16"><a style="outline: none; text-decoration:none; color:inherit" href="#org-coderef--4922be-16">16</a>
</span></code></pre></td>
<td class="lntd">
<pre tabindex="0" class="chroma"><code class="language-go-html-template" data-lang="go-html-template"><span class="line"><span class="cl"><span class="cp">{{-</span><span class="w"> </span><span class="nx">$title_anchor</span><span class="w"> </span><span class="o">:=</span><span class="w"> </span><span class="o">(</span><span class="na">.Get</span><span class="w"> </span><span class="nx">0</span><span class="o">)</span><span class="w"> </span><span class="cp">-}}</span>
</span></span><span class="line"><span class="cl"><span class="cp">{{-</span><span class="w"> </span><span class="nx">$title</span><span class="w"> </span><span class="o">:=</span><span class="w"> </span><span class="nx">trim</span><span class="w"> </span><span class="o">(</span><span class="k">index</span><span class="w"> </span><span class="o">(</span><span class="nx">split</span><span class="w"> </span><span class="nx">$title_anchor</span><span class="w"> </span><span class="s">&#34;#&#34;</span><span class="o">)</span><span class="w"> </span><span class="nx">0</span><span class="o">)</span><span class="w"> </span><span class="s">&#34; &#34;</span><span class="w"> </span><span class="cp">-}}</span>
</span></span><span class="line"><span class="cl"><span class="cp">{{-</span><span class="w"> </span><span class="nx">$anchor</span><span class="w"> </span><span class="o">:=</span><span class="w"> </span><span class="nx">trim</span><span class="w"> </span><span class="o">(</span><span class="k">index</span><span class="w"> </span><span class="o">(</span><span class="nx">split</span><span class="w"> </span><span class="nx">$title_anchor</span><span class="w"> </span><span class="s">&#34;#&#34;</span><span class="o">)</span><span class="w"> </span><span class="nx">1</span><span class="o">)</span><span class="w"> </span><span class="s">&#34; &#34;</span><span class="w"> </span><span class="cp">-}}</span>
</span></span><span class="line"><span class="cl"><span class="cp">{{-</span><span class="w"> </span><span class="nx">$desc</span><span class="w"> </span><span class="o">:=</span><span class="w"> </span><span class="o">(</span><span class="na">.Get</span><span class="w"> </span><span class="nx">1</span><span class="o">)</span><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="nx">markdownify</span><span class="w"> </span><span class="cp">-}}</span>
</span></span><span class="line hl"><span class="cl"><span class="cp">{{-</span><span class="w"> </span><span class="nx">$filtered</span><span class="w"> </span><span class="o">:=</span><span class="w"> </span><span class="nx">where</span><span class="w"> </span><span class="nx">site</span><span class="na">.RegularPages</span><span class="w"> </span><span class="s">&#34;Title&#34;</span><span class="w"> </span><span class="nx">$title</span><span class="w"> </span><span class="cp">-}}</span>
</span></span><span class="line"><span class="cl"><span class="cp">{{-</span><span class="w"> </span><span class="nx">$first_match</span><span class="w"> </span><span class="o">:=</span><span class="w"> </span><span class="k">index</span><span class="w"> </span><span class="nx">$filtered</span><span class="w"> </span><span class="nx">0</span><span class="w"> </span><span class="cp">-}}</span>
</span></span><span class="line"><span class="cl"><span class="cp">{{-</span><span class="w"> </span><span class="k">with</span><span class="w"> </span><span class="nx">$first_match</span><span class="w"> </span><span class="cp">-}}</span>
</span></span><span class="line"><span class="cl">    <span class="cp">{{-</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="nx">$anchor</span><span class="w"> </span><span class="cp">-}}</span>
</span></span><span class="line"><span class="cl">        <span class="cp">{{-</span><span class="w"> </span><span class="nx">$anchor</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="k">printf</span><span class="w"> </span><span class="s">`#%s`</span><span class="w"> </span><span class="nx">$anchor</span><span class="w"> </span><span class="cp">-}}</span>
</span></span><span class="line"><span class="cl">    <span class="cp">{{-</span><span class="w"> </span><span class="k">end</span><span class="w"> </span><span class="cp">-}}</span>
</span></span><span class="line"><span class="cl">    <span class="cp">{{-</span><span class="w"> </span><span class="nx">$anchor</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nx">$anchor</span><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="nx">default</span><span class="w"> </span><span class="s">&#34;&#34;</span><span class="w"> </span><span class="cp">-}}</span>
</span></span><span class="line hl"><span class="cl">    <span class="cp">{{-</span><span class="w"> </span><span class="nx">$desc</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nx">$desc</span><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="nx">default</span><span class="w"> </span><span class="na">.Title</span><span class="w"> </span><span class="cp">-}}</span>
</span></span><span class="line hl"><span class="cl">    <span class="cp">{{-</span><span class="w"> </span><span class="o">(</span><span class="k">printf</span><span class="w"> </span><span class="s">`&lt;a href=&#34;%s%s&#34;&gt;%s&lt;/a&gt;`</span><span class="w"> </span><span class="na">.RelPermalink</span><span class="w"> </span><span class="nx">$anchor</span><span class="w"> </span><span class="nx">$desc</span><span class="o">)</span><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="nx">safeHTML</span><span class="w"> </span><span class="cp">-}}</span>
</span></span><span class="line"><span class="cl"><span class="cp">{{-</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="cp">-}}</span>
</span></span><span class="line"><span class="cl">    <span class="cp">{{-</span><span class="w"> </span><span class="o">(</span><span class="nx">errorf</span><span class="w"> </span><span class="s">`%s: Page titled &#34;%s&#34; not found`</span><span class="w"> </span><span class="na">.Position</span><span class="w"> </span><span class="nx">$title</span><span class="o">)</span><span class="w"> </span><span class="cp">-}}</span>
</span></span><span class="line"><span class="cl"><span class="cp">{{-</span><span class="w"> </span><span class="k">end</span><span class="w"> </span><span class="cp">-}}</span>
</span></span></code></pre></td></tr></table>
</div>
</div><div class="src-block-caption">
  <span class="src-block-number"><a href="#code-snippet--titleref-sc">Code Snippet 2</a>:</span>
  <code>titleref</code> Shortcode
</div>
<p>This shortcode is designed to take up to two arguments:</p>
<dl>
<dt>title (+anchor)</dt>
<dd>The first argument can be just the title of the
post that we want to link (e.g. <em>&ldquo;My post&rdquo;</em>). Optionally, it can
also be followed by an anchor in that post, separated by &ldquo;#&rdquo;
(e.g. <em>&ldquo;My post#some-heading&rdquo;</em>).</dd>
<dt>(description)</dt>
<dd>The second argument is optional, and it&rsquo;s the link
description. If this argument is not set, the description is set to
the post&rsquo;s title.</dd>
</dl>
<details title="Click to expand">
<summary>How this shortcode works</summary>
<div class="details">
<ul>
<li>In lines <a href="#org-coderef--4922be-2">2</a> and <a href="#org-coderef--4922be-3">3</a>, the title and
anchor portions are parsed from the first argument.</li>
<li>In line <a href="#org-coderef--4922be-4">4</a>, if the description is specified using a
second argument, it&rsquo;s converted to HTML using <code>markdownify</code>.</li>
<li>✨ <a href="#org-coderef--4922be-5">Line 5</a> is the main logic &ndash; It
returned a list of all the pages whose <em>Title</em> matches the title
parsed from the first argument.
<mark>This list should have only 1 element as the assumption is that all
blog posts have unique titles.</mark></li>
<li>The first (and only) <em>page</em> element of that list is saved on
<code>$first_match</code> in line <a href="#org-coderef--4922be-6">6</a>.</li>
<li>If the <em>Title</em> based search was successfully in that main logic,
<code>$first_match</code> won&rsquo;t be <em>nil</em>. In line <a href="#org-coderef--4922be-12">12</a>,
the link description is set to the <code>.Title</code> from that page object,
if a description wasn&rsquo;t already set using the second
argument. Finally an HTML link is printed by using <code>.RelPermalink</code>
(<em>relative permalink</em>) from the <em>page</em> object and the description.</li>
<li>If the <em>Title</em> based search fails in the main logic, an error is
printed on line <a href="#org-coderef--4922be-15">15</a>.</li>
</ul>
</div>
</details>
<details title="Click to expand">
<summary>Examples of using the <code>titleref</code> shortcode (for Markdown users)</summary>
<div class="details">
<ul>
<li><code class="code-inline language-md">{{<span class="p">&lt;</span> <span class="nt">titleref</span> <span class="err">&#34;</span><span class="na">TITLE</span><span class="err">&#34;</span> <span class="p">&gt;</span>}}</code> &ndash; Link to a page
with that <em>TITLE</em> and set the link description to be the same as the
<em>TITLE</em>.</li>
<li><code class="code-inline language-md">{{<span class="p">&lt;</span> <span class="nt">titleref</span> <span class="err">&#34;</span><span class="na">TITLE</span><span class="err">&#34;</span> <span class="err">&#34;</span><span class="na">DESC</span><span class="err">&#34;</span> <span class="p">&gt;</span>}}</code> &ndash; Link to a
page with that <em>TITLE</em>, with <em>DESC</em> as description.</li>
<li><code class="code-inline language-md">{{<span class="p">&lt;</span> <span class="nt">titleref</span> <span class="err">&#34;</span><span class="na">TITLE</span><span class="err">#</span><span class="na">ANCHOR</span><span class="err">&#34;</span> <span class="err">&#34;</span><span class="na">DESC</span><span class="err">&#34;</span> <span class="p">&gt;</span>}}</code> &ndash;
Link to an <em>ANCHOR</em> in a page with that <em>TITLE</em>, with <em>DESC</em> as
description.</li>
</ul>
</div>
</details>

<h2 id="titleref-org-macro"><code>titleref</code> Org macro&nbsp;<a class="headline-hash no-text-decoration" href="#titleref-org-macro">#</a></h2>


<p>But the fun doesn&rsquo;t end here for an Org mode user! 😃</p>
<p>I do not prefer using Hugo shortcodes directly in my Org source. So I
created an Org macro to wrap this shortcode.</p>
<p><a id="code-snippet--titleref-org-macro"></a></p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-org" data-lang="org"><span class="line"><span class="cl"><span class="cs">#+macro</span><span class="c">: titleref @@hugo:{{&lt; titleref &#34;$1&#34; &#34;@@ $2 @@hugo:&#34; &gt;}}@@</span>
</span></span></code></pre></div><div class="src-block-caption">
  <span class="src-block-number"><a href="#code-snippet--titleref-org-macro">Code Snippet 3</a>:</span>
  <code>titleref</code> Org macro
</div>
<p>Now <code class="code-inline language-org"><span class="nb">{{{titleref(titleref: Referencing Hugo posts by their titles,)}}}</span></code> will export to <a href="/titleref-referencing-hugo-posts-by-their-titles/">titleref: Referencing Hugo posts by their titles</a>.</p>
<p>Here are some example uses of this macro:</p>
<ul>
<li><code class="code-inline language-org"><span class="nb">{{{titleref(TITLE,)}}}</span></code> &ndash; Link to a page
with that <em>TITLE</em> and set the link description to be the same as the
<em>TITLE</em>.</li>
<li><code class="code-inline language-org"><span class="nb">{{{titleref(TITLE,DESC)}}}</span></code> &ndash; Link to a page
with that <em>TITLE</em>, with <em>DESC</em> as description.</li>
<li><code class="code-inline language-org"><span class="nb">{{{titleref(TITLE#ANCHOR,DESC)}}}</span></code> &ndash; Link to
an <em>ANCHOR</em> in a page with that <em>TITLE</em>, with <em>DESC</em> as description.</li>
</ul>

<h2 id="summary">Summary&nbsp;<a class="headline-hash no-text-decoration" href="#summary">#</a></h2>


<p>By using the <code>titleref</code> shortcode (or Org macro) instead of <code>relref</code>,
we now have a tremendous reduction of redundancy.</p>
<dl>
<dt><a href="#org-target--relref-macro-example">Before</a></dt>
<dd><ul>
<li>Org mode: <code class="code-inline language-org"><span class="nb">{{{relref(titleref: Referencing Hugo posts by their titles,titleref-referencing-hugo-posts-by-their-titles)}}}</span></code></li>
<li>Markdown: <code class="code-inline language-md">[<span class="nt">titleref: Referencing Hugo posts by their titles</span>](<span class="na">{{&lt; relref &#34;titleref-referencing-hugo-posts-by-their-titles&#34; &gt;}}</span>)</code></li>
</ul>
</dd>
<dt>Now</dt>
<dd><ul>
<li>Org mode: <code class="code-inline language-org"><span class="nb">{{{titleref(titleref: Referencing Hugo posts by their titles,)}}}</span></code></li>
<li>Markdown: <code class="code-inline language-md">{{<span class="p">&lt;</span> <span class="nt">titleref</span> <span class="err">&#34;</span><span class="na">titleref:</span> <span class="na">Referencing</span> <span class="na">Hugo</span> <span class="na">posts</span> <span class="na">by</span> <span class="na">their</span> <span class="na">titles</span><span class="err">&#34;</span> <span class="p">&gt;</span>}}</code></li>
</ul>
</dd>
</dl>
]]></content><category scheme="https://scripter.co/categories/hugo" term="hugo" label="hugo"/><category scheme="https://scripter.co/series/hugo-shortcodes" term="hugo-shortcodes" label="Hugo Shortcodes"/><category scheme="https://scripter.co/tags/shortcodes" term="shortcodes" label="shortcodes"/><category scheme="https://scripter.co/tags/cross-referencing" term="cross-referencing" label="cross-referencing"/><category scheme="https://scripter.co/tags/100daystooffload" term="100daystooffload" label="100DaysToOffload"/><category scheme="https://scripter.co/tags/org-macro" term="org-macro" label="org-macro"/></entry></feed>