This commit is contained in:
McShelby 2024-04-24 21:05:57 +00:00
parent 9d6e652ad8
commit 1bee5cb1aa
284 changed files with 7432 additions and 8205 deletions
basics/customization

View file

@ -28,19 +28,18 @@
<link href="https://mcshelby.github.io/hugo-theme-relearn/pir/basics/customization/index.html" rel="alternate" hreflang="art-pir">
<link href="/hugo-theme-relearn/basics/customization/index.xml" rel="alternate" type="application/rss+xml" title="Customization :: Hugo Relearn Theme">
<link href="/hugo-theme-relearn/basics/customization/index.print.html" rel="alternate" type="text/html" title="Customization :: Hugo Relearn Theme">
<link href="/hugo-theme-relearn/images/logo.svg?1713987513" rel="icon" type="image/svg+xml">
<!-- https://github.com/filamentgroup/loadCSS/blob/master/README.md#how-to-use -->
<link href="/hugo-theme-relearn/css/fontawesome-all.min.css?1713987513" rel="stylesheet" media="print" onload="this.media='all';this.onload=null;"><noscript><link href="/hugo-theme-relearn/css/fontawesome-all.min.css?1713987513" rel="stylesheet"></noscript>
<link href="/hugo-theme-relearn/css/nucleus.css?1713987513" rel="stylesheet">
<link href="/hugo-theme-relearn/css/auto-complete.css?1713987513" rel="stylesheet" media="print" onload="this.media='all';this.onload=null;"><noscript><link href="/hugo-theme-relearn/css/auto-complete.css?1713987513" rel="stylesheet"></noscript>
<link href="/hugo-theme-relearn/css/perfect-scrollbar.min.css?1713987513" rel="stylesheet">
<link href="/hugo-theme-relearn/css/fonts.css?1713987513" rel="stylesheet" media="print" onload="this.media='all';this.onload=null;"><noscript><link href="/hugo-theme-relearn/css/fonts.css?1713987513" rel="stylesheet"></noscript>
<link href="/hugo-theme-relearn/css/theme.css?1713987513" rel="stylesheet">
<link href="/hugo-theme-relearn/css/theme-relearn-auto.css?1713987513" rel="stylesheet" id="R-variant-style">
<link href="/hugo-theme-relearn/css/chroma-relearn-auto.css?1713987513" rel="stylesheet" id="R-variant-chroma-style">
<link href="/hugo-theme-relearn/css/variant.css?1713987513" rel="stylesheet">
<link href="/hugo-theme-relearn/css/print.css?1713987513" rel="stylesheet" media="print">
<script src="/hugo-theme-relearn/js/variant.js?1713987513"></script>
<link href="/hugo-theme-relearn/images/logo.svg?1713992749" rel="icon" type="image/svg+xml">
<link href="/hugo-theme-relearn/css/fontawesome-all.min.css?1713992749" rel="stylesheet" media="print" onload="this.media='all';this.onload=null;"><noscript><link href="/hugo-theme-relearn/css/fontawesome-all.min.css?1713992749" rel="stylesheet"></noscript>
<link href="/hugo-theme-relearn/css/nucleus.css?1713992749" rel="stylesheet">
<link href="/hugo-theme-relearn/css/auto-complete.css?1713992749" rel="stylesheet" media="print" onload="this.media='all';this.onload=null;"><noscript><link href="/hugo-theme-relearn/css/auto-complete.css?1713992749" rel="stylesheet"></noscript>
<link href="/hugo-theme-relearn/css/perfect-scrollbar.min.css?1713992749" rel="stylesheet">
<link href="/hugo-theme-relearn/css/fonts.css?1713992749" rel="stylesheet" media="print" onload="this.media='all';this.onload=null;"><noscript><link href="/hugo-theme-relearn/css/fonts.css?1713992749" rel="stylesheet"></noscript>
<link href="/hugo-theme-relearn/css/theme.css?1713992749" rel="stylesheet">
<link href="/hugo-theme-relearn/css/theme-relearn-auto.css?1713992749" rel="stylesheet" id="R-variant-style">
<link href="/hugo-theme-relearn/css/chroma-relearn-auto.css?1713992749" rel="stylesheet" id="R-variant-chroma-style">
<link href="/hugo-theme-relearn/css/variant.css?1713992749" rel="stylesheet">
<link href="/hugo-theme-relearn/css/print.css?1713992749" rel="stylesheet" media="print">
<script src="/hugo-theme-relearn/js/variant.js?1713992749"></script>
<script>
window.relearn = window.relearn || {};
window.relearn.relBasePath='..\/..';
@ -76,8 +75,7 @@
</div>
<div class="topbar-button topbar-button-toc" data-content-empty="hide" data-width-s="show" data-width-m="show" data-width-l="show"><button class="topbar-control" onclick="toggleTopbarFlyout(this)" type="button" title="Table of Contents (CTRL&#43;ALT&#43;t)"><i class="fa-fw fas fa-list-alt"></i></button>
<div class="topbar-content">
<div class="topbar-content-wrapper">
<nav class="TableOfContents">
<div class="topbar-content-wrapper"><nav class="TableOfContents">
<ul>
<li><a href="#usage-scenarios">Usage scenarios</a>
<ul>
@ -102,7 +100,7 @@
<li><a href="#react-to-variant-switches-in-javascript">React to Variant Switches in JavaScript</a></li>
<li><a href="#partials">Partials</a></li>
</ul>
</nav>
</nav>
</div>
</div>
</div>
@ -583,8 +581,8 @@
</div>
</div>
<p>You can access this page by either clicking on the magnifier glass or by typing some search term and pressing <code>ENTER</code> inside of the menu&rsquo;s search box .</p>
<p><a href="#R-image-93ffbe309a0fd00ba429fa62a4690209" class="lightbox-link"><img alt="Screenshot of the dedicated search page" class="bg-white border lazy lightbox noshadow figure-image" loading="lazy" src="/hugo-theme-relearn/basics/customization/search_page.png?&width=60pc" style=" height: auto; width: 60pc;"></a>
<a href="javascript:history.back();" class="lightbox-back" id="R-image-93ffbe309a0fd00ba429fa62a4690209"><img alt="Screenshot of the dedicated search page" class="bg-white border lazy lightbox noshadow lightbox-image" loading="lazy" src="/hugo-theme-relearn/basics/customization/search_page.png?&width=60pc"></a></p>
<p><a href="#R-image-cc13db3a09c156da0f2d256761fec448" class="lightbox-link"><img alt="Screenshot of the dedicated search page" class="bg-white border lazy lightbox noshadow figure-image" loading="lazy" src="/hugo-theme-relearn/basics/customization/search_page.png?&width=60pc" style=" height: auto; width: 60pc;"></a>
<a href="javascript:history.back();" class="lightbox-back" id="R-image-cc13db3a09c156da0f2d256761fec448"><img alt="Screenshot of the dedicated search page" class="bg-white border lazy lightbox noshadow lightbox-image" loading="lazy" src="/hugo-theme-relearn/basics/customization/search_page.png?&width=60pc"></a></p>
<div class="box notices cstyle note">
<div class="box-label"><i class="fa-fw fas fa-exclamation-circle"></i> Note</div>
@ -825,8 +823,8 @@ appearance, you will have to configure the <code>landingPageName</code> for the
</div>
</div>
<p>The home button is going to look like this:</p>
<p><a href="#R-image-b6df873fad4989dabdf8037131023070" class="lightbox-link"><img alt="Default Home Button" class="bg-white border lazy lightbox noshadow figure-image" loading="lazy" src="/hugo-theme-relearn/basics/customization/home_button_defaults.png?width=18.75rem" style=" height: auto; width: 18.75rem;"></a>
<a href="javascript:history.back();" class="lightbox-back" id="R-image-b6df873fad4989dabdf8037131023070"><img alt="Default Home Button" class="bg-white border lazy lightbox noshadow lightbox-image" loading="lazy" src="/hugo-theme-relearn/basics/customization/home_button_defaults.png?width=18.75rem"></a></p>
<p><a href="#R-image-d3c5ce5d4b65a3d8c5995724cf032bde" class="lightbox-link"><img alt="Default Home Button" class="bg-white border lazy lightbox noshadow figure-image" loading="lazy" src="/hugo-theme-relearn/basics/customization/home_button_defaults.png?width=18.75rem" style=" height: auto; width: 18.75rem;"></a>
<a href="javascript:history.back();" class="lightbox-back" id="R-image-d3c5ce5d4b65a3d8c5995724cf032bde"><img alt="Default Home Button" class="bg-white border lazy lightbox noshadow lightbox-image" loading="lazy" src="/hugo-theme-relearn/basics/customization/home_button_defaults.png?width=18.75rem"></a></p>
<h2 id="social-media-meta-tags">Social Media Meta Tags</h2>
<p>You can add social media meta tags for the <a href="https://gohugo.io/templates/internal/#open-graph" rel="external" target="_self">Open Graph</a> protocol and <a href="https://gohugo.io/templates/internal/#twitter-cards" rel="external" target="_self">Twitter Cards</a> to your site. These are configured as mentioned in the Hugo docs.</p>
<h2 id="change-the-menu-width">Change the Menu Width</h2>
@ -875,13 +873,13 @@ appearance, you will have to configure the <code>landingPageName</code> for the
<li>
<p>Write the shortcode file <code>layouts/shortcodes/myshortcode.html</code> and add the following line</p>
<div class="tab-panel" data-tab-group="c42cf32a9ae930ba4fa560f41fb3a9df">
<div class="tab-panel" data-tab-group="8fc520454bbab3293e5d262fe6c752aa">
<div class="tab-nav">
<div class="tab-nav-title">&#8203;</div>
<button
data-tab-item="layoutsshortcodesmyshortcodehtml"
class="tab-nav-button tab-panel-style cstyle initial active" tabindex="-1"
onclick="switchTab('c42cf32a9ae930ba4fa560f41fb3a9df','layoutsshortcodesmyshortcodehtml')"
onclick="switchTab('8fc520454bbab3293e5d262fe6c752aa','layoutsshortcodesmyshortcodehtml')"
>
<span class="tab-nav-text">layouts/shortcodes/myshortcode.html</span>
</button>
@ -974,13 +972,13 @@ appearance, you will have to configure the <code>landingPageName</code> for the
<li><code>footer</code>: if called at the end of the HTML <code>body</code> element</li>
</ul>
<div class="tab-panel" data-tab-group="27875b004b5940a1d6449983c74c52b2">
<div class="tab-panel" data-tab-group="7a34dc40fb42d17d9511e6c5460f2120">
<div class="tab-nav">
<div class="tab-nav-title">&#8203;</div>
<button
data-tab-item="layoutspartialsdependenciesmyshortcodehtml"
class="tab-nav-button tab-panel-style cstyle initial active" tabindex="-1"
onclick="switchTab('27875b004b5940a1d6449983c74c52b2','layoutspartialsdependenciesmyshortcodehtml')"
onclick="switchTab('7a34dc40fb42d17d9511e6c5460f2120','layoutspartialsdependenciesmyshortcodehtml')"
>
<span class="tab-nav-text">layouts/partials/dependencies/myshortcode.html</span>
</button>
@ -1120,12 +1118,12 @@ appearance, you will have to configure the <code>landingPageName</code> for the
<script>
var contentLangs=['en'];
</script>
<script src="/hugo-theme-relearn/js/auto-complete.js?1713987513" defer></script>
<script src="/hugo-theme-relearn/js/lunr/lunr.min.js?1713987513" defer></script>
<script src="/hugo-theme-relearn/js/lunr/lunr.stemmer.support.min.js?1713987513" defer></script>
<script src="/hugo-theme-relearn/js/lunr/lunr.multi.min.js?1713987513" defer></script>
<script src="/hugo-theme-relearn/js/lunr/lunr.en.min.js?1713987513" defer></script>
<script src="/hugo-theme-relearn/js/search.js?1713987513" defer></script>
<script src="/hugo-theme-relearn/js/auto-complete.js?1713992749" defer></script>
<script src="/hugo-theme-relearn/js/lunr/lunr.min.js?1713992749" defer></script>
<script src="/hugo-theme-relearn/js/lunr/lunr.stemmer.support.min.js?1713992749" defer></script>
<script src="/hugo-theme-relearn/js/lunr/lunr.multi.min.js?1713992749" defer></script>
<script src="/hugo-theme-relearn/js/lunr/lunr.en.min.js?1713992749" defer></script>
<script src="/hugo-theme-relearn/js/search.js?1713992749" defer></script>
</div>
<div id="R-homelinks" class="default-animation">
<hr class="padding">
@ -1289,13 +1287,13 @@ appearance, you will have to configure the <code>landingPageName</code> for the
setTimeout( githubButtonsInit, 400 );
});
</script>
<script async src="/hugo-theme-relearn/js/github-buttons.js?1713987513"></script>
<script async src="/hugo-theme-relearn/js/github-buttons.js?1713992749"></script>
</div>
</div>
</div>
</aside>
<script src="/hugo-theme-relearn/js/clipboard.min.js?1713987513" defer></script>
<script src="/hugo-theme-relearn/js/perfect-scrollbar.min.js?1713987513" defer></script>
<script src="/hugo-theme-relearn/js/theme.js?1713987513" defer></script>
<script src="/hugo-theme-relearn/js/clipboard.min.js?1713992749" defer></script>
<script src="/hugo-theme-relearn/js/perfect-scrollbar.min.js?1713992749" defer></script>
<script src="/hugo-theme-relearn/js/theme.js?1713992749" defer></script>
</body>
</html>

View file

@ -28,20 +28,19 @@
<link href="https://mcshelby.github.io/hugo-theme-relearn/pir/basics/customization/index.html" rel="alternate" hreflang="art-pir">
<link href="https://mcshelby.github.io/hugo-theme-relearn/basics/customization/index.html" rel="canonical" type="text/html" title="Customization :: Hugo Relearn Theme">
<link href="/hugo-theme-relearn/basics/customization/index.xml" rel="alternate" type="application/rss+xml" title="Customization :: Hugo Relearn Theme">
<link href="/hugo-theme-relearn/images/logo.svg?1713987513" rel="icon" type="image/svg+xml">
<!-- https://github.com/filamentgroup/loadCSS/blob/master/README.md#how-to-use -->
<link href="/hugo-theme-relearn/css/fontawesome-all.min.css?1713987514" rel="stylesheet" media="print" onload="this.media='all';this.onload=null;"><noscript><link href="/hugo-theme-relearn/css/fontawesome-all.min.css?1713987514" rel="stylesheet"></noscript>
<link href="/hugo-theme-relearn/css/nucleus.css?1713987514" rel="stylesheet">
<link href="/hugo-theme-relearn/css/auto-complete.css?1713987514" rel="stylesheet" media="print" onload="this.media='all';this.onload=null;"><noscript><link href="/hugo-theme-relearn/css/auto-complete.css?1713987514" rel="stylesheet"></noscript>
<link href="/hugo-theme-relearn/css/perfect-scrollbar.min.css?1713987514" rel="stylesheet">
<link href="/hugo-theme-relearn/css/fonts.css?1713987514" rel="stylesheet" media="print" onload="this.media='all';this.onload=null;"><noscript><link href="/hugo-theme-relearn/css/fonts.css?1713987514" rel="stylesheet"></noscript>
<link href="/hugo-theme-relearn/css/theme.css?1713987514" rel="stylesheet">
<link href="/hugo-theme-relearn/css/theme-relearn-auto.css?1713987514" rel="stylesheet" id="R-variant-style">
<link href="/hugo-theme-relearn/css/chroma-relearn-auto.css?1713987514" rel="stylesheet" id="R-variant-chroma-style">
<link href="/hugo-theme-relearn/css/variant.css?1713987514" rel="stylesheet">
<link href="/hugo-theme-relearn/css/print.css?1713987514" rel="stylesheet" media="print">
<link href="/hugo-theme-relearn/css/format-print.css?1713987514" rel="stylesheet">
<script src="/hugo-theme-relearn/js/variant.js?1713987514"></script>
<link href="/hugo-theme-relearn/images/logo.svg?1713992749" rel="icon" type="image/svg+xml">
<link href="/hugo-theme-relearn/css/fontawesome-all.min.css?1713992750" rel="stylesheet" media="print" onload="this.media='all';this.onload=null;"><noscript><link href="/hugo-theme-relearn/css/fontawesome-all.min.css?1713992750" rel="stylesheet"></noscript>
<link href="/hugo-theme-relearn/css/nucleus.css?1713992750" rel="stylesheet">
<link href="/hugo-theme-relearn/css/auto-complete.css?1713992750" rel="stylesheet" media="print" onload="this.media='all';this.onload=null;"><noscript><link href="/hugo-theme-relearn/css/auto-complete.css?1713992750" rel="stylesheet"></noscript>
<link href="/hugo-theme-relearn/css/perfect-scrollbar.min.css?1713992750" rel="stylesheet">
<link href="/hugo-theme-relearn/css/fonts.css?1713992750" rel="stylesheet" media="print" onload="this.media='all';this.onload=null;"><noscript><link href="/hugo-theme-relearn/css/fonts.css?1713992750" rel="stylesheet"></noscript>
<link href="/hugo-theme-relearn/css/theme.css?1713992750" rel="stylesheet">
<link href="/hugo-theme-relearn/css/theme-relearn-auto.css?1713992750" rel="stylesheet" id="R-variant-style">
<link href="/hugo-theme-relearn/css/chroma-relearn-auto.css?1713992750" rel="stylesheet" id="R-variant-chroma-style">
<link href="/hugo-theme-relearn/css/variant.css?1713992750" rel="stylesheet">
<link href="/hugo-theme-relearn/css/print.css?1713992750" rel="stylesheet" media="print">
<link href="/hugo-theme-relearn/css/format-print.css?1713992750" rel="stylesheet">
<script src="/hugo-theme-relearn/js/variant.js?1713992750"></script>
<script>
window.relearn = window.relearn || {};
window.relearn.relBasePath='..\/..';
@ -540,8 +539,8 @@
</div>
</div>
<p>You can access this page by either clicking on the magnifier glass or by typing some search term and pressing <code>ENTER</code> inside of the menu&rsquo;s search box .</p>
<p><a href="#R-image-93ffbe309a0fd00ba429fa62a4690209" class="lightbox-link"><img alt="Screenshot of the dedicated search page" class="bg-white border lazy lightbox noshadow figure-image" loading="lazy" src="/hugo-theme-relearn/basics/customization/search_page.png?&width=60pc" style=" height: auto; width: 60pc;"></a>
<a href="javascript:history.back();" class="lightbox-back" id="R-image-93ffbe309a0fd00ba429fa62a4690209"><img alt="Screenshot of the dedicated search page" class="bg-white border lazy lightbox noshadow lightbox-image" loading="lazy" src="/hugo-theme-relearn/basics/customization/search_page.png?&width=60pc"></a></p>
<p><a href="#R-image-cc13db3a09c156da0f2d256761fec448" class="lightbox-link"><img alt="Screenshot of the dedicated search page" class="bg-white border lazy lightbox noshadow figure-image" loading="lazy" src="/hugo-theme-relearn/basics/customization/search_page.png?&width=60pc" style=" height: auto; width: 60pc;"></a>
<a href="javascript:history.back();" class="lightbox-back" id="R-image-cc13db3a09c156da0f2d256761fec448"><img alt="Screenshot of the dedicated search page" class="bg-white border lazy lightbox noshadow lightbox-image" loading="lazy" src="/hugo-theme-relearn/basics/customization/search_page.png?&width=60pc"></a></p>
<div class="box notices cstyle note">
<div class="box-label"><i class="fa-fw fas fa-exclamation-circle"></i> Note</div>
@ -782,8 +781,8 @@ appearance, you will have to configure the <code>landingPageName</code> for the
</div>
</div>
<p>The home button is going to look like this:</p>
<p><a href="#R-image-b6df873fad4989dabdf8037131023070" class="lightbox-link"><img alt="Default Home Button" class="bg-white border lazy lightbox noshadow figure-image" loading="lazy" src="/hugo-theme-relearn/basics/customization/home_button_defaults.png?width=18.75rem" style=" height: auto; width: 18.75rem;"></a>
<a href="javascript:history.back();" class="lightbox-back" id="R-image-b6df873fad4989dabdf8037131023070"><img alt="Default Home Button" class="bg-white border lazy lightbox noshadow lightbox-image" loading="lazy" src="/hugo-theme-relearn/basics/customization/home_button_defaults.png?width=18.75rem"></a></p>
<p><a href="#R-image-d3c5ce5d4b65a3d8c5995724cf032bde" class="lightbox-link"><img alt="Default Home Button" class="bg-white border lazy lightbox noshadow figure-image" loading="lazy" src="/hugo-theme-relearn/basics/customization/home_button_defaults.png?width=18.75rem" style=" height: auto; width: 18.75rem;"></a>
<a href="javascript:history.back();" class="lightbox-back" id="R-image-d3c5ce5d4b65a3d8c5995724cf032bde"><img alt="Default Home Button" class="bg-white border lazy lightbox noshadow lightbox-image" loading="lazy" src="/hugo-theme-relearn/basics/customization/home_button_defaults.png?width=18.75rem"></a></p>
<h2 id="social-media-meta-tags">Social Media Meta Tags</h2>
<p>You can add social media meta tags for the <a href="https://gohugo.io/templates/internal/#open-graph" rel="external" target="_self">Open Graph</a> protocol and <a href="https://gohugo.io/templates/internal/#twitter-cards" rel="external" target="_self">Twitter Cards</a> to your site. These are configured as mentioned in the Hugo docs.</p>
<h2 id="change-the-menu-width">Change the Menu Width</h2>
@ -832,13 +831,13 @@ appearance, you will have to configure the <code>landingPageName</code> for the
<li>
<p>Write the shortcode file <code>layouts/shortcodes/myshortcode.html</code> and add the following line</p>
<div class="tab-panel" data-tab-group="c42cf32a9ae930ba4fa560f41fb3a9df">
<div class="tab-panel" data-tab-group="8fc520454bbab3293e5d262fe6c752aa">
<div class="tab-nav">
<div class="tab-nav-title">&#8203;</div>
<button
data-tab-item="layoutsshortcodesmyshortcodehtml"
class="tab-nav-button tab-panel-style cstyle initial active" tabindex="-1"
onclick="switchTab('c42cf32a9ae930ba4fa560f41fb3a9df','layoutsshortcodesmyshortcodehtml')"
onclick="switchTab('8fc520454bbab3293e5d262fe6c752aa','layoutsshortcodesmyshortcodehtml')"
>
<span class="tab-nav-text">layouts/shortcodes/myshortcode.html</span>
</button>
@ -931,13 +930,13 @@ appearance, you will have to configure the <code>landingPageName</code> for the
<li><code>footer</code>: if called at the end of the HTML <code>body</code> element</li>
</ul>
<div class="tab-panel" data-tab-group="27875b004b5940a1d6449983c74c52b2">
<div class="tab-panel" data-tab-group="7a34dc40fb42d17d9511e6c5460f2120">
<div class="tab-nav">
<div class="tab-nav-title">&#8203;</div>
<button
data-tab-item="layoutspartialsdependenciesmyshortcodehtml"
class="tab-nav-button tab-panel-style cstyle initial active" tabindex="-1"
onclick="switchTab('27875b004b5940a1d6449983c74c52b2','layoutspartialsdependenciesmyshortcodehtml')"
onclick="switchTab('7a34dc40fb42d17d9511e6c5460f2120','layoutspartialsdependenciesmyshortcodehtml')"
>
<span class="tab-nav-text">layouts/partials/dependencies/myshortcode.html</span>
</button>
@ -1010,8 +1009,8 @@ appearance, you will have to configure the <code>landingPageName</code> for the
</div>
</main>
</div>
<script src="/hugo-theme-relearn/js/clipboard.min.js?1713987514" defer></script>
<script src="/hugo-theme-relearn/js/perfect-scrollbar.min.js?1713987514" defer></script>
<script src="/hugo-theme-relearn/js/theme.js?1713987514" defer></script>
<script src="/hugo-theme-relearn/js/clipboard.min.js?1713992750" defer></script>
<script src="/hugo-theme-relearn/js/perfect-scrollbar.min.js?1713992750" defer></script>
<script src="/hugo-theme-relearn/js/theme.js?1713992750" defer></script>
</body>
</html>