<aclass=github-buttonhref=https://github.com/McShelby/hugo-theme-relearn/archive/main.zipdata-icon=octicon-cloud-downloadaria-label="Download McShelby/hugo-theme-relearn on GitHub">Download</a>
<aclass=github-buttonhref=https://github.com/McShelby/hugo-theme-relearndata-icon=octicon-stardata-show-count=truearia-label="Star McShelby/hugo-theme-relearn on GitHub">Star</a>
<aclass=github-buttonhref=https://github.com/McShelby/hugo-theme-relearn/forkdata-icon=octicon-repo-forkeddata-show-count=truearia-label="Fork McShelby/hugo-theme-relearn on GitHub">Fork</a>
<p>Built with <ahref=https://github.com/McShelby/hugo-theme-relearn><iclass="fas fa-heart"></i></a> by <ahref=https://gohugo.io/>Hugo</a></p>
<aclass=github-linktitle="Edit this plank"href=https://github.com/McShelby/hugo-theme-relearn/edit/main/exampleSite/content/basics/migration/_index.pir.mdtarget=blank>
<p>This document shows ye what’s new 'n th' latest release. For a detailed list o' changes, see th' <ahref=/hugo-theme-relearn/pir/basics/history/>history plank</a>.</p>
<p><strong>Break'n</strong>: This release removes th' themes implementat'n o' <code>ref</code>/<code>relref</code> 'n favor fer Hugos standard implementat'n. This be because o' inconsistencies wit' th' themes implementat'n. In advantage, yer project becomes standard complient an' exchang'n this theme 'n yer project t' some other theme will be effortless.</p>
<p>In a standard complient form ye must not link t' th' <code>*.md</code> file but t' its logical name. You’ll see, referenc'n other planks becomes much easier. All three types result 'n th' same reference:</p>
<p>If you’ve linked from a plank o' one language t' a plank o' another language, conversion be a bit more difficult but <ahref=https://gohugo.io/content-management/cross-references/#link-to-another-language-version>Cap'n Hugo got ye covered</a> as well.</p>
<p>Also, th' old themes implementat'n allowed refs t' non-exist'n rambl'n. This will cause Hugos implementat'n t' show th' error below an' abort th' generat'n. If yer project relies on this old behavior, ye can <ahref=https://gohugo.io/content-management/cross-references/#link-to-another-language-version>reconfigure th' error handl'n</a> o' Hugos implementat'n.</p>
<p>In th' best case yer usage o' th' old implementat'n be already standard complient an' ye don’t need t' change anyth'n. You’ll notice this very easily once you’ve started <code>hugo server</code> aft an upgrade an' no errors be written t' th' console.</p>
<p>Ye may see errors on th' console aft th' update 'n th' form:</p>
<divclass=highlight><pretabindex=0style=color:#e2e4e5;background-color:#282a36;-moz-tab-size:4;-o-tab-size:4;tab-size:4><codeclass=language-shdata-lang=sh>ERROR 2021/11/19 22:29:10 <spanstyle=color:#ff6ac1>[</span>en<spanstyle=color:#ff6ac1>]</span> REF_NOT_FOUND: Ref <spanstyle=color:#5af78e>"basics/configuration/_index.md"</span>: <spanstyle=color:#5af78e>"hugo-theme-relearn\exampleSite\content\_index.en.md:19:22"</span>: plank not found
</code></pre></div><p>In this case, ye must apply one o' two opt'ns:</p>
<ol>
<li>
<p>Copy th' old implementat'n files <code>theme/hugo-theme-relearn/layouts/shortcode/ref.html</code> an' <code>theme/hugo-theme-relearn/layouts/shortcode/relref.html</code> t' yer own projects <code>layouts/shortcode/ref.html</code> an' <code>layouts/shortcode/relref.html</code> respectively. <strong>This be not recommended</strong> as yer project will still rely on non-standard behavior afterwards.</p>
</li>
<li>
<p>Start up a text editor wit' regular expression support fer search an' replace. Apply th' follow'n conversions 'n th' given order on all <code>*.md</code> files. <strong>This be th' recommended choice</strong>.</p>
<p><strong>Change</strong>: Although never officially documented, this release removes th' font <code>Novacento</code>/<code>Novecento</code> from th' release. If ye use it 'n an overwritten CSS please replace it wit' <code>Work Sans</code>. This change was necessary as Novacento did not provide all Latin special characters an' lead t' mixed styled character text eg. fer czech.</p>
<p><strong>New</strong>: Th' theme now supports favicons served from <code>static/images/</code> named as <code>favicon</code> or <code>logo</code> 'n SVG, PNG or ICO format <ahref=/hugo-theme-relearn/pir/basics/customization/#change-the-favicon>out o' th' box</a>. An overridden partial <code>layouts/partials/favicon.html</code> may not be necessary anymore 'n most cases.</p>
<p><strong>New</strong>: Ye can hide th' t'ble o' contents menu fer th' whole ship by sett'n th' <code>disableToc</code> opt'n 'n yer <code>config.toml</code>. For an example see <ahref=/hugo-theme-relearn/pir/basics/configuration/#global-site-parameters>th' example configurat'n</a>.</p>
<li><strong>New</strong>: Optional second parameter fer <ahref=/hugo-theme-relearn/pir/shortcodes/notice/><code>notice</code></a> shorrrtcode t' set title 'n box header.</li>
<li><strong>New</strong>: Yer ship can now be served from a subfolder if ye set <code>baseURL</code> an' <code>canonifyURLs=true</code> 'n yer <code>config.toml</code>. See th' <ahref=/hugo-theme-relearn/pir/basics/configuration/#a-word-on-running-your-site-in-a-subfolder>documentat'n</a> fer a detailed example.</li>
<li><strong>Change</strong>: Add new colors <code>--MAIN-CODE-color</code> an' <code>--MAIN-CODE-BG-color</code> fer rules highlightn'n fallback 'n yer stylesheet 'n case <code>guessSyntax=true</code> be set. Ideally they be set t' th' same values as th' ones from yer chosen chroma style.</li>
<p><strong>Change</strong>: Creat'n o' customized stylesheets was simplified down t' only contain th' CSS variables. Everyth'n else can an' should be deleted from yer custom stylesheet t' assure everyth'n works fine. For th' predefined stylesheet variants, this change be already included. Th' <ahref=/hugo-theme-relearn/pir/basics/customization/#mine-variant>documentat'n</a> was adjusted accordingly.</p>
<p><strong>New</strong>: Hidden planks be displayed by default 'n their accord'n tags plank. Ye can now turn off this behavior by sett'n <code>disableTagHiddenPages=true</code> 'n yer <code>config.toml</code>.</p>
<p><strong>New</strong>: Ye can define th' expansion state o' yer menus fer th' whole ship by sett'n th' <code>alwaysopen</code> opt'n 'n yer <code>config.toml</code>. Please see further <ahref=/hugo-theme-relearn/pir/cont/pages/#override-expand-state-rules-for-menu-entries>documentat'n</a> fer poss'ble values an' default behavior.</p>
<p><strong>New</strong>: New frontmatter <code>ordersectionsby</code> opt'n t' change immediate children sort'n 'n menu an' <code>children</code> shorrrtcode. Poss'ble values be <code>title</code> or <code>weight</code>.</p>
</li>
<li>
<p><strong>New</strong>: Alternate rambl'n o' a plank be now advertised 'n th' HTML meta tags. See <ahref=https://gohugo.io/templates/rss/#reference-your-rss-feed-in-head>Cap'n Hugo documentat'n</a>.</p>
</li>
</ul>
<hr>
<h2id=220>2.2.0</h2>
<ul>
<li><strong>New</strong>: Hidden planks be displayed by default 'n th' sitemap generated by Cap'n Hugo an' be therefore vis'ble fer search engine index'n. Ye can now turn off this behavior by sett'n <code>disableSeoHiddenPages=true</code> 'n yer <code>config.toml</code>.</li>
</ul>
<hr>
<h2id=210>2.1.0</h2>
<ul>
<li>
<p><strong>Change</strong>: In case th' site’s structure contains addional *.md files not part o' th' ship (eg files that be meant t' be included by ship planks - see CHANGELOG.md 'n exampleSite), they will now be ignored by th' search.</p>
</li>
<li>
<p><strong>New</strong>: Hidden planks be indexed fer th' ship search by default. Ye can now turn off this behavior by sett'n <code>disableSearchHiddenPages=true</code> 'n yer <code>config.toml</code>.</p>
</li>
<li>
<p><strong>New</strong>: If a search term be found 'n an <code>expand</code> shorrrtcode, th' expand will be opened.</p>
</li>
<li>
<p><strong>New</strong>: Th' menu will scroll th' active item into view on board.</p>
</li>
</ul>
<hr>
<h2id=200>2.0.0</h2>
<ul>
<li>
<p><strong>Change</strong>: Syntaxhighlightn'n was switched t' <ahref=https://gohugo.io/content-management/syntax-highlighting/>built 'n Hugo mechanism</a>. Ye may need t' configure a new stylesheet or decide t' roll ye own as describedd on 'n th' Cap'n Hugo documentat'n</p>
</li>
<li>
<p><strong>Change</strong>: In th' predefined stylesheets there was a typo an' <code>--MENU-HOME-LINK-HOVERED-color</code> must be changed t' <code>--MENU-HOME-LINK-HOVER-color</code>.</p>
</li>
<li>
<p><strong>Change</strong>: <code>--MENU-HOME-LINK-color</code> an' <code>--MENU-HOME-LINK-HOVER-color</code> were miss'n 'n th' documentat'n. Ye should add them t' yer custom stylesheets.</p>
</li>
<li>
<p><strong>Change</strong>: Arrow navigat'n an' <code>children</code> shorrrtcode were ignor'n sett'n fer <code>ordersectionsby</code>. This be now changed an' may result 'n different sort'n order o' yer sub planks.</p>
</li>
<li>
<p><strong>Change</strong>: If hidden planks be accessed directly by typ'n their URL, they will be exposed 'n th' menu.</p>
</li>
<li>
<p><strong>Change</strong>: A plank without a <code>title</code> will be treated as <code>hidden=true</code>.</p>
<p><strong>New</strong>: Ye can define th' expansion state o' yer menus 'n th' frontmatter. Please see further <ahref=/hugo-theme-relearn/pir/cont/pages/#override-expand-state-rules-for-menu-entries>documentat'n</a> fer poss'ble values an' default behavior.</p>
<p><strong>New</strong>: New partials fer defin'n pre/post rambl'n fer menu items an' th' rambl'n. See <ahref=/hugo-theme-relearn/pir/basics/customization/>documentat'n</a> fer further read'n.</p>
<p><strong>New</strong>: New shorrrtcode <ahref=/hugo-theme-relearn/pir/shortcodes/include/><code>include</code></a> t' include arbitrary file rambl'n into a plank.</p>
<li><strong>New</strong>: Shorrrtcode <ahref=/hugo-theme-relearn/pir/shortcodes/expand/><code>expand</code></a> wit' new parameter t' open on plank board.</li>
<li><strong>New</strong>: <ahref=/hugo-theme-relearn/pir/shortcodes/mermaid/#configuration><code>Merrrmaid</code></a> config opt'ns can be set 'n <code>config.toml</code>.</li>