2023-11-20 23:54:13 +00:00
<!DOCTYPE html>
< html lang = "en" dir = "ltr" >
< head >
< meta charset = "utf-8" >
< meta name = "viewport" content = "height=device-height, width=device-width, initial-scale=1.0, minimum-scale=1.0" >
2024-04-22 20:45:04 +00:00
< meta name = "generator" content = "Hugo 0.125.3" >
2024-04-07 21:49:57 +00:00
< meta name = "generator" content = "Relearn 5.27.0+tip" >
2023-11-20 23:54:13 +00:00
< meta name = "description" content = "Documentation for Hugo Relearn Theme" >
< meta name = "author" content = "Sören Weber" >
< meta name = "twitter:card" content = "summary_large_image" >
2024-02-24 13:03:50 +00:00
< meta name = "twitter:image" content = "https://mcshelby.github.io/hugo-theme-relearn/images/hero.png" >
2023-11-20 23:54:13 +00:00
< meta name = "twitter:title" content = "Branding :: Hugo Relearn Theme" >
< meta name = "twitter:description" content = "Documentation for Hugo Relearn Theme" >
2024-04-07 13:13:19 +00:00
< meta property = "og:url" content = "https://mcshelby.github.io/hugo-theme-relearn/basics/branding/index.html" >
< meta property = "og:site_name" content = "Hugo Relearn Theme" >
2023-11-20 23:54:13 +00:00
< meta property = "og:title" content = "Branding :: Hugo Relearn Theme" >
2024-04-12 15:30:57 +00:00
< meta property = "og:description" content = "The Relearn theme provides configuration options to change your site & amp ; rsquo ; s colors , favicon and logo . This allows you to easily align your site visuals to your desired style . Most of these options are exposed through so called color variants .
2024-04-07 13:13:19 +00:00
A color variant lets you customize various visual effects of your site like almost any color, used fonts, color schemes of print, syntax highligtning, Mermaid and the OpenAPI shortcode, etc. It contains of a CSS file and optional configuration options in your hugo.">
< meta property = "og:locale" content = "en" >
2023-11-20 23:54:13 +00:00
< meta property = "og:type" content = "website" >
2024-02-24 13:03:50 +00:00
< meta property = "og:image" content = "https://mcshelby.github.io/hugo-theme-relearn/images/hero.png" >
2023-11-20 23:54:13 +00:00
< title > Branding :: Hugo Relearn Theme< / title >
2024-02-24 13:03:50 +00:00
< link href = "https://mcshelby.github.io/hugo-theme-relearn/basics/branding/index.html" rel = "alternate" hreflang = "x-default" >
< link href = "https://mcshelby.github.io/hugo-theme-relearn/basics/branding/index.html" rel = "alternate" hreflang = "en" >
< link href = "https://mcshelby.github.io/hugo-theme-relearn/pir/basics/branding/index.html" rel = "alternate" hreflang = "art-pir" >
< link href = "https://mcshelby.github.io/hugo-theme-relearn/basics/branding/index.html" rel = "canonical" type = "text/html" title = "Branding :: Hugo Relearn Theme" >
2024-02-24 12:50:21 +00:00
< link href = "/hugo-theme-relearn/basics/branding/index.xml" rel = "alternate" type = "application/rss+xml" title = "Branding :: Hugo Relearn Theme" >
2024-04-23 19:53:23 +00:00
< link href = "/hugo-theme-relearn/images/logo.svg?1713901996" rel = "icon" type = "image/svg+xml" >
2023-11-20 23:54:13 +00:00
<!-- https://github.com/filamentgroup/loadCSS/blob/master/README.md#how - to - use -->
2024-04-23 19:53:23 +00:00
< link href = "/hugo-theme-relearn/css/fontawesome-all.min.css?1713901997" rel = "stylesheet" media = "print" onload = "this.media='all';this.onload=null;" > < noscript > < link href = "/hugo-theme-relearn/css/fontawesome-all.min.css?1713901997" rel = "stylesheet" > < / noscript >
< link href = "/hugo-theme-relearn/css/nucleus.css?1713901997" rel = "stylesheet" >
< link href = "/hugo-theme-relearn/css/auto-complete.css?1713901997" rel = "stylesheet" media = "print" onload = "this.media='all';this.onload=null;" > < noscript > < link href = "/hugo-theme-relearn/css/auto-complete.css?1713901997" rel = "stylesheet" > < / noscript >
< link href = "/hugo-theme-relearn/css/perfect-scrollbar.min.css?1713901997" rel = "stylesheet" >
< link href = "/hugo-theme-relearn/css/fonts.css?1713901997" rel = "stylesheet" media = "print" onload = "this.media='all';this.onload=null;" > < noscript > < link href = "/hugo-theme-relearn/css/fonts.css?1713901997" rel = "stylesheet" > < / noscript >
< link href = "/hugo-theme-relearn/css/theme.css?1713901997" rel = "stylesheet" >
< link href = "/hugo-theme-relearn/css/theme-relearn-auto.css?1713901997" rel = "stylesheet" id = "R-variant-style" >
< link href = "/hugo-theme-relearn/css/chroma-relearn-auto.css?1713901997" rel = "stylesheet" id = "R-variant-chroma-style" >
< link href = "/hugo-theme-relearn/css/variant.css?1713901997" rel = "stylesheet" >
< link href = "/hugo-theme-relearn/css/print.css?1713901997" rel = "stylesheet" media = "print" >
< link href = "/hugo-theme-relearn/css/format-print.css?1713901997" rel = "stylesheet" >
< script src = "/hugo-theme-relearn/js/variant.js?1713901997" > < / script >
2024-03-16 13:44:28 +00:00
< script >
2023-11-20 23:54:13 +00:00
window.relearn = window.relearn || {};
2024-03-18 20:59:19 +00:00
window.relearn.relBasePath='..\/..';
window.relearn.relBaseUri='..\/..\/..';
window.relearn.absBaseUri='https:\/\/mcshelby.github.io\/hugo-theme-relearn';
2024-03-16 12:40:13 +00:00
window.index_js_url="/hugo-theme-relearn/index.search.js";
2023-11-20 23:54:13 +00:00
// variant stuff
2024-04-19 06:38:17 +00:00
window.variants & & variants.init( [ 'relearn-auto', 'relearn-light', 'relearn-dark', 'relearn-bright', 'zen-auto', 'zen-light', 'zen-dark', 'retro-auto', 'neon', 'learn', 'blue', 'green', 'red' ] );
2023-11-20 23:54:13 +00:00
// translations
window.T_Copy_to_clipboard = `Copy to clipboard`;
window.T_Copied_to_clipboard = `Copied to clipboard!`;
window.T_Copy_link_to_clipboard = `Copy link to clipboard`;
window.T_Link_copied_to_clipboard = `Copied link to clipboard!`;
window.T_Reset_view = `Reset view`;
window.T_View_reset = `View reset!`;
window.T_No_results_found = `No results found for "{0}"`;
window.T_N_results_found = `{1} results found for "{0}"`;
< / script >
< style >
#R-body img.bg-white {
background-color: white;
}
< / style >
< / head >
2024-02-24 12:50:21 +00:00
< body class = "mobile-support print disableInlineCopyToClipboard" data-url = "/hugo-theme-relearn/basics/branding/index.html" >
2023-11-20 23:54:13 +00:00
< div id = "R-body" class = "default-animation" >
< div id = "R-body-overlay" > < / div >
< nav id = "R-topbar" >
< div class = "topbar-wrapper" >
< div class = "topbar-sidebar-divider" > < / div >
< div class = "topbar-area topbar-area-start" data-area = "start" >
2023-12-05 07:41:41 +00:00
< div class = "topbar-button topbar-button-sidebar" data-content-empty = "disable" data-width-s = "show" data-width-m = "hide" data-width-l = "hide" > < button class = "topbar-control" onclick = "toggleNav()" type = "button" title = "Menu (CTRL+ALT+n)" > < i class = "fa-fw fas fa-bars" > < / i > < / button >
2023-11-20 23:54:13 +00:00
< / div >
< / div >
< ol class = "topbar-breadcrumbs breadcrumbs highlightable" itemscope itemtype = "http://schema.org/BreadcrumbList" > < li
2024-02-24 12:50:21 +00:00
itemscope itemtype="https://schema.org/ListItem" itemprop="itemListElement">< a itemprop = "item" href = "/hugo-theme-relearn/basics/index.html" > < span itemprop = "name" > Basics< / span > < / a > < meta itemprop = "position" content = "1" > > < / li > < li
2023-11-20 23:54:13 +00:00
itemscope itemtype="https://schema.org/ListItem" itemprop="itemListElement">< span itemprop = "name" > Branding< / span > < meta itemprop = "position" content = "2" > < / li >
< / ol >
< div class = "topbar-area topbar-area-end" data-area = "end" >
2024-04-07 19:58:38 +00:00
< div class = "topbar-button topbar-button-prev" data-content-empty = "disable" data-width-s = "show" data-width-m = "show" data-width-l = "show" > < a class = "topbar-control" href = "/hugo-theme-relearn/basics/configuration/index.html" title = "Configuration (🡐)" > < i class = "fa-fw fas fa-chevron-left" > < / i > < / a >
< / div >
< div class = "topbar-button topbar-button-next" data-content-empty = "disable" data-width-s = "show" data-width-m = "show" data-width-l = "show" > < a class = "topbar-control" href = "/hugo-theme-relearn/basics/customization/index.html" title = "Customization (🡒)" > < i class = "fa-fw fas fa-chevron-right" > < / i > < / a >
< / div >
2023-11-20 23:54:13 +00:00
< / div >
< / div >
< / nav >
< div id = "R-main-overlay" > < / div >
< main id = "R-body-inner" class = "highlightable default" tabindex = "-1" >
< div class = "flex-block-wrapper" >
< article class = "default" >
< header class = "headline" >
< / header >
2024-04-07 19:58:38 +00:00
2023-11-20 23:54:13 +00:00
< h1 id = "branding" > Branding< / h1 >
2024-04-12 15:30:57 +00:00
< p > The Relearn theme provides configuration options to change your site’ s colors, favicon and logo. This allows you to easily align your site visuals to your desired style. Most of these options are exposed through so called color variants.< / p >
2023-11-29 23:15:02 +00:00
< p > A color variant lets you customize various visual effects of your site like almost any color, used fonts, color schemes of print, syntax highligtning, Mermaid and the OpenAPI shortcode, etc. It contains of a CSS file and optional configuration options in your < code > hugo.toml< / code > .< / p >
2024-02-24 12:50:21 +00:00
< p > The Relearn theme ships with a wide set of different color variants. You can use them as-is, copy them over and use them as a starting point for your customizations or just create completely new variants unique to your site. The < a href = "/hugo-theme-relearn/basics/generator/index.html" > interactive variant generator< / a > may help you with this task.< / p >
2023-11-29 23:15:02 +00:00
< p > Once configured in your < code > hugo.toml< / code > , you can select them with the variant selector at the bottom of the menu.< / p >
2023-11-20 23:54:13 +00:00
< h2 id = "theme-variant" > Change the Variant (Simple)< / h2 >
< h3 id = "single-variant" > Single Variant< / h3 >
< p > Set the < code > themeVariant< / code > value to the name of your theme file. That’ s it! Your site will be displayed in this variant only.< / p >
2023-11-26 19:34:38 +00:00
2024-03-02 10:05:50 +00:00
< div class = "tab-panel" data-tab-group = "config-code" >
2023-11-26 19:34:38 +00:00
< div class = "tab-nav" >
2024-03-02 10:05:50 +00:00
< div class = "tab-nav-title" > hugo.< / div >
2023-11-26 19:34:38 +00:00
< button
2024-03-02 10:05:50 +00:00
data-tab-item="toml"
2023-11-26 19:34:38 +00:00
class="tab-nav-button tab-panel-style cstyle initial active" tabindex="-1"
2024-03-02 10:05:50 +00:00
onclick="switchTab('config-code','toml')"
>
< span class = "tab-nav-text" > toml< / span >
< / button >
< button
data-tab-item="yaml"
class="tab-nav-button tab-panel-style cstyle initial"
onclick="switchTab('config-code','yaml')"
2023-11-26 19:34:38 +00:00
>
2024-03-02 10:05:50 +00:00
< span class = "tab-nav-text" > yaml< / span >
< / button >
< button
data-tab-item="json"
class="tab-nav-button tab-panel-style cstyle initial"
onclick="switchTab('config-code','json')"
>
< span class = "tab-nav-text" > json< / span >
2023-11-26 19:34:38 +00:00
< / button >
< / div >
< div class = "tab-content-container" >
< div
2024-03-02 10:05:50 +00:00
data-tab-item="toml"
2023-11-26 19:34:38 +00:00
class="tab-content tab-panel-style cstyle initial active">
< div class = "tab-content-text" >
2024-03-11 20:44:09 +00:00
< div class = "highlight wrap-code" > < pre tabindex = "0" class = "chroma" > < code class = "language-toml" data-lang = "toml" > < span class = "line" > < span class = "cl" > < span class = "p" > [< / span > < span class = "nx" > params< / span > < span class = "p" > ]< / span >
2024-03-02 10:05:50 +00:00
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "nx" > themeVariant< / span > < span class = "p" > =< / span > < span class = "s1" > ' relearn-light' < / span > < / span > < / span > < / code > < / pre > < / div > < / div >
< / div >
< div
data-tab-item="yaml"
class="tab-content tab-panel-style cstyle initial">
< div class = "tab-content-text" >
2024-03-11 20:44:09 +00:00
< div class = "highlight wrap-code" > < pre tabindex = "0" class = "chroma" > < code class = "language-yaml" data-lang = "yaml" > < span class = "line" > < span class = "cl" > < span class = "nt" > params< / span > < span class = "p" > :< / span > < span class = "w" >
2024-03-02 10:05:50 +00:00
< / span > < / span > < / span > < span class = "line" > < span class = "cl" > < span class = "w" > < / span > < span class = "nt" > themeVariant< / span > < span class = "p" > :< / span > < span class = "w" > < / span > < span class = "l" > relearn-light< / span > < / span > < / span > < / code > < / pre > < / div > < / div >
< / div >
< div
data-tab-item="json"
class="tab-content tab-panel-style cstyle initial">
< div class = "tab-content-text" >
2024-03-11 20:44:09 +00:00
< div class = "highlight wrap-code" > < pre tabindex = "0" class = "chroma" > < code class = "language-json" data-lang = "json" > < span class = "line" > < span class = "cl" > < span class = "p" > {< / span >
2024-03-02 10:05:50 +00:00
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "nt" > " params" < / span > < span class = "p" > :< / span > < span class = "p" > {< / span >
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "nt" > " themeVariant" < / span > < span class = "p" > :< / span > < span class = "s2" > " relearn-light" < / span >
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "p" > }< / span >
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "p" > }< / span > < / span > < / span > < / code > < / pre > < / div > < / div >
2023-11-26 19:34:38 +00:00
< / div >
< / div >
< / div >
2024-03-02 10:05:50 +00:00
2023-11-20 23:54:13 +00:00
< div class = "box notices cstyle note" >
< div class = "box-label" > < i class = "fa-fw fas fa-exclamation-circle" > < / i > Note< / div >
< div class = "box-content" >
2024-04-19 06:38:17 +00:00
< p > Your theme variant file must reside in your site’ s < code > assets/css< / code > directory and the file name must start with < code > theme-< / code > and end in < code > .css< / code > . In the above example, the path of your theme file must be < code > assets/css/theme-relearn-light.css< / code > .< / p >
< p > If you want to make changes to a shipped color variant, create a copy in your site’ s < code > assets/css< / code > directory. Don’ t edit the file in the theme’ s directory!< / p >
2023-11-20 23:54:13 +00:00
< / div >
< / div >
< h3 id = "multiple-variants" > Multiple Variants< / h3 >
< p > You can also set multiple variants. In this case, the first variant is the default chosen on first view and a variant selector will be shown in the menu footer if the array contains more than one entry.< / p >
2023-11-26 19:34:38 +00:00
2024-03-02 10:05:50 +00:00
< div class = "tab-panel" data-tab-group = "config-code" >
2023-11-26 19:34:38 +00:00
< div class = "tab-nav" >
2024-03-02 10:05:50 +00:00
< div class = "tab-nav-title" > hugo.< / div >
2023-11-26 19:34:38 +00:00
< button
2024-03-02 10:05:50 +00:00
data-tab-item="toml"
2023-11-26 19:34:38 +00:00
class="tab-nav-button tab-panel-style cstyle initial active" tabindex="-1"
2024-03-02 10:05:50 +00:00
onclick="switchTab('config-code','toml')"
>
< span class = "tab-nav-text" > toml< / span >
< / button >
< button
data-tab-item="yaml"
class="tab-nav-button tab-panel-style cstyle initial"
onclick="switchTab('config-code','yaml')"
>
< span class = "tab-nav-text" > yaml< / span >
< / button >
< button
data-tab-item="json"
class="tab-nav-button tab-panel-style cstyle initial"
onclick="switchTab('config-code','json')"
2023-11-26 19:34:38 +00:00
>
2024-03-02 10:05:50 +00:00
< span class = "tab-nav-text" > json< / span >
2023-11-26 19:34:38 +00:00
< / button >
< / div >
< div class = "tab-content-container" >
< div
2024-03-02 10:05:50 +00:00
data-tab-item="toml"
2023-11-26 19:34:38 +00:00
class="tab-content tab-panel-style cstyle initial active">
< div class = "tab-content-text" >
2024-03-11 20:44:09 +00:00
< div class = "highlight wrap-code" > < pre tabindex = "0" class = "chroma" > < code class = "language-toml" data-lang = "toml" > < span class = "line" > < span class = "cl" > < span class = "p" > [< / span > < span class = "nx" > params< / span > < span class = "p" > ]< / span >
2024-03-02 10:05:50 +00:00
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "nx" > themeVariant< / span > < span class = "p" > =< / span > < span class = "p" > [< / span > < span class = "s1" > ' relearn-light' < / span > < span class = "p" > ,< / span > < span class = "s1" > ' relearn-dark' < / span > < span class = "p" > ]< / span > < / span > < / span > < / code > < / pre > < / div > < / div >
< / div >
< div
data-tab-item="yaml"
class="tab-content tab-panel-style cstyle initial">
< div class = "tab-content-text" >
2024-03-11 20:44:09 +00:00
< div class = "highlight wrap-code" > < pre tabindex = "0" class = "chroma" > < code class = "language-yaml" data-lang = "yaml" > < span class = "line" > < span class = "cl" > < span class = "nt" > params< / span > < span class = "p" > :< / span > < span class = "w" >
2024-03-02 10:05:50 +00:00
< / span > < / span > < / span > < span class = "line" > < span class = "cl" > < span class = "w" > < / span > < span class = "nt" > themeVariant< / span > < span class = "p" > :< / span > < span class = "w" >
< / span > < / span > < / span > < span class = "line" > < span class = "cl" > < span class = "w" > < / span > - < span class = "l" > relearn-light< / span > < span class = "w" >
< / span > < / span > < / span > < span class = "line" > < span class = "cl" > < span class = "w" > < / span > - < span class = "l" > relearn-dark< / span > < / span > < / span > < / code > < / pre > < / div > < / div >
< / div >
< div
data-tab-item="json"
class="tab-content tab-panel-style cstyle initial">
< div class = "tab-content-text" >
2024-03-11 20:44:09 +00:00
< div class = "highlight wrap-code" > < pre tabindex = "0" class = "chroma" > < code class = "language-json" data-lang = "json" > < span class = "line" > < span class = "cl" > < span class = "p" > {< / span >
2024-03-02 10:05:50 +00:00
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "nt" > " params" < / span > < span class = "p" > :< / span > < span class = "p" > {< / span >
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "nt" > " themeVariant" < / span > < span class = "p" > :< / span > < span class = "p" > [< / span >
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "s2" > " relearn-light" < / span > < span class = "p" > ,< / span >
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "s2" > " relearn-dark" < / span >
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "p" > ]< / span >
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "p" > }< / span >
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "p" > }< / span > < / span > < / span > < / code > < / pre > < / div > < / div >
2023-11-26 19:34:38 +00:00
< / div >
< / div >
< / div >
2024-03-02 10:05:50 +00:00
2023-11-20 23:54:13 +00:00
< div class = "box notices cstyle tip" >
< div class = "box-label" > < i class = "fa-fw fas fa-lightbulb" > < / i > Tip< / div >
< div class = "box-content" >
2024-04-12 15:30:57 +00:00
< p > The theme provides an advanced configuration mode, combining the functionality for multiple variants with the below possibilities of adjusting to your OS settings and syntax highlighting and even more!< / p >
2024-02-24 12:50:21 +00:00
< p > Although all options documented here are still working, the advanced configuration options are the recommended way to configure your color variants. < a href = "/hugo-theme-relearn/basics/branding/index.html#theme-variant-advanced" > See below< / a > .< / p >
2023-11-20 23:54:13 +00:00
< / div >
< / div >
< h2 id = "adjust-to-os-settings" > Adjust to OS Settings< / h2 >
2023-11-23 00:05:57 +00:00
< p > You can also cause the site to adjust to your OS settings for light/dark mode. Just set the < code > themeVariant< / code > to < code > auto< / code > to become an auto mode variant. That’ s it.< / p >
2023-11-20 23:54:13 +00:00
< p > You can use the < code > auto< / code > value with the single or multiple variants option. If you are using multiple variants, you can drop < code > auto< / code > at any position in the option’ s array, but usually it makes sense to set it in the first position and make it the default.< / p >
2023-11-26 19:34:38 +00:00
2024-03-02 10:05:50 +00:00
< div class = "tab-panel" data-tab-group = "config-code" >
2023-11-26 19:34:38 +00:00
< div class = "tab-nav" >
2024-03-02 10:05:50 +00:00
< div class = "tab-nav-title" > hugo.< / div >
2023-11-26 19:34:38 +00:00
< button
2024-03-02 10:05:50 +00:00
data-tab-item="toml"
2023-11-26 19:34:38 +00:00
class="tab-nav-button tab-panel-style cstyle initial active" tabindex="-1"
2024-03-02 10:05:50 +00:00
onclick="switchTab('config-code','toml')"
2023-11-26 19:34:38 +00:00
>
2024-03-02 10:05:50 +00:00
< span class = "tab-nav-text" > toml< / span >
< / button >
< button
data-tab-item="yaml"
class="tab-nav-button tab-panel-style cstyle initial"
onclick="switchTab('config-code','yaml')"
>
< span class = "tab-nav-text" > yaml< / span >
< / button >
< button
data-tab-item="json"
class="tab-nav-button tab-panel-style cstyle initial"
onclick="switchTab('config-code','json')"
>
< span class = "tab-nav-text" > json< / span >
2023-11-26 19:34:38 +00:00
< / button >
< / div >
< div class = "tab-content-container" >
< div
2024-03-02 10:05:50 +00:00
data-tab-item="toml"
2023-11-26 19:34:38 +00:00
class="tab-content tab-panel-style cstyle initial active">
< div class = "tab-content-text" >
2024-03-11 20:44:09 +00:00
< div class = "highlight wrap-code" > < pre tabindex = "0" class = "chroma" > < code class = "language-toml" data-lang = "toml" > < span class = "line" > < span class = "cl" > < span class = "p" > [< / span > < span class = "nx" > params< / span > < span class = "p" > ]< / span >
2024-03-02 10:05:50 +00:00
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "nx" > themeVariant< / span > < span class = "p" > =< / span > < span class = "p" > [< / span > < span class = "s1" > ' auto' < / span > < span class = "p" > ,< / span > < span class = "s1" > ' red' < / span > < span class = "p" > ]< / span > < / span > < / span > < / code > < / pre > < / div > < / div >
< / div >
< div
data-tab-item="yaml"
class="tab-content tab-panel-style cstyle initial">
< div class = "tab-content-text" >
2024-03-11 20:44:09 +00:00
< div class = "highlight wrap-code" > < pre tabindex = "0" class = "chroma" > < code class = "language-yaml" data-lang = "yaml" > < span class = "line" > < span class = "cl" > < span class = "nt" > params< / span > < span class = "p" > :< / span > < span class = "w" >
2024-03-02 10:05:50 +00:00
< / span > < / span > < / span > < span class = "line" > < span class = "cl" > < span class = "w" > < / span > < span class = "nt" > themeVariant< / span > < span class = "p" > :< / span > < span class = "w" >
< / span > < / span > < / span > < span class = "line" > < span class = "cl" > < span class = "w" > < / span > - < span class = "l" > auto< / span > < span class = "w" >
< / span > < / span > < / span > < span class = "line" > < span class = "cl" > < span class = "w" > < / span > - < span class = "l" > red< / span > < / span > < / span > < / code > < / pre > < / div > < / div >
< / div >
< div
data-tab-item="json"
class="tab-content tab-panel-style cstyle initial">
< div class = "tab-content-text" >
2024-03-11 20:44:09 +00:00
< div class = "highlight wrap-code" > < pre tabindex = "0" class = "chroma" > < code class = "language-json" data-lang = "json" > < span class = "line" > < span class = "cl" > < span class = "p" > {< / span >
2024-03-02 10:05:50 +00:00
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "nt" > " params" < / span > < span class = "p" > :< / span > < span class = "p" > {< / span >
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "nt" > " themeVariant" < / span > < span class = "p" > :< / span > < span class = "p" > [< / span >
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "s2" > " auto" < / span > < span class = "p" > ,< / span >
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "s2" > " red" < / span >
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "p" > ]< / span >
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "p" > }< / span >
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "p" > }< / span > < / span > < / span > < / code > < / pre > < / div > < / div >
2023-11-26 19:34:38 +00:00
< / div >
< / div >
2024-03-02 10:05:50 +00:00
< / div >
< p > If you don’ t configure anything else, the theme will default to use < code > relearn-light< / code > for light mode and < code > relearn-dark< / code > for dark mode. These defaults are overwritten by the first two non-auto options of your < code > themeVariant< / code > option if present.< / p >
2023-11-20 23:54:13 +00:00
< p > In the above example, you would end with < code > red< / code > for light mode and the default of < code > relearn-dark< / code > for dark mode.< / p >
< p > If you don’ t like that behavior, you can explicitly set < code > themeVariantAuto< / code > . The first entry in the array is the color variant for light mode, the second for dark mode.< / p >
2023-11-26 19:34:38 +00:00
2024-03-02 10:05:50 +00:00
< div class = "tab-panel" data-tab-group = "config-code" >
2023-11-26 19:34:38 +00:00
< div class = "tab-nav" >
2024-03-02 10:05:50 +00:00
< div class = "tab-nav-title" > hugo.< / div >
2023-11-26 19:34:38 +00:00
< button
2024-03-02 10:05:50 +00:00
data-tab-item="toml"
2023-11-26 19:34:38 +00:00
class="tab-nav-button tab-panel-style cstyle initial active" tabindex="-1"
2024-03-02 10:05:50 +00:00
onclick="switchTab('config-code','toml')"
>
< span class = "tab-nav-text" > toml< / span >
< / button >
< button
data-tab-item="yaml"
class="tab-nav-button tab-panel-style cstyle initial"
onclick="switchTab('config-code','yaml')"
>
< span class = "tab-nav-text" > yaml< / span >
< / button >
< button
data-tab-item="json"
class="tab-nav-button tab-panel-style cstyle initial"
onclick="switchTab('config-code','json')"
2023-11-26 19:34:38 +00:00
>
2024-03-02 10:05:50 +00:00
< span class = "tab-nav-text" > json< / span >
2023-11-26 19:34:38 +00:00
< / button >
< / div >
< div class = "tab-content-container" >
< div
2024-03-02 10:05:50 +00:00
data-tab-item="toml"
2023-11-26 19:34:38 +00:00
class="tab-content tab-panel-style cstyle initial active">
< div class = "tab-content-text" >
2024-03-11 20:44:09 +00:00
< div class = "highlight wrap-code" > < pre tabindex = "0" class = "chroma" > < code class = "language-toml" data-lang = "toml" > < span class = "line" > < span class = "cl" > < span class = "p" > [< / span > < span class = "nx" > params< / span > < span class = "p" > ]< / span >
2024-03-02 10:05:50 +00:00
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "nx" > themeVariantAuto< / span > < span class = "p" > =< / span > < span class = "p" > [< / span > < span class = "s1" > ' learn' < / span > < span class = "p" > ,< / span > < span class = "s1" > ' neon' < / span > < span class = "p" > ]< / span > < / span > < / span > < / code > < / pre > < / div > < / div >
< / div >
< div
data-tab-item="yaml"
class="tab-content tab-panel-style cstyle initial">
< div class = "tab-content-text" >
2024-03-11 20:44:09 +00:00
< div class = "highlight wrap-code" > < pre tabindex = "0" class = "chroma" > < code class = "language-yaml" data-lang = "yaml" > < span class = "line" > < span class = "cl" > < span class = "nt" > params< / span > < span class = "p" > :< / span > < span class = "w" >
2024-03-02 10:05:50 +00:00
< / span > < / span > < / span > < span class = "line" > < span class = "cl" > < span class = "w" > < / span > < span class = "nt" > themeVariantAuto< / span > < span class = "p" > :< / span > < span class = "w" >
< / span > < / span > < / span > < span class = "line" > < span class = "cl" > < span class = "w" > < / span > - < span class = "l" > learn< / span > < span class = "w" >
< / span > < / span > < / span > < span class = "line" > < span class = "cl" > < span class = "w" > < / span > - < span class = "l" > neon< / span > < / span > < / span > < / code > < / pre > < / div > < / div >
< / div >
< div
data-tab-item="json"
class="tab-content tab-panel-style cstyle initial">
< div class = "tab-content-text" >
2024-03-11 20:44:09 +00:00
< div class = "highlight wrap-code" > < pre tabindex = "0" class = "chroma" > < code class = "language-json" data-lang = "json" > < span class = "line" > < span class = "cl" > < span class = "p" > {< / span >
2024-03-02 10:05:50 +00:00
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "nt" > " params" < / span > < span class = "p" > :< / span > < span class = "p" > {< / span >
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "nt" > " themeVariantAuto" < / span > < span class = "p" > :< / span > < span class = "p" > [< / span >
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "s2" > " learn" < / span > < span class = "p" > ,< / span >
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "s2" > " neon" < / span >
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "p" > ]< / span >
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "p" > }< / span >
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "p" > }< / span > < / span > < / span > < / code > < / pre > < / div > < / div >
2023-11-26 19:34:38 +00:00
< / div >
< / div >
2024-03-02 10:05:50 +00:00
< / div >
< h2 id = "change-the-favicon" > Change the Favicon< / h2 >
2023-11-20 23:54:13 +00:00
< p > If your favicon is a SVG, PNG or ICO, just drop your image in your site’ s < code > static/images/< / code > directory and name it < code > favicon.svg< / code > , < code > favicon.png< / code > or < code > favicon.ico< / code > respectively.< / p >
< p > If you want to adjust your favicon according to your OS settings for light/dark mode, add the image files < code > static/images/favicon-light.svg< / code > and < code > static/images/favicon-dark.svg< / code > to your site’ s directory, respectively, corresponding to your file format. In case some of the files are missing, the theme falls back to < code > favicon.svg< / code > for each missing file. All supplied favicons must be of the same file format.< / p >
< p > If no favicon file is found, the theme will lookup the alternative filename < code > logo< / code > in the same location and will repeat the search for the list of supported file types.< / p >
< p > If you need to change this default behavior, create a new file < code > layouts/partials/favicon.html< / code > in your site’ s directory and write something like this:< / p >
2023-11-26 19:34:38 +00:00
2024-04-23 19:53:23 +00:00
< div class = "tab-panel" data-tab-group = "ecc21d3bc655ac0885a5fd5a156e93ce" >
2023-11-26 19:34:38 +00:00
< div class = "tab-nav" >
< div class = "tab-nav-title" > ​ < / div >
< button
data-tab-item="layoutspartialsfaviconhtml"
class="tab-nav-button tab-panel-style cstyle initial active" tabindex="-1"
2024-04-23 19:53:23 +00:00
onclick="switchTab('ecc21d3bc655ac0885a5fd5a156e93ce','layoutspartialsfaviconhtml')"
2023-11-26 19:34:38 +00:00
>
< span class = "tab-nav-text" > layouts/partials/favicon.html< / span >
< / button >
< / div >
< div class = "tab-content-container" >
< div
data-tab-item="layoutspartialsfaviconhtml"
class="tab-content tab-panel-style cstyle initial active">
< div class = "tab-content-text" >
2024-03-11 20:44:09 +00:00
< div class = "highlight wrap-code" > < pre tabindex = "0" class = "chroma" > < code class = "language-html" data-lang = "html" > < span class = "line" > < span class = "cl" > < span class = "p" > < < / span > < span class = "nt" > link< / span > < span class = "na" > rel< / span > < span class = "o" > =< / span > < span class = "s" > " icon" < / span > < span class = "na" > href< / span > < span class = "o" > =< / span > < span class = "s" > " /images/favicon.bmp" < / span > < span class = "na" > type< / span > < span class = "o" > =< / span > < span class = "s" > " image/bmp" < / span > < span class = "p" > > < / span > < / span > < / span > < / code > < / pre > < / div > < / div >
2023-11-26 19:34:38 +00:00
< / div >
< / div >
< / div > < h2 id = "change-the-logo" > Change the Logo< / h2 >
2023-11-20 23:54:13 +00:00
< p > Create a new file in < code > layouts/partials/logo.html< / code > of your site. Then write any HTML you want. You could use an < code > img< / code > HTML tag and reference an image created under the < em > static< / em > folder, or you could paste a SVG definition!< / p >
< div class = "box notices cstyle note" >
< div class = "box-label" > < i class = "fa-fw fas fa-exclamation-circle" > < / i > Note< / div >
< div class = "box-content" >
< p > The size of the logo will adapt automatically.< / p >
< / div >
< / div >
2024-04-12 15:30:57 +00:00
< h2 id = "syntax-highlighting" > Syntax Highlighting< / h2 >
2024-04-21 21:48:09 +00:00
< p > If you want to switch the syntax highlighting theme together with your color variant, you need to configure your installation < a href = "https://gohugo.io/content-management/syntax-highlighting/" rel = "external" target = "_self" > according to Hugo’ s documentation< / a > and provide a syntax highlighting stylesheet file.< / p >
2024-04-19 06:38:17 +00:00
< p > You can use a one of the shipped stylesheet files or use Hugo to generate a file for you. The file must be written to < code > assets/css/chroma-< NAME> .css< / code > . To use it with your color variant you have to define < code > --CODE-theme: < NAME> < / code > in the color variant stylesheet file.< / p >
2024-04-21 21:48:09 +00:00
< p > For an example, take a look into < a href = "https://github.com/McShelby/hugo-theme-relearn/blob/main/assets/css/theme-relearn-light.css" rel = "external" target = "_self" > < code > theme-relearn-light.css< / code > < / a > and < a href = "https://github.com/McShelby/hugo-theme-relearn/blob/main/exampleSite/config/_default/hugo.toml" rel = "external" target = "_self" > < code > hugo.toml< / code > < / a > of the exampleSite.< / p >
2023-11-20 23:54:13 +00:00
< h2 id = "theme-variant-advanced" > Change the Variant (Advanced)< / h2 >
< p > The theme offers a new way to configure theme variants and all of the aspects above inside of a single configuration item. This comes with some features previously unsupported.< / p >
2024-02-24 12:50:21 +00:00
< p > Like with the < a href = "/hugo-theme-relearn/basics/branding/index.html#multiple-variants" > multiple variants< / a > option, you are defining your theme variants in an array but now < em > not by simple strings< / em > < strong > but in a table with suboptions< / strong > .< / p >
2023-11-20 23:54:13 +00:00
< p > Again, in this case, the first variant is the default chosen on first view and a variant selector will be shown in the menu footer if the array contains more than one entry.< / p >
2023-11-26 19:34:38 +00:00
2024-03-02 10:05:50 +00:00
< div class = "tab-panel" data-tab-group = "config-code" >
2023-11-26 19:34:38 +00:00
< div class = "tab-nav" >
2024-03-02 10:05:50 +00:00
< div class = "tab-nav-title" > hugo.< / div >
2023-11-26 19:34:38 +00:00
< button
2024-03-02 10:05:50 +00:00
data-tab-item="toml"
2023-11-26 19:34:38 +00:00
class="tab-nav-button tab-panel-style cstyle initial active" tabindex="-1"
2024-03-02 10:05:50 +00:00
onclick="switchTab('config-code','toml')"
2023-11-26 19:34:38 +00:00
>
2024-03-02 10:05:50 +00:00
< span class = "tab-nav-text" > toml< / span >
< / button >
< button
data-tab-item="yaml"
class="tab-nav-button tab-panel-style cstyle initial"
onclick="switchTab('config-code','yaml')"
>
< span class = "tab-nav-text" > yaml< / span >
< / button >
< button
data-tab-item="json"
class="tab-nav-button tab-panel-style cstyle initial"
onclick="switchTab('config-code','json')"
>
< span class = "tab-nav-text" > json< / span >
2023-11-26 19:34:38 +00:00
< / button >
< / div >
< div class = "tab-content-container" >
< div
2024-03-02 10:05:50 +00:00
data-tab-item="toml"
2023-11-26 19:34:38 +00:00
class="tab-content tab-panel-style cstyle initial active">
< div class = "tab-content-text" >
2024-03-11 20:44:09 +00:00
< div class = "highlight wrap-code" > < pre tabindex = "0" class = "chroma" > < code class = "language-toml" data-lang = "toml" > < span class = "line" > < span class = "cl" > < span class = "p" > [< / span > < span class = "nx" > params< / span > < span class = "p" > ]< / span >
2024-03-02 10:05:50 +00:00
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "nx" > themeVariant< / span > < span class = "p" > =< / span > < span class = "p" > [< / span > < span class = "s1" > ' relearn-light' < / span > < span class = "p" > ,< / span > < span class = "s1" > ' relearn-dark' < / span > < span class = "p" > ]< / span > < / span > < / span > < / code > < / pre > < / div > < / div >
< / div >
< div
data-tab-item="yaml"
class="tab-content tab-panel-style cstyle initial">
< div class = "tab-content-text" >
2024-03-11 20:44:09 +00:00
< div class = "highlight wrap-code" > < pre tabindex = "0" class = "chroma" > < code class = "language-yaml" data-lang = "yaml" > < span class = "line" > < span class = "cl" > < span class = "nt" > params< / span > < span class = "p" > :< / span > < span class = "w" >
2024-03-02 10:05:50 +00:00
< / span > < / span > < / span > < span class = "line" > < span class = "cl" > < span class = "w" > < / span > < span class = "nt" > themeVariant< / span > < span class = "p" > :< / span > < span class = "w" >
< / span > < / span > < / span > < span class = "line" > < span class = "cl" > < span class = "w" > < / span > - < span class = "l" > relearn-light< / span > < span class = "w" >
< / span > < / span > < / span > < span class = "line" > < span class = "cl" > < span class = "w" > < / span > - < span class = "l" > relearn-dark< / span > < / span > < / span > < / code > < / pre > < / div > < / div >
< / div >
< div
data-tab-item="json"
class="tab-content tab-panel-style cstyle initial">
< div class = "tab-content-text" >
2024-03-11 20:44:09 +00:00
< div class = "highlight wrap-code" > < pre tabindex = "0" class = "chroma" > < code class = "language-json" data-lang = "json" > < span class = "line" > < span class = "cl" > < span class = "p" > {< / span >
2024-03-02 10:05:50 +00:00
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "nt" > " params" < / span > < span class = "p" > :< / span > < span class = "p" > {< / span >
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "nt" > " themeVariant" < / span > < span class = "p" > :< / span > < span class = "p" > [< / span >
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "s2" > " relearn-light" < / span > < span class = "p" > ,< / span >
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "s2" > " relearn-dark" < / span >
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "p" > ]< / span >
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "p" > }< / span >
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "p" > }< / span > < / span > < / span > < / code > < / pre > < / div > < / div >
2023-11-26 19:34:38 +00:00
< / div >
< / div >
2024-03-02 10:05:50 +00:00
< / div >
< p > you now write it that way:< / p >
2023-11-26 19:34:38 +00:00
2024-03-02 10:05:50 +00:00
< div class = "tab-panel" data-tab-group = "config-code" >
2023-11-26 19:34:38 +00:00
< div class = "tab-nav" >
2024-03-02 10:05:50 +00:00
< div class = "tab-nav-title" > hugo.< / div >
2023-11-26 19:34:38 +00:00
< button
2024-03-02 10:05:50 +00:00
data-tab-item="toml"
2023-11-26 19:34:38 +00:00
class="tab-nav-button tab-panel-style cstyle initial active" tabindex="-1"
2024-03-02 10:05:50 +00:00
onclick="switchTab('config-code','toml')"
>
< span class = "tab-nav-text" > toml< / span >
< / button >
< button
data-tab-item="yaml"
class="tab-nav-button tab-panel-style cstyle initial"
onclick="switchTab('config-code','yaml')"
2023-11-26 19:34:38 +00:00
>
2024-03-02 10:05:50 +00:00
< span class = "tab-nav-text" > yaml< / span >
< / button >
< button
data-tab-item="json"
class="tab-nav-button tab-panel-style cstyle initial"
onclick="switchTab('config-code','json')"
>
< span class = "tab-nav-text" > json< / span >
2023-11-26 19:34:38 +00:00
< / button >
< / div >
< div class = "tab-content-container" >
< div
2024-03-02 10:05:50 +00:00
data-tab-item="toml"
2023-11-26 19:34:38 +00:00
class="tab-content tab-panel-style cstyle initial active">
< div class = "tab-content-text" >
2024-03-11 20:44:09 +00:00
< div class = "highlight wrap-code" > < pre tabindex = "0" class = "chroma" > < code class = "language-toml" data-lang = "toml" > < span class = "line" > < span class = "cl" > < span class = "p" > [< / span > < span class = "nx" > params< / span > < span class = "p" > ]< / span >
2024-04-19 06:38:17 +00:00
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "p" > [[< / span > < span class = "nx" > params< / span > < span class = "p" > .< / span > < span class = "nx" > themeVariant< / span > < span class = "p" > ]]< / span >
2024-03-02 10:05:50 +00:00
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "nx" > identifier< / span > < span class = "p" > =< / span > < span class = "s1" > ' relearn-light' < / span >
< / span > < / span > < span class = "line" > < span class = "cl" >
2024-04-19 06:38:17 +00:00
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "p" > [[< / span > < span class = "nx" > params< / span > < span class = "p" > .< / span > < span class = "nx" > themeVariant< / span > < span class = "p" > ]]< / span >
2024-03-02 10:05:50 +00:00
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "nx" > identifier< / span > < span class = "p" > =< / span > < span class = "s1" > ' relearn-dark' < / span > < / span > < / span > < / code > < / pre > < / div > < / div >
< / div >
< div
data-tab-item="yaml"
class="tab-content tab-panel-style cstyle initial">
< div class = "tab-content-text" >
2024-03-11 20:44:09 +00:00
< div class = "highlight wrap-code" > < pre tabindex = "0" class = "chroma" > < code class = "language-yaml" data-lang = "yaml" > < span class = "line" > < span class = "cl" > < span class = "nt" > params< / span > < span class = "p" > :< / span > < span class = "w" >
2024-03-02 10:05:50 +00:00
< / span > < / span > < / span > < span class = "line" > < span class = "cl" > < span class = "w" > < / span > < span class = "nt" > themeVariant< / span > < span class = "p" > :< / span > < span class = "w" >
< / span > < / span > < / span > < span class = "line" > < span class = "cl" > < span class = "w" > < / span > - < span class = "nt" > identifier< / span > < span class = "p" > :< / span > < span class = "w" > < / span > < span class = "l" > relearn-light< / span > < span class = "w" >
< / span > < / span > < / span > < span class = "line" > < span class = "cl" > < span class = "w" > < / span > - < span class = "nt" > identifier< / span > < span class = "p" > :< / span > < span class = "w" > < / span > < span class = "l" > relearn-dark< / span > < / span > < / span > < / code > < / pre > < / div > < / div >
< / div >
< div
data-tab-item="json"
class="tab-content tab-panel-style cstyle initial">
< div class = "tab-content-text" >
2024-03-11 20:44:09 +00:00
< div class = "highlight wrap-code" > < pre tabindex = "0" class = "chroma" > < code class = "language-json" data-lang = "json" > < span class = "line" > < span class = "cl" > < span class = "p" > {< / span >
2024-03-02 10:05:50 +00:00
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "nt" > " params" < / span > < span class = "p" > :< / span > < span class = "p" > {< / span >
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "nt" > " themeVariant" < / span > < span class = "p" > :< / span > < span class = "p" > [< / span >
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "p" > {< / span >
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "nt" > " identifier" < / span > < span class = "p" > :< / span > < span class = "s2" > " relearn-light" < / span >
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "p" > },< / span >
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "p" > {< / span >
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "nt" > " identifier" < / span > < span class = "p" > :< / span > < span class = "s2" > " relearn-dark" < / span >
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "p" > }< / span >
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "p" > ]< / span >
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "p" > }< / span >
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "p" > }< / span > < / span > < / span > < / code > < / pre > < / div > < / div >
2023-11-26 19:34:38 +00:00
< / div >
< / div >
2024-03-02 10:05:50 +00:00
< / div >
< p > The < code > identifier< / code > option is mandatory and equivalent to the string in the first example. Further options can be configured, see the table below.< / p >
2023-11-20 23:54:13 +00:00
< h3 id = "parameter" > Parameter< / h3 >
< table >
< thead >
< tr >
< th > Name< / th >
< th > Default< / th >
< th > Notes< / th >
< / tr >
< / thead >
< tbody >
< tr >
< td > identifier< / td >
< td > < em > < empty> < / em > < / td >
2024-04-19 06:38:17 +00:00
< td > Must correspond to the name of a color variant either in your site’ s or the theme’ s directory in the form < code > assets/css/theme-< IDENTIFIER> .css< / code > .< / td >
2023-11-20 23:54:13 +00:00
< / tr >
< tr >
< td > name< / td >
< td > see notes< / td >
< td > The name to be displayed in the variant selector. If not set, the identifier is used in a human readable form.< / td >
< / tr >
2023-11-23 00:05:57 +00:00
< tr >
< td > auto< / td >
< td > < em > < empty> < / em > < / td >
2024-02-24 12:50:21 +00:00
< td > If set, the variant is treated as an < a href = "/hugo-theme-relearn/basics/branding/index.html#adjust-to-os-settings" > auto mode variant< / a > . It has the same behavior as the < code > themeVariantAuto< / code > option. The first entry in the array is the color variant for light mode, the second for dark mode. Defining auto mode variants with the advanced options has the benefit that you can now have multiple auto mode variants instead of just one with the simple options.< / td >
2023-11-23 00:05:57 +00:00
< / tr >
2023-11-20 23:54:13 +00:00
< / tbody >
< / table >
2023-11-23 00:05:57 +00:00
< h3 id = "example-configuration-of-this-site" > Example Configuration of This Site< / h3 >
2023-11-26 19:34:38 +00:00
2024-03-02 10:05:50 +00:00
< div class = "tab-panel" data-tab-group = "config-code" >
2023-11-26 19:34:38 +00:00
< div class = "tab-nav" >
2024-03-02 10:05:50 +00:00
< div class = "tab-nav-title" > hugo.< / div >
2023-11-26 19:34:38 +00:00
< button
2024-03-02 10:05:50 +00:00
data-tab-item="toml"
2023-11-26 19:34:38 +00:00
class="tab-nav-button tab-panel-style cstyle initial active" tabindex="-1"
2024-03-02 10:05:50 +00:00
onclick="switchTab('config-code','toml')"
>
< span class = "tab-nav-text" > toml< / span >
< / button >
< button
data-tab-item="yaml"
class="tab-nav-button tab-panel-style cstyle initial"
onclick="switchTab('config-code','yaml')"
2023-11-26 19:34:38 +00:00
>
2024-03-02 10:05:50 +00:00
< span class = "tab-nav-text" > yaml< / span >
< / button >
< button
data-tab-item="json"
class="tab-nav-button tab-panel-style cstyle initial"
onclick="switchTab('config-code','json')"
>
< span class = "tab-nav-text" > json< / span >
2023-11-26 19:34:38 +00:00
< / button >
< / div >
< div class = "tab-content-container" >
< div
2024-03-02 10:05:50 +00:00
data-tab-item="toml"
2023-11-26 19:34:38 +00:00
class="tab-content tab-panel-style cstyle initial active">
< div class = "tab-content-text" >
2024-03-11 20:44:09 +00:00
< div class = "highlight wrap-code" > < pre tabindex = "0" class = "chroma" > < code class = "language-toml" data-lang = "toml" > < span class = "line" > < span class = "cl" > < span class = "p" > [< / span > < span class = "nx" > params< / span > < span class = "p" > ]< / span >
2024-04-19 06:38:17 +00:00
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "p" > [[< / span > < span class = "nx" > params< / span > < span class = "p" > .< / span > < span class = "nx" > themeVariant< / span > < span class = "p" > ]]< / span >
2023-11-23 00:05:57 +00:00
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "nx" > auto< / span > < span class = "p" > =< / span > < span class = "p" > []< / span >
2024-03-02 10:05:50 +00:00
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "nx" > identifier< / span > < span class = "p" > =< / span > < span class = "s1" > ' relearn-auto' < / span >
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "nx" > name< / span > < span class = "p" > =< / span > < span class = "s1" > ' Relearn Light/Dark' < / span >
< / span > < / span > < span class = "line" > < span class = "cl" >
2024-04-19 06:38:17 +00:00
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "p" > [[< / span > < span class = "nx" > params< / span > < span class = "p" > .< / span > < span class = "nx" > themeVariant< / span > < span class = "p" > ]]< / span >
2024-03-02 10:05:50 +00:00
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "nx" > identifier< / span > < span class = "p" > =< / span > < span class = "s1" > ' relearn-light' < / span >
< / span > < / span > < span class = "line" > < span class = "cl" >
2024-04-19 06:38:17 +00:00
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "p" > [[< / span > < span class = "nx" > params< / span > < span class = "p" > .< / span > < span class = "nx" > themeVariant< / span > < span class = "p" > ]]< / span >
2024-03-02 10:05:50 +00:00
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "nx" > identifier< / span > < span class = "p" > =< / span > < span class = "s1" > ' relearn-dark' < / span >
< / span > < / span > < span class = "line" > < span class = "cl" >
2024-04-19 06:38:17 +00:00
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "p" > [[< / span > < span class = "nx" > params< / span > < span class = "p" > .< / span > < span class = "nx" > themeVariant< / span > < span class = "p" > ]]< / span >
2024-03-02 10:05:50 +00:00
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "nx" > auto< / span > < span class = "p" > =< / span > < span class = "p" > [< / span > < span class = "s1" > ' zen-light' < / span > < span class = "p" > ,< / span > < span class = "s1" > ' zen-dark' < / span > < span class = "p" > ]< / span >
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "nx" > identifier< / span > < span class = "p" > =< / span > < span class = "s1" > ' zen-auto' < / span >
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "nx" > name< / span > < span class = "p" > =< / span > < span class = "s1" > ' Zen Light/Dark' < / span >
< / span > < / span > < span class = "line" > < span class = "cl" >
2024-04-19 06:38:17 +00:00
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "p" > [[< / span > < span class = "nx" > params< / span > < span class = "p" > .< / span > < span class = "nx" > themeVariant< / span > < span class = "p" > ]]< / span >
2024-03-02 10:05:50 +00:00
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "nx" > identifier< / span > < span class = "p" > =< / span > < span class = "s1" > ' zen-light' < / span >
< / span > < / span > < span class = "line" > < span class = "cl" >
2024-04-19 06:38:17 +00:00
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "p" > [[< / span > < span class = "nx" > params< / span > < span class = "p" > .< / span > < span class = "nx" > themeVariant< / span > < span class = "p" > ]]< / span >
2024-03-02 10:05:50 +00:00
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "nx" > identifier< / span > < span class = "p" > =< / span > < span class = "s1" > ' zen-dark' < / span >
< / span > < / span > < span class = "line" > < span class = "cl" >
2024-04-19 06:38:17 +00:00
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "p" > [[< / span > < span class = "nx" > params< / span > < span class = "p" > .< / span > < span class = "nx" > themeVariant< / span > < span class = "p" > ]]< / span >
2024-03-02 10:05:50 +00:00
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "nx" > identifier< / span > < span class = "p" > =< / span > < span class = "s1" > ' neon' < / span > < / span > < / span > < / code > < / pre > < / div > < / div >
< / div >
< div
data-tab-item="yaml"
class="tab-content tab-panel-style cstyle initial">
< div class = "tab-content-text" >
2024-03-11 20:44:09 +00:00
< div class = "highlight wrap-code" > < pre tabindex = "0" class = "chroma" > < code class = "language-yaml" data-lang = "yaml" > < span class = "line" > < span class = "cl" > < span class = "nt" > params< / span > < span class = "p" > :< / span > < span class = "w" >
2024-03-02 10:05:50 +00:00
< / span > < / span > < / span > < span class = "line" > < span class = "cl" > < span class = "w" > < / span > < span class = "nt" > themeVariant< / span > < span class = "p" > :< / span > < span class = "w" >
< / span > < / span > < / span > < span class = "line" > < span class = "cl" > < span class = "w" > < / span > - < span class = "nt" > auto< / span > < span class = "p" > :< / span > < span class = "w" > < / span > < span class = "p" > []< / span > < span class = "w" >
< / span > < / span > < / span > < span class = "line" > < span class = "cl" > < span class = "w" > < / span > < span class = "nt" > identifier< / span > < span class = "p" > :< / span > < span class = "w" > < / span > < span class = "l" > relearn-auto< / span > < span class = "w" >
< / span > < / span > < / span > < span class = "line" > < span class = "cl" > < span class = "w" > < / span > < span class = "nt" > name< / span > < span class = "p" > :< / span > < span class = "w" > < / span > < span class = "l" > Relearn Light/Dark< / span > < span class = "w" >
< / span > < / span > < / span > < span class = "line" > < span class = "cl" > < span class = "w" > < / span > - < span class = "nt" > identifier< / span > < span class = "p" > :< / span > < span class = "w" > < / span > < span class = "l" > relearn-light< / span > < span class = "w" >
< / span > < / span > < / span > < span class = "line" > < span class = "cl" > < span class = "w" > < / span > - < span class = "nt" > identifier< / span > < span class = "p" > :< / span > < span class = "w" > < / span > < span class = "l" > relearn-dark< / span > < span class = "w" >
< / span > < / span > < / span > < span class = "line" > < span class = "cl" > < span class = "w" > < / span > - < span class = "nt" > auto< / span > < span class = "p" > :< / span > < span class = "w" >
< / span > < / span > < / span > < span class = "line" > < span class = "cl" > < span class = "w" > < / span > - < span class = "l" > zen-light< / span > < span class = "w" >
< / span > < / span > < / span > < span class = "line" > < span class = "cl" > < span class = "w" > < / span > - < span class = "l" > zen-dark< / span > < span class = "w" >
< / span > < / span > < / span > < span class = "line" > < span class = "cl" > < span class = "w" > < / span > < span class = "nt" > identifier< / span > < span class = "p" > :< / span > < span class = "w" > < / span > < span class = "l" > zen-auto< / span > < span class = "w" >
< / span > < / span > < / span > < span class = "line" > < span class = "cl" > < span class = "w" > < / span > < span class = "nt" > name< / span > < span class = "p" > :< / span > < span class = "w" > < / span > < span class = "l" > Zen Light/Dark< / span > < span class = "w" >
< / span > < / span > < / span > < span class = "line" > < span class = "cl" > < span class = "w" > < / span > - < span class = "nt" > identifier< / span > < span class = "p" > :< / span > < span class = "w" > < / span > < span class = "l" > zen-light< / span > < span class = "w" >
< / span > < / span > < / span > < span class = "line" > < span class = "cl" > < span class = "w" > < / span > - < span class = "nt" > identifier< / span > < span class = "p" > :< / span > < span class = "w" > < / span > < span class = "l" > zen-dark< / span > < span class = "w" >
< / span > < / span > < / span > < span class = "line" > < span class = "cl" > < span class = "w" > < / span > - < span class = "nt" > identifier< / span > < span class = "p" > :< / span > < span class = "w" > < / span > < span class = "l" > neon< / span > < / span > < / span > < / code > < / pre > < / div > < / div >
< / div >
< div
data-tab-item="json"
class="tab-content tab-panel-style cstyle initial">
< div class = "tab-content-text" >
2024-03-11 20:44:09 +00:00
< div class = "highlight wrap-code" > < pre tabindex = "0" class = "chroma" > < code class = "language-json" data-lang = "json" > < span class = "line" > < span class = "cl" > < span class = "p" > {< / span >
2024-03-02 10:05:50 +00:00
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "nt" > " params" < / span > < span class = "p" > :< / span > < span class = "p" > {< / span >
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "nt" > " themeVariant" < / span > < span class = "p" > :< / span > < span class = "p" > [< / span >
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "p" > {< / span >
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "nt" > " auto" < / span > < span class = "p" > :< / span > < span class = "p" > [],< / span >
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "nt" > " identifier" < / span > < span class = "p" > :< / span > < span class = "s2" > " relearn-auto" < / span > < span class = "p" > ,< / span >
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "nt" > " name" < / span > < span class = "p" > :< / span > < span class = "s2" > " Relearn Light/Dark" < / span >
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "p" > },< / span >
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "p" > {< / span >
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "nt" > " identifier" < / span > < span class = "p" > :< / span > < span class = "s2" > " relearn-light" < / span >
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "p" > },< / span >
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "p" > {< / span >
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "nt" > " identifier" < / span > < span class = "p" > :< / span > < span class = "s2" > " relearn-dark" < / span >
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "p" > },< / span >
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "p" > {< / span >
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "nt" > " auto" < / span > < span class = "p" > :< / span > < span class = "p" > [< / span >
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "s2" > " zen-light" < / span > < span class = "p" > ,< / span >
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "s2" > " zen-dark" < / span >
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "p" > ],< / span >
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "nt" > " identifier" < / span > < span class = "p" > :< / span > < span class = "s2" > " zen-auto" < / span > < span class = "p" > ,< / span >
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "nt" > " name" < / span > < span class = "p" > :< / span > < span class = "s2" > " Zen Light/Dark" < / span >
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "p" > },< / span >
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "p" > {< / span >
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "nt" > " identifier" < / span > < span class = "p" > :< / span > < span class = "s2" > " zen-light" < / span >
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "p" > },< / span >
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "p" > {< / span >
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "nt" > " identifier" < / span > < span class = "p" > :< / span > < span class = "s2" > " zen-dark" < / span >
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "p" > },< / span >
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "p" > {< / span >
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "nt" > " identifier" < / span > < span class = "p" > :< / span > < span class = "s2" > " neon" < / span >
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "p" > }< / span >
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "p" > ]< / span >
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "p" > }< / span >
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "p" > }< / span > < / span > < / span > < / code > < / pre > < / div > < / div >
2023-11-26 19:34:38 +00:00
< / div >
< / div >
2024-03-02 10:05:50 +00:00
< / div >
< h2 id = "modify-shipped-variants" > Modify Shipped Variants< / h2 >
2023-11-26 19:34:38 +00:00
< p > In case you like a shipped variant but only want to tweak some aspects, you have two choices:< / p >
< ol >
< li >
< p > Copy and change< / p >
2024-04-19 06:38:17 +00:00
< p > You can copy the shipped variant file from the theme’ s < code > assets/css< / code > directory to the site’ s < code > assets/css< / code > directory and either store it with the same name or give it a new name. Edit the settings and save the new file. Afterwards you can use it in your < code > hugo.toml< / code > by the chosen name.< / p >
2023-11-26 19:34:38 +00:00
< / li >
< li >
< p > Create and import< / p >
2024-04-19 06:38:17 +00:00
< p > You can create a new variant file in the site’ s < code > assets/css< / code > directory and give it a new name. Import the shipped variant, add the settings you want to change and save the new file. Afterwards you can use it in your < code > hugo.toml< / code > by the chosen name.< / p >
< p > For example, you want to use the < code > relearn-light< / code > variant but want to change the syntax highlighting schema to the one used in the < code > neon< / code > variant. For that, create a new < code > assets/css/theme-my-branding.css< / code > in your site’ s directory and add the following lines:< / p >
2023-11-26 19:34:38 +00:00
2024-04-23 19:53:23 +00:00
< div class = "tab-panel" data-tab-group = "0313154fac5a0c1e3950cc44279bb9d8" >
2023-11-26 19:34:38 +00:00
< div class = "tab-nav" >
< div class = "tab-nav-title" > ​ < / div >
< button
2024-04-19 06:38:17 +00:00
data-tab-item="assetscsstheme-my-brandingcss"
2023-11-26 19:34:38 +00:00
class="tab-nav-button tab-panel-style cstyle initial active" tabindex="-1"
2024-04-23 19:53:23 +00:00
onclick="switchTab('0313154fac5a0c1e3950cc44279bb9d8','assetscsstheme-my-brandingcss')"
2023-11-26 19:34:38 +00:00
>
2024-04-19 06:38:17 +00:00
< span class = "tab-nav-text" > assets/css/theme-my-branding.css< / span >
2023-11-26 19:34:38 +00:00
< / button >
< / div >
< div class = "tab-content-container" >
< div
2024-04-19 06:38:17 +00:00
data-tab-item="assetscsstheme-my-brandingcss"
2023-11-26 19:34:38 +00:00
class="tab-content tab-panel-style cstyle initial active">
< div class = "tab-content-text" >
2024-03-11 20:44:09 +00:00
< div class = "highlight wrap-code" > < pre tabindex = "0" class = "chroma" > < code class = "language-css" data-lang = "css" > < span class = "line" > < span class = "cl" > < span class = "p" > @< / span > < span class = "k" > import< / span > < span class = "s2" > " theme-relearn-light.css" < / span > < span class = "p" > ;< / span >
2023-11-26 19:34:38 +00:00
< / span > < / span > < span class = "line" > < span class = "cl" >
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "p" > :< / span > < span class = "nd" > root< / span > < span class = "p" > {< / span >
2023-12-03 23:15:02 +00:00
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "nv" > --CODE-theme< / span > < span class = "p" > :< / span > < span class = "n" > neon< / span > < span class = "p" > ;< / span > < span class = "c" > /* name of the chroma stylesheet file */< / span >
2023-11-26 19:34:38 +00:00
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "nv" > --CODE-BLOCK-color< / span > < span class = "p" > :< / span > < span class = "nb" > rgba< / span > < span class = "p" > (< / span > < span class = "mi" > 226< / span > < span class = "p" > ,< / span > < span class = "mi" > 228< / span > < span class = "p" > ,< / span > < span class = "mi" > 229< / span > < span class = "p" > ,< / span > < span class = "mi" > 1< / span > < span class = "p" > );< / span > < span class = "c" > /* fallback color for code text */< / span >
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "nv" > --CODE-BLOCK-BG-color< / span > < span class = "p" > :< / span > < span class = "nb" > rgba< / span > < span class = "p" > (< / span > < span class = "mi" > 40< / span > < span class = "p" > ,< / span > < span class = "mi" > 42< / span > < span class = "p" > ,< / span > < span class = "mi" > 54< / span > < span class = "p" > ,< / span > < span class = "mi" > 1< / span > < span class = "p" > );< / span > < span class = "c" > /* fallback color for code background */< / span >
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "p" > }< / span > < / span > < / span > < / code > < / pre > < / div > < / div >
< / div >
< / div >
2023-11-29 23:15:02 +00:00
< / div > < p > Afterwards put this in your < code > hugo.toml< / code > to use your new variant:< / p >
2023-11-26 19:34:38 +00:00
2024-03-02 10:05:50 +00:00
< div class = "tab-panel" data-tab-group = "config-code" >
2023-11-26 19:34:38 +00:00
< div class = "tab-nav" >
2024-03-02 10:05:50 +00:00
< div class = "tab-nav-title" > hugo.< / div >
2023-11-26 19:34:38 +00:00
< button
2024-03-02 10:05:50 +00:00
data-tab-item="toml"
2023-11-26 19:34:38 +00:00
class="tab-nav-button tab-panel-style cstyle initial active" tabindex="-1"
2024-03-02 10:05:50 +00:00
onclick="switchTab('config-code','toml')"
>
< span class = "tab-nav-text" > toml< / span >
< / button >
< button
data-tab-item="yaml"
class="tab-nav-button tab-panel-style cstyle initial"
onclick="switchTab('config-code','yaml')"
2023-11-26 19:34:38 +00:00
>
2024-03-02 10:05:50 +00:00
< span class = "tab-nav-text" > yaml< / span >
< / button >
< button
data-tab-item="json"
class="tab-nav-button tab-panel-style cstyle initial"
onclick="switchTab('config-code','json')"
>
< span class = "tab-nav-text" > json< / span >
2023-11-26 19:34:38 +00:00
< / button >
< / div >
< div class = "tab-content-container" >
< div
2024-03-02 10:05:50 +00:00
data-tab-item="toml"
2023-11-26 19:34:38 +00:00
class="tab-content tab-panel-style cstyle initial active">
< div class = "tab-content-text" >
2024-03-11 20:44:09 +00:00
< div class = "highlight wrap-code" > < pre tabindex = "0" class = "chroma" > < code class = "language-toml" data-lang = "toml" > < span class = "line" > < span class = "cl" > < span class = "p" > [< / span > < span class = "nx" > params< / span > < span class = "p" > ]< / span >
2024-03-02 10:05:50 +00:00
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "nx" > themeVariant< / span > < span class = "p" > =< / span > < span class = "s1" > ' my-branding' < / span > < / span > < / span > < / code > < / pre > < / div > < / div >
< / div >
< div
data-tab-item="yaml"
class="tab-content tab-panel-style cstyle initial">
< div class = "tab-content-text" >
2024-03-11 20:44:09 +00:00
< div class = "highlight wrap-code" > < pre tabindex = "0" class = "chroma" > < code class = "language-yaml" data-lang = "yaml" > < span class = "line" > < span class = "cl" > < span class = "nt" > params< / span > < span class = "p" > :< / span > < span class = "w" >
2024-03-02 10:05:50 +00:00
< / span > < / span > < / span > < span class = "line" > < span class = "cl" > < span class = "w" > < / span > < span class = "nt" > themeVariant< / span > < span class = "p" > :< / span > < span class = "w" > < / span > < span class = "l" > my-branding< / span > < / span > < / span > < / code > < / pre > < / div > < / div >
< / div >
< div
data-tab-item="json"
class="tab-content tab-panel-style cstyle initial">
< div class = "tab-content-text" >
2024-03-11 20:44:09 +00:00
< div class = "highlight wrap-code" > < pre tabindex = "0" class = "chroma" > < code class = "language-json" data-lang = "json" > < span class = "line" > < span class = "cl" > < span class = "p" > {< / span >
2024-03-02 10:05:50 +00:00
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "nt" > " params" < / span > < span class = "p" > :< / span > < span class = "p" > {< / span >
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "nt" > " themeVariant" < / span > < span class = "p" > :< / span > < span class = "s2" > " my-branding" < / span >
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "p" > }< / span >
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "p" > }< / span > < / span > < / span > < / code > < / pre > < / div > < / div >
2023-11-26 19:34:38 +00:00
< / div >
< / div >
2024-03-02 10:05:50 +00:00
< / div >
< p > In comparison to < em > copy and change< / em > , this has the advantage that you profit from any adjustments to the < code > relearn-light< / code > variant but keep your modifications.< / p >
2023-11-26 19:34:38 +00:00
< / li >
< / ol >
2023-11-20 23:54:13 +00:00
< footer class = "footline" >
< div class = " taxonomy-categories term-list cstyle " title = "Categories" style = "--VARIABLE-TAGS-BG-color: var(--INTERNAL-TAG-BG-color);" >
< i class = "fa-fw fas fa-layer-group" > < / i >
< ul >
2024-02-24 12:50:21 +00:00
< li > < a class = "term-link" href = "/hugo-theme-relearn/categories/custom/index.html" > Custom< / a > < / li >
< li > < a class = "term-link" href = "/hugo-theme-relearn/categories/theming/index.html" > Theming< / a > < / li >
2023-11-20 23:54:13 +00:00
< / ul >
< / div >
< / footer >
< / article >
< / div >
< / main >
< / div >
2024-04-23 19:53:23 +00:00
< script src = "/hugo-theme-relearn/js/clipboard.min.js?1713901997" defer > < / script >
< script src = "/hugo-theme-relearn/js/perfect-scrollbar.min.js?1713901997" defer > < / script >
< script src = "/hugo-theme-relearn/js/theme.js?1713901997" defer > < / script >
2023-11-20 23:54:13 +00:00
< / body >
< / html >