<metaname="description"content="7.4.0 (2025-02-18) Change Change Th' way ye link t' planks 'n a different language has changed. Until now this was an undocumented feature.">
<metaname="twitter:title"content="Version 7.4 :: Cap'n Hugo Relearrrn Theme">
<metaname="twitter:description"content="7.4.0 (2025-02-18) Change Change Th' way ye link t' planks 'n a different language has changed. Until now this was an undocumented feature.">
<metaproperty="og:site_name"content="Cap'n Hugo Relearrrn Theme">
<metaproperty="og:title"content="Version 7.4 :: Cap'n Hugo Relearrrn Theme">
<metaproperty="og:description"content="7.4.0 (2025-02-18) Change Change Th' way ye link t' planks 'n a different language has changed. Until now this was an undocumented feature.">
<metaitemprop="name"content="Version 7.4 :: Cap'n Hugo Relearrrn Theme">
<metaitemprop="description"content="7.4.0 (2025-02-18) Change Change Th' way ye link t' planks 'n a different language has changed. Until now this was an undocumented feature.">
<liitemscopeitemtype="https://schema.org/ListItem"itemprop="itemListElement"class="a11y-only"><aitemprop="item"href="/hugo-theme-relearn/pir/index.html"><spanitemprop="name">Cap'n Hugo Relearrrn Theme</span></a><metaitemprop="position"content="1"> > </li>
See the <ahref="/hugo-theme-relearn/pir/introduction/changelog/7/4/index.html">changelog of this version</a> for a detailed list of changes.
<hr>
<h2id="7-4-0">7.4.0 (2025-02-18)</h2>
<h3id="change">Change</h3>
<ul>
<li>
<p><spanclass="badge cstyle note badge-with-title"><spanclass="badge-title"><iclass="fa-fw fas fa-exclamation-circle"></i></span><spanclass="badge-content">Change</span></span> Th' way ye <ahref="/hugo-theme-relearn/pir/authoring/linking/pages/index.html">link t' planks 'n a different language</a> has changed. Until now this was an undocumented feature.</p>
<p>Previously ye could prepend an URL wit' th' language code, e.g. <code>/pir/my-page</code> t' link t' planks o' other languages. This could cause problems if ye have a plank wit' th' same name as th' language code on th' top level o' yer plank structure.</p>
<p>Now ye have t' set th' query parameter <code>lang</code> t' th' language code, e.g. <code>/my-page?lang=pir</code>.</p>
<p>As this was previously undocumented, most projects will not be affected. If ye <ahref="/hugo-theme-relearn/pir/configuration/content/linking/index.html#legacy-cross-language-links">still need th' old behavior</a>, ye can set <code>enableLegacyLanguageLinks=true</code> 'n yer <code>hugo.toml</code>.</p>
</li>
<li>
<p><spanclass="badge cstyle note badge-with-title"><spanclass="badge-title"><iclass="fa-fw fas fa-exclamation-circle"></i></span><spanclass="badge-content">Change</span></span> Th' <code>target</code> parameter o' th' <ahref="/hugo-theme-relearn/pir/shortcodes/button/index.html#parameter"><code>button</code> shortcode</a> was deprecated.</p>
<p>Use <ahref="/hugo-theme-relearn/pir/authoring/markdown/index.html#link-effects">link effects</a> on th' <code>href</code> parameter instead. Ye don’t need t' change anyth'n as th' old parameter still works but may generate warnings.</p>
</li>
</ul>
<h3id="new">New</h3>
<ul>
<li>
<p><spanclass="badge cstyle info badge-with-title"><spanclass="badge-title"><iclass="fa-fw fas fa-plus-circle"></i></span><spanclass="badge-content">New</span></span> Th' theme now allows plank references (given as <code>pageRef</code> o' a <ahref="https://gohugo.io/content-management/menus/"rel="external"target="_self">Cap'n Hugo menu item</a>, <code>pageRef</code> parameter o' a <ahref="/hugo-theme-relearn/pir/configuration/sidebar/menus/index.html#defining-sidebar-menus"><code>sidebarmenus</code> entry </a> an' th' <code>menuPageRef</code> 'n a <ahref="/hugo-theme-relearn/pir/configuration/sidebar/menus/index.html#displaying-arbitrary-links-in-a-page-menu">page’s front matter</a>) t' also be global resources from yer <code>assets</code> directory.</p>
</li>
<li>
<p><spanclass="badge cstyle info badge-with-title"><spanclass="badge-title"><iclass="fa-fw fas fa-plus-circle"></i></span><spanclass="badge-content">New</span></span> If <ahref="/hugo-theme-relearn/pir/authoring/frontmatter/linking/index.html#enabling-link-and-image-link-warnings"><code>link.errorlevel</code> be configured</a>, now also plank references will be checked fer existence.</p>
</li>
<li>
<p><spanclass="badge cstyle info badge-with-title"><spanclass="badge-title"><iclass="fa-fw fas fa-plus-circle"></i></span><spanclass="badge-content">New</span></span> Ye can now <ahref="/hugo-theme-relearn/pir/authoring/frontmatter/linking/index.html#ignoring-false-negatives">configure an ignore list</a> o' regular expressions fer addresses that should be ignored if an errorlevel test fails. This be configured by sett'n <code>errorignore=[]</code> globally 'n yer <code>hugo.toml</code> fer all errorlevel checks.</p>
<p>This helps t' remove false negatives while still benefitt'n from th' check fer all other addresses.</p>
</li>
<li>
<p><spanclass="badge cstyle info badge-with-title"><spanclass="badge-title"><iclass="fa-fw fas fa-plus-circle"></i></span><spanclass="badge-content">New</span></span> It be now poss'ble t' add query parameter an' an optional fragment part t' all links. This be regardless whether it be a local or remote address an' also applies t' Hugo’s internal path.</p>
<p>By that ye can now use it on Marrrkdown links an' image links, plank references an' <ahref="/hugo-theme-relearn/pir/shortcodes/button/index.html">buttons</a>.</p>
</li>
<li>
<p><spanclass="badge cstyle info badge-with-title"><spanclass="badge-title"><iclass="fa-fw fas fa-plus-circle"></i></span><spanclass="badge-content">New</span></span> Ye can now <ahref="/hugo-theme-relearn/pir/authoring/linking/pages/index.html">link t' different output formats</a> o' a plank by add'n a query parameter.</p>
<p>For example t' link t' th' print format o' a plank, write <code>/my-page?format=print</code>.</p>
</li>
<li>
<p><spanclass="badge cstyle info badge-with-title"><spanclass="badge-title"><iclass="fa-fw fas fa-plus-circle"></i></span><spanclass="badge-content">New</span></span> There be two new <ahref="/hugo-theme-relearn/pir/authoring/linking/imageeffects/index.html">image effects</a> that be us'ble if th' linked image points t' a resource:</p>
<ul>
<li><strong>dataurl</strong>: resource be converted t' a base64 encoded dataurl</li>
<li><strong>inlinecontent</strong>: 'n case o' SVG resources, th' rrrambl'n will be used instead o' an <code><img></code> element, this be useful fer apply'n additional CSS styles t' th' elements inside o' th' SVG which be otherwise imposs'ble</li>
</ul>
</li>
<li>
<p><spanclass="badge cstyle info badge-with-title"><spanclass="badge-title"><iclass="fa-fw fas fa-plus-circle"></i></span><spanclass="badge-content">New</span></span> This release introduces <ahref="/hugo-theme-relearn/pir/authoring/linking/linkeffects/index.html">link effects</a> which work similar t' <ahref="/hugo-theme-relearn/pir/authoring/linking/imageeffects/index.html">image effects</a> an' can be set as query parameter on any link.</p>
<p>Wit' that ye currently can specify</p>
<ul>
<li><strong>target</strong>: set a link target individually fer each link</li>
<li><strong>download</strong>: a click on th' link should result 'n a file download instead o' a navigat'n</li>
</ul>
</li>
<li>
<p><spanclass="badge cstyle info badge-with-title"><spanclass="badge-title"><iclass="fa-fw fas fa-plus-circle"></i></span><spanclass="badge-content">New</span></span> Th' theme supports th' new <ahref="/hugo-theme-relearn/pir/configuration/sitemanagement/outputformats/index.html#source-support"><code>source</code> output format</a> which behaves similar 'n configurat'n as th' <code>markdown</code> output format but allows th' original Marrrkdown source includ'n th' front matter o' a plank t' be viewed.</p>
<p>Ye can see this 'n act'n on th' above linked plank, access'ble by click'n th' <spanclass="btn cstyle transparent"><span><iclass="fa-fw fas fa-code"></i></span></span> topbar button.</p>
</li>
<li>
<p><spanclass="badge cstyle info badge-with-title"><spanclass="badge-title"><iclass="fa-fw fas fa-plus-circle"></i></span><spanclass="badge-content">New</span></span> If ye haven’t overridden <code>layouts/partials/custom-header.html</code> an' <code>css/custom.css</code> and/or <code>js/custom.js</code> be present 'n yer project, th' theme now adds them t' yer planks.</p>
<p>This was done t' be compat'ble wit' add'n custom scripts 'n an older version o' th' Cap'n Hugo documentat'n.</p>
</li>
<li>
<p><spanclass="badge cstyle info badge-with-title"><spanclass="badge-title"><iclass="fa-fw fas fa-plus-circle"></i></span><spanclass="badge-content">New</span></span> If ye haven’t overridden <code>layouts/partials/content-footer.html</code>, ye can now <ahref="/hugo-theme-relearn/pir/configuration/content/meta/index.html">configure which plank meta informat'n</a> - like author’s name, email address an' author'n date - should be displayed. Also th' date format be now configur'ble.</p>
</li>
<li>
<p><spanclass="badge cstyle info badge-with-title"><spanclass="badge-title"><iclass="fa-fw fas fa-plus-circle"></i></span><spanclass="badge-content">New</span></span> Th' logo color be now configur'ble via th' <code>--MENU-HEADER-color</code> vari'ble 'n yer variant stylesheets.</p>
</li>
<li>
<p><spanclass="badge cstyle info badge-with-title"><spanclass="badge-title"><iclass="fa-fw fas fa-plus-circle"></i></span><spanclass="badge-content">New</span></span> Now favicons be also searched 'n th' <code>assets/images</code> directory.</p>
</li>
<li>
<p><spanclass="badge cstyle info badge-with-title"><spanclass="badge-title"><iclass="fa-fw fas fa-plus-circle"></i></span><spanclass="badge-content">New</span></span> T'ble headers be sticky now.</p>
</li>
<li>
<p><spanclass="badge cstyle info badge-with-title"><spanclass="badge-title"><iclass="fa-fw fas fa-plus-circle"></i></span><spanclass="badge-content">New</span></span> Th' themes documentat'n has been moved from <code>exampleSite</code> t' <code>docs</code> t' make place fer a brand new exampleSite. Welcome on board th' <ahref="https://mcshelby.github.io/hugo-theme-relearn/exampleSite/about/index.html"rel="external"target="_self">Th' Purple Pulpo</a>!</p>
<p>This was done because th' docs contained t' much docs specific configurat'n an' quirks. Th' new exampleSite be meant as a start'n template fer yer own project wit' minimal initial configurat'n.</p>