<linkhref="/hugo-theme-relearn/pir/introduction/releasenotes/index.xml"rel="alternate"type="application/rss+xml"title="What's New :: Cap'n Hugo Relearrrn Theme">
<linkhref="/hugo-theme-relearn/pir/introduction/releasenotes/index.print.html"rel="alternate"type="text/html"title="What's New :: Cap'n Hugo Relearrrn Theme">
<p>Ye don’t need t' change anyth'n 'n yer exist'n installat'n as th' old configurat'n be used as a default.</p>
</li>
</ul>
<h3id="new">New</h3>
<ul>
<li><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> Menus created by yer plank structure be now able t' <ahref="/hugo-theme-relearn/pir/configuration/sidebar/menus/index.html#displaying-arbitrary-links-in-a-page-menu">contain arbitrary links</a> inserted into th' structure us'n th' <code>menuUrl</code> or <code>menuPageRef</code> front matter.
<li><spanclass="badge cstyle default badge-with-title"><spanclass="badge-title"><iclass="fa-fw fab fa-hackerrank"></i></span><spanclass="badge-content"style="background-color: fuchsia;">0.126.0</span></span> This release requires a newer Cap'n Hugo version.</li>
</ul>
<h3id="breaking">Break'n</h3>
<ul>
<li>
<p><spanclass="badge cstyle warning badge-with-title"><spanclass="badge-title"><iclass="fa-fw fas fa-exclamation-triangle"></i></span><spanclass="badge-content">Break'n</span></span> This release comes wit' significant changes 'n file nam'n o' partials an' how th' theme works internally. This was done because th' theme</p>
<ul>
<li>suffered from poor build performance fer sites wit' 1000 or more planks</li>
<li>reinvented th' wheel instead o' us'n avail'ble Cap'n Hugo mechanisms</li>
<p><em>What do I gain</em>, ye may ask. A significant performance boost dur'n build! Usually, th' build time has been cut at least 'n half fer bigger sites. It be now poss'ble t' build even larger sites wit' 5000 or more planks. This was previously almost imposs'ble due t' rapidly increas'n build time wit' th' more planks you’ve introduced. For even bigger sites, th' theme now has <ahref="/hugo-theme-relearn/pir/configuration/sidebar/menus/index.html#expander-for-submenus">configur'ble performance optimizat'ns</a> - at th' price o' feature limitat'ns.</p>
<p>If ye haven’t done customizat'ns t' any partials, ye can update right away.</p>
<p>If ye have customized yer templates, 'n th' best cases, ye will get build warnings or even errors. In th' worst cases, yer build succeeds but th' ship will not work as intended by ye.</p>
<p>Specifically, ye will have t' adapt yer ship if ye have</p>
<ul>
<li><ahref="/hugo-theme-relearn/pir/configuration/customization/partials/index.html">overwritten th' <code>header.html</code>, <code>menu.html</code> or <code>footer.html</code> partials</a></li>
<li>self-defined archetype partials 'n <code>layouts/partials/archetypes</code> - now becom'n <ahref="/hugo-theme-relearn/pir/configuration/customization/designs/index.html">plank designs</a></li>
<p><spanclass="badge cstyle warning badge-with-title"><spanclass="badge-title"><iclass="fa-fw fas fa-exclamation-triangle"></i></span><spanclass="badge-content">Break'n</span></span> This release changes th' way th' search index an' th' dedicated search plank be generated. This may require reconfigurat'n by ye t' still work as ye have intended.</p>
<p>Ye need t' remove th' now obsolete <code>search</code> an' <code>searchpage</code> output format from <code>[outputs.home]</code> 'n yer <code>hugo.toml</code>, result'n 'n someth'n similar t'</p>
<p>Aft that, yer build will succeed but will most likely cause new defaults t' be applied. Wit' no further sett'ns, in-page search, search popup an' dedicated search plank be all active by default. This can be reconfigured.</p>
<p>In addit'n, ye be now able t' overwrite th' default file name o' th' search index an' th' default plank name o' th' dedicated search plank by chang'n <code>searchIndexURL</code> an' <code>searchPageURL</code> respectively 'n yer <code>hugo.toml</code>.</p>
<p>See th' <ahref="/hugo-theme-relearn/pir/configuration/sidebar/search/index.html">updated documentat'n</a> fer reference.</p>
<p>Care was taken t' configure th' font t' look similar t' th' previously used Work Sans. Nevertheless, 'n direct comparison, ye will see slight differences 'n appearance.</p>
<p>This change was necessary as th' previously used font had display issues wit' <ahref="/hugo-theme-relearn/pir/authoring/markdown/index.html#marked-text">marked text</a>, contrast, an' some other minor stuff. As an aftermath, th' number o' requests an' th' download size were decreased when load'n a plank.</p>
<p>Th' font was created by Google, be licensed under OFL 1.1 an' be delivered from yer theme’s installat'n. As always, no third-party server calls be involved.</p>
<p>If ye have changed th' <code>font-family</code> 'n yer installat'n, ye most likely have t' adjust th' variables <code>--MAIN-font-weight</code>, <code>--MAIN-BOLD-font-weight</code> an' <code>--MAIN-letter-spac'n</code>.</p>
<p>Additionally, if ye have changed th' font t' a <ahref="https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_fonts/Variable_fonts_guide#variable_fonts_what_they_are_and_how_they_differ"rel="external"target="_self">vari'ble font</a> 'n yer installat'n, ye may have t' adjust th' vari'ble <code>--MAIN-font-variation-sett'ns</code>. As this only applies t' <strong>vari'ble fonts</strong>, this should rarely be necessary.</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> While switch'n th' font, it was discovered that certain CSS variables were falsely named. Ye don’t need t' change anyth'n 'n yer custom variant stylesheet as th' old names will be used as a fallback.</p>
<p><code>--MAIN-TITLES-TEXT-font</code> was renamed t' <code>--MAIN-TITLES-font</code>, <code>--MAIN-TITLES-H<n>-color</code> was renamed t' <code>--MAIN-TITLES-H<n>-TEXT-color</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' opt'ns an' front matter t' force load'n a <ahref="/hugo-theme-relearn/pir/shortcodes/math/index.html#force-loading-of-the-mathjax-library">math</a>, <ahref="/hugo-theme-relearn/pir/shortcodes/mermaid/index.html#force-loading-of-the-mermaid-library">mermaid</a> or <ahref="/hugo-theme-relearn/pir/shortcodes/openapi/index.html#force-loading-of-the-swagger-ui-library">openapi</a> library has been changed.</p>
<p>Previously, ye had t' set th' unintuitive <code>disableMathJax=false</code> t' force board th' math library 'n case o' a passthrough configurat'n. This be replaced by th' simpler <code>math=true</code> or <code>math.force=true</code> an' be now 'n line wit' <ahref="https://gohugo.io/content-management/mathematics/#step-1"rel="external"target="_self">Hugo’s official documentat'n</a>.</p>
<p>Ye don’t need t' change anyth'n yet but will receive warnings if th' old sett'ns be used.</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' default logo be not contained inside o' th' theme’s logo partial anymore.</p>
<p>This be t' avoid usage o' th' theme’s brand'n throughout th' web 'n non-modified installat'ns.</p>
<p>In addit'n, th' default text fer th' logo partial be now <ahref="/hugo-theme-relearn/pir/configuration/sidebar/headerfooter/index.html#title">taken from th' <code>linkTitle</code> sett'n</a> o' yer <code>hugo.toml</code>.</p>
<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' docs received a much-needed overhaul fer all chapters.</p>
<p>Basically, th' structure was reorganized, giv'n each topic its own plank while keep'n th' amount o' items fer each menu level comprehens'ble by add'n sub-pages.</p>
<p>Th' docs now clearly differentiate between <ahref="/hugo-theme-relearn/pir/configuration/index.html">configurat'n o' yer ship</a>, all th'ns <ahref="/hugo-theme-relearn/pir/authoring/index.html">writ'n plank rrrambl'n</a> an' th' <ahref="/hugo-theme-relearn/pir/shortcodes/index.html">shorrrtcodes docs</a> that cover both topics, configurat'n an' usage.</p>
<p>T' give ye a better overview o' what’s poss'ble wit' th' theme, we introduced reference planks fer all theme <ahref="/hugo-theme-relearn/pir/configuration/reference/index.html">configurat'n opt'ns</a> an' <ahref="/hugo-theme-relearn/pir/authoring/frontmatter/reference/index.html">front matter</a> an' mark each occurrence o' such on all planks wit' th' badges <spanclass="badge cstyle cyan badge-with-title"><spanclass="badge-title"><iclass="fa-fw fas fa-gears"></i></span><spanclass="badge-content">Opt'n</span></span> an' <spanclass="badge cstyle green badge-with-title"><spanclass="badge-title"><iclass="fa-fw fab fa-markdown"></i></span><spanclass="badge-content">Front Matter</span></span>.</p>
<p>Also, a lot o' previously undocumented features be now included, namely</p>
<li>configur'n <ahref="/hugo-theme-relearn/pir/configuration/content/titles/index.html">breadcrumb, titles</a> an' <ahref="/hugo-theme-relearn/pir/configuration/content/headings/index.html">head'ns</a> o' yer rrrambl'n</li>
<li><ahref="/hugo-theme-relearn/pir/configuration/content/linking/index.html">opt'ns fer us'n links</a></li>
<li><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> If ye now display a single code block 'n a <code>notice</code> box, its <ahref="/hugo-theme-relearn/pir/shortcodes/notice/index.html#code-with-collapsed-colored-borders">margin an' border will be removed</a> so only th' colored notice border be vis'ble.</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' have user-defined styles fer all shorrrtcodes that accept th' <code>style</code> parameter. See th' <ahref="/hugo-theme-relearn/pir/shortcodes/notice/index.html#defining-own-styles"><code>notice</code> shortcode</a> fer configurat'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> Th' <ahref="/hugo-theme-relearn/pir/shortcodes/resources/index.html"><code>resources</code> shortcode</a> has a new parameter <code>expanded</code> t' make th' resource list collaps'ble.
<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' <ahref="/hugo-theme-relearn/pir/shortcodes/expand/index.html"><code>expand</code> shortcode</a> changed th' nam'n o' th' <code>open</code> parameter t' <code>expanded</code>. Ye don’t need t' change anyth'n yet but may get deprecat'n warnings.</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> If th' rrrambl'n fer th' <ahref="/hugo-theme-relearn/pir/shortcodes/notice/index.html"><code>notice</code> shortcode</a> be empty, now only th' title bar will be displayed. Previously an empty rrrambl'n box was displayed.</p>
<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' <ahref="/hugo-theme-relearn/pir/shortcodes/notice/index.html"><code>notice</code> shortcode</a> has a new parameter <code>expanded</code> t' make th' rrrambl'n collaps'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> If ye be runn'n Hugo <spanclass="badge cstyle default badge-with-title"><spanclass="badge-title"><iclass="fa-fw fab fa-hackerrank"></i></span><spanclass="badge-content"style="background-color: fuchsia;">0.134.0</span></span> or later, th' theme now supports <ahref="/hugo-theme-relearn/pir/authoring/markdown/index.html#obsidian-callouts">Obsidian callouts</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> Th' theme has updated its Merrrmaid dependency t' 11.1.0. This adds support fer <ahref="/hugo-theme-relearn/pir/shortcodes/mermaid/index.html#packet">packet</a> an' <ahref="/hugo-theme-relearn/pir/shortcodes/mermaid/index.html#architecture">architecture</a> diagrams.
<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' head'n anchor links be extended 'n functionality.</p>
<p>If ye now click on it, not only be th' link copied t' th' clipboard (previous behavior) but also th' head'n scrolls t' th' top o' th' plank.</p>
<p>If ye dislike th' new behavior, ye can deactivate it by sett'n <code>disableAnchorScrolling=true</code> 'n yer <code>hugo.toml</code>. See th' <ahref="/hugo-theme-relearn/pir/configuration/content/headings/index.html">docs fer further opt'ns</a>.</p>
<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 be runn'n Hugo <spanclass="badge cstyle default badge-with-title"><spanclass="badge-title"><iclass="fa-fw fab fa-hackerrank"></i></span><spanclass="badge-content"style="background-color: fuchsia;">0.132.0</span></span> or later, th' theme be now cap'ble t' print <ahref="/hugo-theme-relearn/pir/authoring/markdown/index.html#github-alerts">GitHub alerts</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> T' support new severity levels fer GitHub alerts, all shorrrtcodes that support severity levels wit' their <code>style</code> parameter were expanded wit' th' new severities <code>caut'n</code> an' <code>important</code> an' th' <code>color</code> parameter was expanded wit' <code>cyan</code> an' <code>magenta</code>. Please note, that color'n an' ay'cons o' severities may defer from th' <ahref="https://docs.github.com/en/get-started/writing-on-github/getting-started-with-writing-and-formatting-on-github/basic-writing-and-formatting-syntax#alerts"rel="external"target="_self">display ye see on GitHub</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> T' support new severity levels fer GitHub alerts, th' new severities an' their accord'n colors be also avail'ble as CSS variables <code>BOX-MAGENTA-color</code>, <code>BOX-MAGENTA-TEXT-color</code>, <code>BOX-CAUTION-color</code>, <code>BOX-CAUTION-TEXT-color</code>, <code>BOX-CYAN-color</code>, <code>BOX-CYAN-TEXT-color</code>, <code>BOX-IMPORTANT-color</code>, <code>BOX-IMPORTANT-TEXT-color</code>. Ye don’t need t' change anyth'n 'n yer custom color stylesheet as appropriate default colors will be used.
<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' <ahref="/hugo-theme-relearn/pir/shortcodes/include/index.html"><code>include</code> shortcode</a> be now able t' resolve links t' planks as well as resources or files 'n th' file system (the old behavior).</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> T' make th' asset buster mechanism more robust, some internally used stylesheets whar' restructured. This generally should not affect yer plank 'n any negative way.</p>
<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' <ahref="/hugo-theme-relearn/pir/shortcodes/openapi/index.html"><code>openapi</code> shortcode</a> be now able t' resolve links t' resources as well as t' files 'n th' file system (the old behavior). Ye can configure t' generate warnings or errors dur'n build by sett'n <code>openapi.errorlevel</code> t' either <code>warning</code> or <code>error</code> 'n yer <code>hugo.toml</code> if a path can not be resolved.</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> Shorrrtcodes support'n an <code>errorlevel</code> configurat'n can now have overridden values 'n th' <ahref="/hugo-theme-relearn/pir/authoring/frontmatter/reference/index.html">front matter</a> section o' each individual plank.</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' theme now comes wit' its own overridden version o' th' <code>relref</code> shortcode.</p>
<p>While th' usage o' <code>relref</code> be obsolete an' discouraged by Cap'n Hugo fer a while, exist'n installat'ns may use it. In configurat'ns us'n a <code>baseURL</code> wit' a subdirectory, an' hav'n <code>relativeURLs=false</code> (the default) Hugo’s standard <code>relref</code> implementat'n was fail'n.</p>
<p>Th' shortcode be deactivated by default an' can be activated by sett'n</p>
<p><spanclass="badge cstyle warning badge-with-title"><spanclass="badge-title"><iclass="fa-fw fas fa-exclamation-triangle"></i></span><spanclass="badge-content">Break'n</span></span> Th' parameter <code>descript'n</code> 'n yer <code>hugo.toml</code> will now be ignored.</p>
<p>Wit' th' newly introduced unified handl'n o' descript'ns throughout th' theme, th' only place th' old parameter would have been used was yer home plank.</p>
<p>For migrat'n, move th' <code>descript'n</code> parameter o' yer <code>hugo.toml</code> into th' front matter section o' yer home plank.</p>
</li>
<li>
<p><spanclass="badge cstyle warning badge-with-title"><spanclass="badge-title"><iclass="fa-fw fas fa-exclamation-triangle"></i></span><spanclass="badge-content">Break'n</span></span> Search support fer th' <code>json</code> outputformat <ahref="/hugo-theme-relearn/pir/introduction/releasenotes/5/index.html#5-4-0">deprecated 'n 5.4.0</a> was removed.</p>
<p>Change it t' <code>search</code> fer th' homepage 'n yer <code>hugo.toml</code>. See th' docs fer <ahref="/hugo-theme-relearn/pir/configuration/sidebar/search/index.html">detailed configurat'n</a>.</p>
</li>
<li>
<p><spanclass="badge cstyle warning badge-with-title"><spanclass="badge-title"><iclass="fa-fw fas fa-exclamation-triangle"></i></span><spanclass="badge-content">Break'n</span></span> Th' front matter opt'n <code>menuTitle</code><ahref="/hugo-theme-relearn/pir/introduction/releasenotes/5/index.html#5-24-0">deprecated 'n 5.24.0</a> was removed 'n favor fer Hugo’s own <code>linkTitle</code>.</p>
<p>Additionally, if set, <code>linkTitle</code> will now be used instead o' <code>title</code> t' generate th' breadcrumb.</p>
</li>
<li>
<p><spanclass="badge cstyle warning badge-with-title"><spanclass="badge-title"><iclass="fa-fw fas fa-exclamation-triangle"></i></span><spanclass="badge-content">Break'n</span></span> Th' <code>swagger</code> shortcode <ahref="/hugo-theme-relearn/pir/introduction/releasenotes/5/index.html#5-13-0">deprecated 'n 5.13.0</a> was removed 'n favor fer th' <ahref="/hugo-theme-relearn/pir/shortcodes/openapi/index.html"><code>openapi</code> shortcode</a> wit' th' same set o' parameter.</p>
</li>
<li>
<p><spanclass="badge cstyle warning badge-with-title"><spanclass="badge-title"><iclass="fa-fw fas fa-exclamation-triangle"></i></span><spanclass="badge-content">Break'n</span></span> Support fer Internet Explorer 11 was finally dropped.</p>
<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> Wit' th' removal o' support fer Internet Explorer 11, Font Awesome was upgraded t' version 6.5.2.</p>
<p>Ye may experience slight changes fer some ay'cons. In addit'n ye have additional ~1700 ay'cons <ahref="https://fontawesome.com/v6/search?m=free"rel="external"target="_self">t' chose</a> from.</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' <ahref="/hugo-theme-relearn/pir/shortcodes/children/index.html"><code>children</code> shortcode</a> was fixed t' adhere t' its documentat'n, generat'n th' descript'n based on this rule: When no descript'n or summary exists fer th' plank, th' first 70 words o' th' rrrambl'n be taken.</p>
<p>Previously, th' summary erroneously was ignored which now can lead t' different output if ye set <code>description=true</code> as a parameter.</p>
<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' <ahref="/hugo-theme-relearn/pir/shortcodes/include/index.html"><code>include</code> shortcode</a> be now able t' resolve links t' resources as well as t' files 'n th' file system (the old behavior). Ye can configure t' generate warnings or errors dur'n build by sett'n <code>include.errorlevel</code> t' either <code>warning</code> or <code>error</code> 'n yer <code>hugo.toml</code> if a path can not be resolved.</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> Math be now us'ble without enclos'n it 'n a shortcode or Marrrkdown codefence by us'n Hugo’s <ahref="/hugo-theme-relearn/pir/shortcodes/math/index.html#passthrough-configuration">passthrough configurat'n</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> Translat'n into Romanian.
<p>Built with <ahref="https://github.com/McShelby/hugo-theme-relearn"title="love"><iclass="fas fa-heart"></i></a> by <ahref="https://gohugo.io/">Hugo</a></p>
<script>
function githubButtonsScheme(){
var scheme = 'light';
var colorPropertyValue = window.getComputedStyle( document.querySelector( '#R-sidebar' ) ).getPropertyValue( 'background-color' );
var colorValues = colorPropertyValue.match( /\d+/g ).map( function( e ){ return parseInt(e,10); });
<aclass="github-button"href="https://github.com/McShelby/hugo-theme-relearn/archive/main.zip"data-color-scheme="${scheme}"data-icon="octicon-cloud-download"aria-label="Download McShelby/hugo-theme-relearn on GitHub">Download</a>
<aclass="github-button"href="https://github.com/McShelby/hugo-theme-relearn"data-color-scheme="${scheme}"data-icon="octicon-star"data-show-count="true"aria-label="Star McShelby/hugo-theme-relearn on GitHub">Star</a>
<aclass="github-button"href="https://github.com/McShelby/hugo-theme-relearn/fork"data-color-scheme="${scheme}"data-icon="octicon-repo-forked"data-show-count="true"aria-label="Fork McShelby/hugo-theme-relearn on GitHub">Fork</a>