2022-04-02 13:30:16 +00:00
<!DOCTYPE html>
2024-04-27 13:29:53 +00:00
< html lang = "en" dir = "ltr" itemscope itemtype = "http://schema.org/Article" >
2022-04-02 13:30:16 +00:00
< head >
< meta charset = "utf-8" >
< meta name = "viewport" content = "height=device-height, width=device-width, initial-scale=1.0, minimum-scale=1.0" >
2024-09-11 19:02:33 +00:00
< meta name = "generator" content = "Hugo 0.134.2" >
2024-09-03 17:45:17 +00:00
< meta name = "generator" content = "Relearn 6.3.0+tip" >
2022-04-02 13:30:16 +00:00
< meta name = "description" content = "Disclaimers to help you structure your page" >
2023-10-10 21:22:41 +00:00
< meta name = "author" content = "Sören Weber" >
2023-10-11 16:03:03 +00:00
< 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-10-11 16:03:03 +00:00
< meta name = "twitter:title" content = "Notice :: Hugo Relearn Theme" >
< meta name = "twitter:description" content = "Disclaimers to help you structure your page" >
2024-04-07 13:13:19 +00:00
< meta property = "og:url" content = "https://mcshelby.github.io/hugo-theme-relearn/shortcodes/notice/index.html" >
< meta property = "og:site_name" content = "Hugo Relearn Theme" >
2023-10-11 15:32:39 +00:00
< meta property = "og:title" content = "Notice :: Hugo Relearn Theme" >
< meta property = "og:description" content = "Disclaimers to help you structure your page" >
2024-04-07 13:13:19 +00:00
< meta property = "og:locale" content = "en" >
2023-10-11 15:32:39 +00:00
< meta property = "og:type" content = "article" >
2024-04-27 12:39:25 +00:00
< meta property = "article:section" content = "Shortcodes" >
2024-04-07 13:13:19 +00:00
< meta property = "og:image" content = "https://mcshelby.github.io/hugo-theme-relearn/images/hero.png" >
2024-04-24 19:38:41 +00:00
< meta itemprop = "name" content = "Notice :: Hugo Relearn Theme" >
< meta itemprop = "description" content = "Disclaimers to help you structure your page" >
2024-09-12 09:17:26 +00:00
< meta itemprop = "wordCount" content = "1440" >
2024-04-24 19:38:41 +00:00
< meta itemprop = "image" content = "https://mcshelby.github.io/hugo-theme-relearn/images/hero.png" >
2022-04-02 13:30:16 +00:00
< title > Notice :: Hugo Relearn Theme< / title >
2024-02-24 13:03:50 +00:00
< link href = "https://mcshelby.github.io/hugo-theme-relearn/shortcodes/notice/index.html" rel = "alternate" hreflang = "x-default" >
< link href = "https://mcshelby.github.io/hugo-theme-relearn/shortcodes/notice/index.html" rel = "alternate" hreflang = "en" >
2024-04-30 20:08:46 +00:00
< link href = "https://mcshelby.github.io/hugo-theme-relearn/pir/shortcodes/notice/index.html" rel = "alternate" hreflang = "art-x-pir" >
2024-02-24 13:03:50 +00:00
< link href = "https://mcshelby.github.io/hugo-theme-relearn/shortcodes/notice/index.html" rel = "canonical" type = "text/html" title = "Notice :: Hugo Relearn Theme" >
2024-02-24 12:50:21 +00:00
< link href = "/hugo-theme-relearn/shortcodes/notice/index.xml" rel = "alternate" type = "application/rss+xml" title = "Notice :: Hugo Relearn Theme" >
2024-09-12 09:17:26 +00:00
< link href = "/hugo-theme-relearn/images/logo.svg?1726132639" rel = "icon" type = "image/svg+xml" >
< link href = "/hugo-theme-relearn/css/fontawesome-all.min.css?1726132639" rel = "stylesheet" media = "print" onload = "this.media='all';this.onload=null;" > < noscript > < link href = "/hugo-theme-relearn/css/fontawesome-all.min.css?1726132639" rel = "stylesheet" > < / noscript >
< link href = "/hugo-theme-relearn/css/nucleus.css?1726132639" rel = "stylesheet" >
< link href = "/hugo-theme-relearn/css/auto-complete.css?1726132639" rel = "stylesheet" media = "print" onload = "this.media='all';this.onload=null;" > < noscript > < link href = "/hugo-theme-relearn/css/auto-complete.css?1726132639" rel = "stylesheet" > < / noscript >
< link href = "/hugo-theme-relearn/css/perfect-scrollbar.min.css?1726132639" rel = "stylesheet" >
< link href = "/hugo-theme-relearn/css/fonts.css?1726132639" rel = "stylesheet" media = "print" onload = "this.media='all';this.onload=null;" > < noscript > < link href = "/hugo-theme-relearn/css/fonts.css?1726132639" rel = "stylesheet" > < / noscript >
< link href = "/hugo-theme-relearn/css/theme.css?1726132639" rel = "stylesheet" >
< link href = "/hugo-theme-relearn/css/theme-relearn-auto.css?1726132639" rel = "stylesheet" id = "R-variant-style" >
< link href = "/hugo-theme-relearn/css/chroma-relearn-auto.css?1726132639" rel = "stylesheet" id = "R-variant-chroma-style" >
< link href = "/hugo-theme-relearn/css/variant.css?1726132639" rel = "stylesheet" >
< link href = "/hugo-theme-relearn/css/print.css?1726132639" rel = "stylesheet" media = "print" >
< link href = "/hugo-theme-relearn/css/format-print.css?1726132639" rel = "stylesheet" >
< script src = "/hugo-theme-relearn/js/variant.js?1726132639" > < / script >
2024-03-16 13:44:28 +00:00
< script >
2023-11-16 22:53:34 +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-08-22 16:34:04 +00:00
window.relearn.disableAnchorCopy=false;
window.relearn.disableAnchorScrolling=false;
2024-09-12 09:17:26 +00:00
window.index_js_url="/hugo-theme-relearn/index.search.js?1726132639";
2023-11-16 22:53:34 +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-16 22:53:34 +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}"`;
2022-04-02 13:30:16 +00:00
< / script >
2022-12-02 15:05:54 +00:00
< style >
2023-09-23 08:19:35 +00:00
#R-body img.bg-white {
2022-12-02 15:05:54 +00:00
background-color: white;
}
< / style >
2022-04-02 13:30:16 +00:00
< / head >
2024-02-24 12:50:21 +00:00
< body class = "mobile-support print disableInlineCopyToClipboard" data-url = "/hugo-theme-relearn/shortcodes/notice/index.html" >
2023-09-23 08:19:35 +00:00
< div id = "R-body" class = "default-animation" >
< div id = "R-body-overlay" > < / div >
< nav id = "R-topbar" >
2023-09-18 18:49:44 +00:00
< div class = "topbar-wrapper" >
2023-09-13 21:30:04 +00:00
< div class = "topbar-sidebar-divider" > < / div >
2023-09-18 18:49:44 +00:00
< 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-09-12 21:10:21 +00:00
< / div >
2023-09-13 21:30:04 +00:00
< / div >
2023-09-20 22:28:27 +00:00
< 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/shortcodes/index.html" > < span itemprop = "name" > Shortcodes< / span > < / a > < meta itemprop = "position" content = "1" > > < / li > < li
2023-09-23 22:28:49 +00:00
itemscope itemtype="https://schema.org/ListItem" itemprop="itemListElement">< span itemprop = "name" > Notice< / span > < meta itemprop = "position" content = "2" > < / li >
2023-09-13 21:30:04 +00:00
< / ol >
2023-09-18 18:49:44 +00:00
< 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/shortcodes/mermaid/index.html" title = "Mermaid (🡐)" > < 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/shortcodes/openapi/index.html" title = "OpenAPI (🡒)" > < i class = "fa-fw fas fa-chevron-right" > < / i > < / a >
< / div >
2023-09-12 21:19:47 +00:00
< / div >
2022-04-02 13:30:16 +00:00
< / div >
< / nav >
2023-09-23 08:19:35 +00:00
< div id = "R-main-overlay" > < / div >
< main id = "R-body-inner" class = "highlightable default" tabindex = "-1" >
2022-04-02 13:30:16 +00:00
< div class = "flex-block-wrapper" >
2022-11-07 19:58:08 +00:00
< article class = "default" >
2023-05-19 18:46:07 +00:00
< header class = "headline" >
< / header >
2024-04-07 19:58:38 +00:00
2022-11-13 21:34:47 +00:00
< h1 id = "notice" > Notice< / h1 >
2022-07-05 22:16:52 +00:00
2022-05-28 11:35:09 +00:00
< p > The < code > notice< / code > shortcode shows various types of disclaimers with adjustable color, title and icon to help you structure your page.< / p >
2022-05-29 21:00:53 +00:00
< div class = "box notices cstyle primary" >
2024-09-01 11:58:33 +00:00
< div class = "box-label" >
< i class = "fa-fw fas fa-skull-crossbones" > < / i > There may be pirates
< / div >
2022-12-01 00:38:08 +00:00
< div class = "box-content" >
2022-05-23 22:38:50 +00:00
< p > It is all about the boxes.< / p >
2024-09-05 18:03:19 +00:00
< / div >
2022-05-23 22:38:50 +00:00
< / div >
2022-04-02 13:30:16 +00:00
< h2 id = "usage" > Usage< / h2 >
2024-09-03 17:09:09 +00:00
< p > While the examples are using shortcodes with named parameter you are free to use positional as well, use it as < a href = "/hugo-theme-relearn/cont/markdown/index.html#github-styled-alerts" > GitHub< / a > or < a href = "/hugo-theme-relearn/cont/markdown/index.html#obsidian-styled-alerts" > Obsidian< / a > styled alerts and also call this shortcode from your own partials.< / p >
2023-07-27 15:06:14 +00:00
< div class = "tab-panel" data-tab-group = "shortcode-parameter" >
2022-05-23 22:38:50 +00:00
< div class = "tab-nav" >
2023-06-06 17:55:15 +00:00
< div class = "tab-nav-title" > ​ < / div >
2022-05-23 22:38:50 +00:00
< button
2024-08-13 11:44:38 +00:00
data-tab-item="markdown"
2023-11-18 23:55:52 +00:00
class="tab-nav-button tab-panel-style cstyle initial active" tabindex="-1"
2024-08-13 11:44:38 +00:00
onclick="switchTab('shortcode-parameter','markdown')"
>
< span class = "tab-nav-text" > markdown< / span >
< / button >
< button
data-tab-item="shortcode"
class="tab-nav-button tab-panel-style cstyle initial"
2023-07-27 15:06:14 +00:00
onclick="switchTab('shortcode-parameter','shortcode')"
2023-01-29 16:05:10 +00:00
>
2023-10-01 19:07:53 +00:00
< span class = "tab-nav-text" > shortcode< / span >
2023-06-04 22:28:49 +00:00
< / button >
2022-05-23 22:38:50 +00:00
< button
2023-09-05 11:10:04 +00:00
data-tab-item="shortcode-positional"
2023-06-06 16:16:06 +00:00
class="tab-nav-button tab-panel-style cstyle initial"
2023-09-05 11:10:04 +00:00
onclick="switchTab('shortcode-parameter','shortcode-positional')"
2023-01-29 16:05:10 +00:00
>
2023-10-01 19:07:53 +00:00
< span class = "tab-nav-text" > shortcode (positional)< / span >
2023-06-04 22:28:49 +00:00
< / button >
2022-06-22 22:08:50 +00:00
< button
data-tab-item="partial"
2023-06-06 16:16:06 +00:00
class="tab-nav-button tab-panel-style cstyle initial"
2023-07-27 15:06:14 +00:00
onclick="switchTab('shortcode-parameter','partial')"
2023-01-29 16:05:10 +00:00
>
2023-10-01 19:07:53 +00:00
< span class = "tab-nav-text" > partial< / span >
2023-06-04 22:28:49 +00:00
< / button >
2022-05-23 22:38:50 +00:00
< / div >
2023-06-05 16:33:00 +00:00
< div class = "tab-content-container" >
2023-01-29 16:05:10 +00:00
< div
2024-08-13 11:44:38 +00:00
data-tab-item="markdown"
2023-06-06 16:16:06 +00:00
class="tab-content tab-panel-style cstyle initial active">
2023-06-05 16:33:00 +00:00
< div class = "tab-content-text" >
2024-09-03 21:02:45 +00:00
< div class = "highlight wrap-code" > < pre tabindex = "0" class = "chroma" > < code class = "language-md" data-lang = "md" > < span class = "line" > < span class = "cl" > < span class = "k" > > < / span > < span class = "ge" > [!primary] There may be pirates
2024-09-05 18:03:19 +00:00
< / span > < / span > < / span > < span class = "line" > < span class = "cl" > < span class = "ge" > < / span > > It is all about the boxes.< / span > < / span > < / code > < / pre > < / div >
< / div >
2024-08-13 11:44:38 +00:00
< / div >
< div
data-tab-item="shortcode"
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-go" data-lang = "go" > < span class = "line" > < span class = "cl" > < span class = "p" > {{< / span > < span class = "o" > %< / span > < span class = "nx" > notice< / span > < span class = "nx" > style< / span > < span class = "p" > =< / span > < span class = "s" > " primary" < / span > < span class = "nx" > title< / span > < span class = "p" > =< / span > < span class = "s" > " There may be pirates" < / span > < span class = "nx" > icon< / span > < span class = "p" > =< / span > < span class = "s" > " skull-crossbones" < / span > < span class = "o" > %< / span > < span class = "p" > }}< / span >
2022-05-23 22:38:50 +00:00
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "nx" > It< / span > < span class = "nx" > is< / span > < span class = "nx" > all< / span > < span class = "nx" > about< / span > < span class = "nx" > the< / span > < span class = "nx" > boxes< / span > < span class = "p" > .< / span >
2024-09-05 18:03:19 +00:00
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "p" > {{< / span > < span class = "o" > %< / span > < span class = "o" > /< / span > < span class = "nx" > notice< / span > < span class = "o" > %< / span > < span class = "p" > }}< / span > < / span > < / span > < / code > < / pre > < / div >
< / div >
2023-06-05 16:33:00 +00:00
< / div >
2023-01-29 16:05:10 +00:00
< div
2023-09-05 11:10:04 +00:00
data-tab-item="shortcode-positional"
2023-06-06 16:16:06 +00:00
class="tab-content tab-panel-style cstyle initial">
2023-06-05 16:33:00 +00:00
< 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-go" data-lang = "go" > < span class = "line" > < span class = "cl" > < span class = "p" > {{< / span > < span class = "o" > %< / span > < span class = "nx" > notice< / span > < span class = "nx" > primary< / span > < span class = "s" > " There may be pirates" < / span > < span class = "s" > " skull-crossbones" < / span > < span class = "o" > %< / span > < span class = "p" > }}< / span >
2022-05-23 22:38:50 +00:00
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "nx" > It< / span > < span class = "nx" > is< / span > < span class = "nx" > all< / span > < span class = "nx" > about< / span > < span class = "nx" > the< / span > < span class = "nx" > boxes< / span > < span class = "p" > .< / span >
2024-09-05 18:03:19 +00:00
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "p" > {{< / span > < span class = "o" > %< / span > < span class = "o" > /< / span > < span class = "nx" > notice< / span > < span class = "o" > %< / span > < span class = "p" > }}< / span > < / span > < / span > < / code > < / pre > < / div >
< / div >
2023-06-05 16:33:00 +00:00
< / div >
2023-01-29 16:05:10 +00:00
< div
data-tab-item="partial"
2023-06-06 16:16:06 +00:00
class="tab-content tab-panel-style cstyle initial">
2023-06-05 16:33:00 +00:00
< 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-go" data-lang = "go" > < span class = "line" > < span class = "cl" > < span class = "p" > {{< / span > < span class = "nx" > partial< / span > < span class = "s" > " shortcodes/notice.html" < / span > < span class = "p" > (< / span > < span class = "nx" > dict< / span >
2023-07-27 15:06:14 +00:00
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "s" > " page" < / span > < span class = "p" > .< / span >
2022-06-22 22:08:50 +00:00
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "s" > " style" < / span > < span class = "s" > " primary" < / span >
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "s" > " title" < / span > < span class = "s" > " There may be pirates" < / span >
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "s" > " icon" < / span > < span class = "s" > " skull-crossbones" < / span >
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "s" > " content" < / span > < span class = "s" > " It is all about the boxes." < / span >
2024-09-05 18:03:19 +00:00
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "p" > )}}< / span > < / span > < / span > < / code > < / pre > < / div >
< / div >
2023-06-05 16:33:00 +00:00
< / div >
2022-05-23 22:38:50 +00:00
< / div >
< / div >
< h3 id = "parameter" > Parameter< / h3 >
< table >
2024-09-03 17:09:09 +00:00
< thead >
< tr >
< th style = "text-align: left" > Name< / th >
< th style = "text-align: left" > Position< / th >
< th style = "text-align: left" > Default< / th >
< th style = "text-align: left" > Notes< / th >
< / tr >
< / thead >
< tbody >
< tr >
< td style = "text-align: left" > < strong > style< / strong > < / td >
< td style = "text-align: left" > 1< / td >
< td style = "text-align: left" > < code > default< / code > < / td >
2024-09-12 09:17:26 +00:00
< td style = "text-align: left" > The style scheme used for the box.< br > < br > - by severity: < code > caution< / code > , < code > important< / code > , < code > info< / code > , < code > note< / code > , < code > tip< / code > , < code > warning< / code > < br > - by brand color: < code > primary< / code > , < code > secondary< / code > , < code > accent< / code > < br > - by color: < code > blue< / code > , < code > cyan< / code > , < code > green< / code > , < code > grey< / code > , < code > magenta< / code > , < code > orange< / code > , < code > red< / code > < br > - by special color: < code > default< / code > , < code > transparent< / code > , < code > code< / code > < br > < br > You can also < a href = "/hugo-theme-relearn/shortcodes/notice/index.html#configuration" > define your own styles< / a > .< / td >
2024-09-03 17:09:09 +00:00
< / tr >
< tr >
< td style = "text-align: left" > < strong > color< / strong > < / td >
< td style = "text-align: left" > < / td >
< td style = "text-align: left" > see notes< / td >
< td style = "text-align: left" > The < a href = "https://developer.mozilla.org/en-US/docs/Web/CSS/color_value" rel = "external" target = "_self" > CSS color value< / a > to be used. If not set, the chosen color depends on the < strong > style< / strong > . Any given value will overwrite the default.< br > < br > - for severity styles: a nice matching color for the severity< br > - for all other styles: the corresponding color< / td >
< / tr >
< tr >
< td style = "text-align: left" > < strong > title< / strong > < / td >
< td style = "text-align: left" > 2< / td >
< td style = "text-align: left" > see notes< / td >
< td style = "text-align: left" > Arbitrary text for the box title. Depending on the < strong > style< / strong > there may be a default title. Any given value will overwrite the default.< br > < br > - for severity styles: the matching title for the severity< br > - for all other styles: < em > < empty> < / em > < br > < br > If you want no title for a severity style, you have to set this parameter to < code > " " < / code > (a non empty string filled with spaces)< / td >
< / tr >
< tr >
< td style = "text-align: left" > < strong > icon< / strong > < / td >
< td style = "text-align: left" > 3< / td >
< td style = "text-align: left" > see notes< / td >
< td style = "text-align: left" > < a href = "/hugo-theme-relearn/shortcodes/icon/index.html#finding-an-icon" > Font Awesome icon name< / a > set to the left of the title. Depending on the < strong > style< / strong > there may be a default icon. Any given value will overwrite the default.< br > < br > - for severity styles: a nice matching icon for the severity< br > - for all other styles: < em > < empty> < / em > < br > < br > If you want no icon for a severity style, you have to set this parameter to < code > " " < / code > (a non empty string filled with spaces)< / td >
< / tr >
< tr >
< td style = "text-align: left" > < strong > expanded< / strong > < / td >
< td style = "text-align: left" > < / td >
< td style = "text-align: left" > < em > < empty> < / em > < / td >
2024-09-03 17:48:08 +00:00
< td style = "text-align: left" > Whether to draw an expander and how the content is displayed.< br > < br > - < em > < empty> < / em > : no expander is drawn and the content is permanently shown< br > - < code > true< / code > : the expander is drawn and the content is initially shown< br > - < code > false< / code > : the expander is drawn and the content is initially hidden< / td >
2024-09-03 17:09:09 +00:00
< / tr >
< tr >
< td style = "text-align: left" > < em > < strong > < content> < / strong > < / em > < / td >
< td style = "text-align: left" > < / td >
< td style = "text-align: left" > < em > < empty> < / em > < / td >
< td style = "text-align: left" > Arbitrary text to be displayed in box.< / td >
< / tr >
< / tbody >
2022-05-23 22:38:50 +00:00
< / table >
2024-09-12 05:56:00 +00:00
< h2 id = "configuration" > Configuration< / h2 >
< p > Besides the predefined < code > style< / code > values, you are able to define your own in the < code > hugo.toml< / code > .< / p >
< div class = "tab-panel" data-tab-group = "config-code" >
< div class = "tab-nav" >
< div class = "tab-nav-title" > hugo.< / div >
< button
data-tab-item="toml"
class="tab-nav-button tab-panel-style cstyle initial active" tabindex="-1"
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')"
>
< span class = "tab-nav-text" > json< / span >
< / button >
< / div >
< div class = "tab-content-container" >
< div
data-tab-item="toml"
class="tab-content tab-panel-style cstyle initial active">
< div class = "tab-content-text" >
< 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 >
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "p" > [[< / span > < span class = "nx" > params< / span > < span class = "p" > .< / span > < span class = "nx" > boxStyle< / span > < span class = "p" > ]]< / span >
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "nx" > color< / span > < span class = "p" > =< / span > < span class = "s1" > ' gold' < / span >
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "nx" > i18n< / span > < span class = "p" > =< / span > < span class = "s1" > ' ' < / span >
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "nx" > icon< / span > < span class = "p" > =< / span > < span class = "s1" > ' rainbow' < / span >
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "nx" > identifier< / span > < span class = "p" > =< / span > < span class = "s1" > ' magic' < / span >
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "nx" > title< / span > < span class = "p" > =< / span > < span class = "s1" > ' Magic' < / 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" >
< 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" >
< / span > < / span > < / span > < span class = "line" > < span class = "cl" > < span class = "w" > < / span > < span class = "nt" > boxStyle< / span > < span class = "p" > :< / span > < span class = "w" >
< / span > < / span > < / span > < span class = "line" > < span class = "cl" > < span class = "w" > < / span > - < span class = "nt" > color< / span > < span class = "p" > :< / span > < span class = "w" > < / span > < span class = "l" > gold< / span > < span class = "w" >
< / span > < / span > < / span > < span class = "line" > < span class = "cl" > < span class = "w" > < / span > < span class = "nt" > i18n< / span > < span class = "p" > :< / span > < span class = "w" > < / span > < span class = "s2" > " " < / span > < span class = "w" >
< / span > < / span > < / span > < span class = "line" > < span class = "cl" > < span class = "w" > < / span > < span class = "nt" > icon< / span > < span class = "p" > :< / span > < span class = "w" > < / span > < span class = "l" > rainbow< / 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" > magic< / span > < span class = "w" >
< / span > < / span > < / span > < span class = "line" > < span class = "cl" > < span class = "w" > < / span > < span class = "nt" > title< / span > < span class = "p" > :< / span > < span class = "w" > < / span > < span class = "l" > Magic< / 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" >
< 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 >
< / 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" > " boxStyle" < / 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" > " color" < / span > < span class = "p" > :< / span > < span class = "s2" > " gold" < / span > < span class = "p" > ,< / span >
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "nt" > " i18n" < / span > < span class = "p" > :< / span > < span class = "s2" > " " < / span > < span class = "p" > ,< / span >
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "nt" > " icon" < / span > < span class = "p" > :< / span > < span class = "s2" > " rainbow" < / 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" > " magic" < / span > < span class = "p" > ,< / span >
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "nt" > " title" < / span > < span class = "p" > :< / span > < span class = "s2" > " Magic" < / 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 >
< / div >
< / div >
< / div >
< p > The < code > style< / code > parameter must match the < code > identifier< / code > . The title for the style will be determined from the < code > title< / code > . If no < code > title< / code > but a < code > i18n< / code > is set, the title will be taken from the translation files by that key. The < code > title< / code > may be empty in which case, the box does not contain a default title. < code > icon< / code > and < code > color< / code > are working similar.< / p >
2024-09-12 09:17:26 +00:00
< p > You can also redefine the predefined styles if you’ re not satisfied with the default values.< / p >
2024-09-12 05:56:00 +00:00
< p > Below is a < a href = "/hugo-theme-relearn/shortcodes/notice/index.html#user-defined-style" > usage example< / a > .< / p >
2022-04-02 13:30:16 +00:00
< h2 id = "examples" > Examples< / h2 >
2024-09-01 11:58:33 +00:00
< h3 id = "by-severity-using-markdown-syntax" > By Severity Using Markdown Syntax< / h3 >
< div class = "highlight wrap-code" > < pre tabindex = "0" class = "chroma" > < code class = "language-md" data-lang = "md" > < span class = "line" > < span class = "cl" > < span class = "k" > > < / span > < span class = "ge" > [!CAUTION]
< / span > < / span > < / span > < span class = "line" > < span class = "cl" > < span class = "ge" > < / span > < span class = "k" > > < / span > < span class = "ge" > Advises about risks or negative outcomes of certain actions.
< / span > < / span > < / span > < span class = "line" > < span class = "cl" > < span class = "ge" > < / span > < span class = "k" >
< / span > < / span > < / span > < span class = "line" > < span class = "cl" > < span class = "k" > > < / span > < span class = "ge" > [!IMPORTANT]
< / span > < / span > < / span > < span class = "line" > < span class = "cl" > < span class = "ge" > < / span > < span class = "k" > > < / span > < span class = "ge" > Key information users need to know to achieve their goal.
< / span > < / span > < / span > < span class = "line" > < span class = "cl" > < span class = "ge" > < / span > < span class = "k" >
< / span > < / span > < / span > < span class = "line" > < span class = "cl" > < span class = "k" > > < / span > < span class = "ge" > [!INFO]
< / span > < / span > < / span > < span class = "line" > < span class = "cl" > < span class = "ge" > < / span > < span class = "k" > > < / span > < span class = "ge" > Information that users < ins> _might_< /ins> find interesting.
< / span > < / span > < / span > < span class = "line" > < span class = "cl" > < span class = "ge" > < / span > < span class = "k" >
< / span > < / span > < / span > < span class = "line" > < span class = "cl" > < span class = "k" > > < / span > < span class = "ge" > [!NOTE]
< / span > < / span > < / span > < span class = "line" > < span class = "cl" > < span class = "ge" > < / span > < span class = "k" > > < / span > < span class = "ge" > Useful information that users should know, even when skimming content.
< / span > < / span > < / span > < span class = "line" > < span class = "cl" > < span class = "ge" > < / span > < span class = "k" >
< / span > < / span > < / span > < span class = "line" > < span class = "cl" > < span class = "k" > > < / span > < span class = "ge" > [!TIP]
< / span > < / span > < / span > < span class = "line" > < span class = "cl" > < span class = "ge" > < / span > < span class = "k" > > < / span > < span class = "ge" > Helpful advice for doing things better or more easily.
< / span > < / span > < / span > < span class = "line" > < span class = "cl" > < span class = "ge" > < / span > < span class = "k" >
< / span > < / span > < / span > < span class = "line" > < span class = "cl" > < span class = "k" > > < / span > < span class = "ge" > [!WARNING]
< / span > < / span > < / span > < span class = "line" > < span class = "cl" > < span class = "ge" > < / span > > Urgent info that needs immediate user attention to avoid problems.< / span > < / span > < / code > < / pre > < / div >
2024-08-13 11:44:38 +00:00
< div class = "box notices cstyle caution" >
2024-09-01 11:58:33 +00:00
< div class = "box-label" >
< i class = "fa-fw fas fa-hand" > < / i > Caution
< / div >
2022-12-01 00:38:08 +00:00
< div class = "box-content" >
2024-09-01 11:58:33 +00:00
< p > Advises about risks or negative outcomes of certain actions.< / p >
2024-09-05 18:03:19 +00:00
< / div >
2024-08-13 11:44:38 +00:00
< / div >
< div class = "box notices cstyle important" >
2024-09-01 11:58:33 +00:00
< div class = "box-label" >
< i class = "fa-fw fas fa-bolt" > < / i > Important
< / div >
2024-08-13 11:44:38 +00:00
< div class = "box-content" >
2024-09-01 11:58:33 +00:00
< p > Key information users need to know to achieve their goal.< / p >
2024-09-05 18:03:19 +00:00
< / div >
2024-08-13 11:44:38 +00:00
< / div >
< div class = "box notices cstyle info" >
2024-09-01 11:58:33 +00:00
< div class = "box-label" >
< i class = "fa-fw fas fa-info-circle" > < / i > Info
< / div >
2024-08-13 11:44:38 +00:00
< div class = "box-content" >
2024-09-03 17:09:09 +00:00
< p > Information that users < ins > < em > might< / em > < / ins > find interesting.< / p >
2024-09-05 18:03:19 +00:00
< / div >
2023-06-03 09:12:46 +00:00
< / div >
2023-06-03 22:20:43 +00:00
< div class = "box notices cstyle note" >
2024-09-01 11:58:33 +00:00
< div class = "box-label" >
< i class = "fa-fw fas fa-exclamation-circle" > < / i > Note
< / div >
2022-12-01 00:38:08 +00:00
< div class = "box-content" >
2024-09-01 11:58:33 +00:00
< p > Useful information that users should know, even when skimming content.< / p >
2024-09-05 18:03:19 +00:00
< / div >
2022-04-02 13:30:16 +00:00
< / div >
2023-06-03 22:20:43 +00:00
< div class = "box notices cstyle tip" >
2024-09-01 11:58:33 +00:00
< div class = "box-label" >
< i class = "fa-fw fas fa-lightbulb" > < / i > Tip
< / div >
2022-12-01 00:38:08 +00:00
< div class = "box-content" >
2024-09-01 11:58:33 +00:00
< p > Helpful advice for doing things better or more easily.< / p >
2024-09-05 18:03:19 +00:00
< / div >
2022-05-23 22:38:50 +00:00
< / div >
2023-06-03 22:20:43 +00:00
< div class = "box notices cstyle warning" >
2024-09-01 11:58:33 +00:00
< div class = "box-label" >
< i class = "fa-fw fas fa-exclamation-triangle" > < / i > Warning
< / div >
2022-12-01 00:38:08 +00:00
< div class = "box-content" >
2024-09-01 11:58:33 +00:00
< p > Urgent info that needs immediate user attention to avoid problems.< / p >
2024-09-05 18:03:19 +00:00
< / div >
2022-05-23 22:38:50 +00:00
< / div >
2024-09-05 18:03:19 +00:00
< h3 id = "by-brand-colors-with-title-and-icon-variantion" > By Brand Colors with Title and Icon Variantion< / h3 >
2024-03-11 20:44:09 +00:00
< div class = "highlight wrap-code" > < pre tabindex = "0" class = "chroma" > < code class = "language-go" data-lang = "go" > < span class = "line" > < span class = "cl" > < span class = "p" > {{< / span > < span class = "o" > %< / span > < span class = "nx" > notice< / span > < span class = "nx" > style< / span > < span class = "p" > =< / span > < span class = "s" > " primary" < / span > < span class = "nx" > title< / span > < span class = "p" > =< / span > < span class = "s" > " Primary" < / span > < span class = "o" > %< / span > < span class = "p" > }}< / span >
2022-06-07 18:30:50 +00:00
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "nx" > A< / span > < span class = "o" > **< / span > < span class = "nx" > primary< / span > < span class = "o" > **< / span > < span class = "nx" > disclaimer< / span >
2024-09-01 11:58:33 +00:00
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "p" > {{< / span > < span class = "o" > %< / span > < span class = "o" > /< / span > < span class = "nx" > notice< / span > < span class = "o" > %< / span > < span class = "p" > }}< / span >
< / span > < / span > < span class = "line" > < span class = "cl" >
2024-09-03 17:09:09 +00:00
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "p" > {{< / span > < span class = "o" > %< / span > < span class = "nx" > notice< / span > < span class = "nx" > style< / span > < span class = "p" > =< / span > < span class = "s" > " secondary" < / span > < span class = "nx" > title< / span > < span class = "p" > =< / span > < span class = "s" > " Secondary" < / span > < span class = "o" > %< / span > < span class = "p" > }}< / span >
2024-09-01 11:58:33 +00:00
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "nx" > A< / span > < span class = "o" > **< / span > < span class = "nx" > secondary< / span > < span class = "o" > **< / span > < span class = "nx" > disclaimer< / span >
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "p" > {{< / span > < span class = "o" > %< / span > < span class = "o" > /< / span > < span class = "nx" > notice< / span > < span class = "o" > %< / span > < span class = "p" > }}< / span >
< / span > < / span > < span class = "line" > < span class = "cl" >
2024-09-03 17:09:09 +00:00
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "p" > {{< / span > < span class = "o" > %< / span > < span class = "nx" > notice< / span > < span class = "nx" > style< / span > < span class = "p" > =< / span > < span class = "s" > " accent" < / span > < span class = "nx" > icon< / span > < span class = "p" > =< / span > < span class = "s" > " stopwatch" < / span > < span class = "o" > %< / span > < span class = "p" > }}< / span >
2024-09-01 11:58:33 +00:00
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "nx" > An< / span > < span class = "o" > **< / span > < span class = "nx" > accent< / span > < span class = "o" > **< / span > < span class = "nx" > disclaimer< / span >
2023-06-21 23:23:13 +00:00
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "p" > {{< / span > < span class = "o" > %< / span > < span class = "o" > /< / span > < span class = "nx" > notice< / span > < span class = "o" > %< / span > < span class = "p" > }}< / span > < / span > < / span > < / code > < / pre > < / div >
2023-06-03 22:20:43 +00:00
< div class = "box notices cstyle primary" >
2024-09-01 11:58:33 +00:00
< div class = "box-label" >
Primary
< / div >
2022-12-01 00:38:08 +00:00
< div class = "box-content" >
2022-05-23 22:38:50 +00:00
< p > A < strong > primary< / strong > disclaimer< / p >
2024-09-05 18:03:19 +00:00
< / div >
2023-06-03 09:12:46 +00:00
< / div >
2023-06-03 22:20:43 +00:00
< div class = "box notices cstyle secondary" >
2024-09-01 11:58:33 +00:00
< div class = "box-label" >
2024-09-03 17:09:09 +00:00
Secondary
2024-09-01 11:58:33 +00:00
< / div >
2022-12-01 00:38:08 +00:00
< div class = "box-content" >
2022-05-23 22:38:50 +00:00
< p > A < strong > secondary< / strong > disclaimer< / p >
2024-09-05 18:03:19 +00:00
< / div >
2023-06-03 09:12:46 +00:00
< / div >
2023-06-03 22:20:43 +00:00
< div class = "box notices cstyle accent" >
2024-09-01 11:58:33 +00:00
< div class = "box-label" >
2024-09-03 17:09:09 +00:00
< i class = "fa-fw fas fa-stopwatch" > < / i >
2024-09-01 11:58:33 +00:00
< / div >
2023-01-23 23:14:54 +00:00
< div class = "box-content" >
< p > An < strong > accent< / strong > disclaimer< / p >
2024-09-05 18:03:19 +00:00
< / div >
2023-01-23 23:14:54 +00:00
< / div >
2024-09-03 17:09:09 +00:00
< h3 id = "by-color" > By Color< / h3 >
< div class = "highlight wrap-code" > < pre tabindex = "0" class = "chroma" > < code class = "language-go" data-lang = "go" > < span class = "line" > < span class = "cl" > < span class = "p" > {{< / span > < span class = "o" > %< / span > < span class = "nx" > notice< / span > < span class = "nx" > style< / span > < span class = "p" > =< / span > < span class = "s" > " blue" < / span > < span class = "nx" > title< / span > < span class = "p" > =< / span > < span class = "s" > " Blue" < / span > < span class = "o" > %< / span > < span class = "p" > }}< / span >
2022-06-07 18:30:50 +00:00
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "nx" > A< / span > < span class = "o" > **< / span > < span class = "nx" > blue< / span > < span class = "o" > **< / span > < span class = "nx" > disclaimer< / span >
2024-09-01 11:58:33 +00:00
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "p" > {{< / span > < span class = "o" > %< / span > < span class = "o" > /< / span > < span class = "nx" > notice< / span > < span class = "o" > %< / span > < span class = "p" > }}< / span >
< / span > < / span > < span class = "line" > < span class = "cl" >
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "p" > {{< / span > < span class = "o" > %< / span > < span class = "nx" > notice< / span > < span class = "nx" > style< / span > < span class = "p" > =< / span > < span class = "s" > " cyan" < / span > < span class = "nx" > title< / span > < span class = "p" > =< / span > < span class = "s" > " Cyan" < / span > < span class = "o" > %< / span > < span class = "p" > }}< / span >
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "nx" > A< / span > < span class = "o" > **< / span > < span class = "nx" > cyan< / span > < span class = "o" > **< / span > < span class = "nx" > disclaimer< / span >
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "p" > {{< / span > < span class = "o" > %< / span > < span class = "o" > /< / span > < span class = "nx" > notice< / span > < span class = "o" > %< / span > < span class = "p" > }}< / span >
< / span > < / span > < span class = "line" > < span class = "cl" >
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "p" > {{< / span > < span class = "o" > %< / span > < span class = "nx" > notice< / span > < span class = "nx" > style< / span > < span class = "p" > =< / span > < span class = "s" > " green" < / span > < span class = "nx" > title< / span > < span class = "p" > =< / span > < span class = "s" > " Green" < / span > < span class = "o" > %< / span > < span class = "p" > }}< / span >
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "nx" > A< / span > < span class = "o" > **< / span > < span class = "nx" > green< / span > < span class = "o" > **< / span > < span class = "nx" > disclaimer< / span >
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "p" > {{< / span > < span class = "o" > %< / span > < span class = "o" > /< / span > < span class = "nx" > notice< / span > < span class = "o" > %< / span > < span class = "p" > }}< / span >
< / span > < / span > < span class = "line" > < span class = "cl" >
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "p" > {{< / span > < span class = "o" > %< / span > < span class = "nx" > notice< / span > < span class = "nx" > style< / span > < span class = "p" > =< / span > < span class = "s" > " grey" < / span > < span class = "nx" > icon< / span > < span class = "p" > =< / span > < span class = "s" > " bug" < / span > < span class = "o" > %< / span > < span class = "p" > }}< / span >
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "nx" > A< / span > < span class = "o" > **< / span > < span class = "nx" > grey< / span > < span class = "o" > **< / span > < span class = "nx" > disclaimer< / span >
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "p" > {{< / span > < span class = "o" > %< / span > < span class = "o" > /< / span > < span class = "nx" > notice< / span > < span class = "o" > %< / span > < span class = "p" > }}< / span >
< / span > < / span > < span class = "line" > < span class = "cl" >
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "p" > {{< / span > < span class = "o" > %< / span > < span class = "nx" > notice< / span > < span class = "nx" > style< / span > < span class = "p" > =< / span > < span class = "s" > " magenta" < / span > < span class = "nx" > title< / span > < span class = "p" > =< / span > < span class = "s" > " Magenta" < / span > < span class = "o" > %< / span > < span class = "p" > }}< / span >
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "nx" > A< / span > < span class = "o" > **< / span > < span class = "nx" > magenta< / span > < span class = "o" > **< / span > < span class = "nx" > disclaimer< / span >
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "p" > {{< / span > < span class = "o" > %< / span > < span class = "o" > /< / span > < span class = "nx" > notice< / span > < span class = "o" > %< / span > < span class = "p" > }}< / span >
< / span > < / span > < span class = "line" > < span class = "cl" >
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "p" > {{< / span > < span class = "o" > %< / span > < span class = "nx" > notice< / span > < span class = "nx" > style< / span > < span class = "p" > =< / span > < span class = "s" > " orange" < / span > < span class = "nx" > title< / span > < span class = "p" > =< / span > < span class = "s" > " Orange" < / span > < span class = "nx" > icon< / span > < span class = "p" > =< / span > < span class = "s" > " bug" < / span > < span class = "o" > %< / span > < span class = "p" > }}< / span >
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "nx" > A< / span > < span class = "o" > **< / span > < span class = "nx" > orange< / span > < span class = "o" > **< / span > < span class = "nx" > disclaimer< / span >
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "p" > {{< / span > < span class = "o" > %< / span > < span class = "o" > /< / span > < span class = "nx" > notice< / span > < span class = "o" > %< / span > < span class = "p" > }}< / span >
< / span > < / span > < span class = "line" > < span class = "cl" >
2024-09-03 17:09:09 +00:00
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "p" > {{< / span > < span class = "o" > %< / span > < span class = "nx" > notice< / span > < span class = "nx" > style< / span > < span class = "p" > =< / span > < span class = "s" > " red" < / span > < span class = "nx" > title< / span > < span class = "p" > =< / span > < span class = "s" > " Red" < / span > < span class = "o" > %< / span > < span class = "p" > }}< / span >
2024-09-01 11:58:33 +00:00
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "nx" > A< / span > < span class = "o" > **< / span > < span class = "nx" > red< / span > < span class = "o" > **< / span > < span class = "nx" > disclaimer< / span >
2023-06-21 23:23:13 +00:00
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "p" > {{< / span > < span class = "o" > %< / span > < span class = "o" > /< / span > < span class = "nx" > notice< / span > < span class = "o" > %< / span > < span class = "p" > }}< / span > < / span > < / span > < / code > < / pre > < / div >
2023-06-03 22:20:43 +00:00
< div class = "box notices cstyle blue" >
2024-09-01 11:58:33 +00:00
< div class = "box-label" >
2024-09-03 17:09:09 +00:00
Blue
2024-09-01 11:58:33 +00:00
< / div >
2022-12-01 00:38:08 +00:00
< div class = "box-content" >
2022-05-23 22:38:50 +00:00
< p > A < strong > blue< / strong > disclaimer< / p >
2024-09-05 18:03:19 +00:00
< / div >
2023-06-03 09:12:46 +00:00
< / div >
2024-09-01 11:58:33 +00:00
< div class = "box notices cstyle cyan" >
< div class = "box-label" >
Cyan
< / div >
< div class = "box-content" >
< p > A < strong > cyan< / strong > disclaimer< / p >
2024-09-05 18:03:19 +00:00
< / div >
2024-09-01 11:58:33 +00:00
< / div >
2023-06-03 22:20:43 +00:00
< div class = "box notices cstyle green" >
2024-09-01 11:58:33 +00:00
< div class = "box-label" >
Green
< / div >
2022-12-01 00:38:08 +00:00
< div class = "box-content" >
2022-05-23 22:38:50 +00:00
< p > A < strong > green< / strong > disclaimer< / p >
2024-09-05 18:03:19 +00:00
< / div >
2023-06-03 09:12:46 +00:00
< / div >
2023-06-03 22:20:43 +00:00
< div class = "box notices cstyle grey" >
2024-09-01 11:58:33 +00:00
< div class = "box-label" >
< i class = "fa-fw fas fa-bug" > < / i >
< / div >
2022-12-01 00:38:08 +00:00
< div class = "box-content" >
2022-05-23 22:38:50 +00:00
< p > A < strong > grey< / strong > disclaimer< / p >
2024-09-05 18:03:19 +00:00
< / div >
2023-06-03 09:12:46 +00:00
< / div >
2024-09-01 11:58:33 +00:00
< div class = "box notices cstyle magenta" >
< div class = "box-label" >
Magenta
< / div >
< div class = "box-content" >
< p > A < strong > magenta< / strong > disclaimer< / p >
2024-09-05 18:03:19 +00:00
< / div >
2024-09-01 11:58:33 +00:00
< / div >
2023-06-03 22:20:43 +00:00
< div class = "box notices cstyle orange" >
2024-09-01 11:58:33 +00:00
< div class = "box-label" >
< i class = "fa-fw fas fa-bug" > < / i > Orange
< / div >
2022-12-01 00:38:08 +00:00
< div class = "box-content" >
2022-05-23 22:38:50 +00:00
< p > A < strong > orange< / strong > disclaimer< / p >
2024-09-05 18:03:19 +00:00
< / div >
2023-06-03 09:12:46 +00:00
< / div >
2023-06-03 22:20:43 +00:00
< div class = "box notices cstyle red" >
2024-09-01 11:58:33 +00:00
< div class = "box-label" >
2024-09-03 17:09:09 +00:00
Red
2024-09-01 11:58:33 +00:00
< / div >
2022-12-01 00:38:08 +00:00
< div class = "box-content" >
2022-05-23 22:38:50 +00:00
< p > A < strong > red< / strong > disclaimer< / p >
2024-09-05 18:03:19 +00:00
< / div >
2022-05-23 22:38:50 +00:00
< / div >
< h3 id = "by-special-color" > By Special Color< / h3 >
2024-09-03 17:09:09 +00:00
< div class = "highlight wrap-code" > < pre tabindex = "0" class = "chroma" > < code class = "language-go" data-lang = "go" > < span class = "line" > < span class = "cl" > < span class = "p" > {{< / span > < span class = "o" > %< / span > < span class = "nx" > notice< / span > < span class = "nx" > style< / span > < span class = "p" > =< / span > < span class = "s" > " default" < / span > < span class = "nx" > title< / span > < span class = "p" > =< / span > < span class = "s" > " Default" < / span > < span class = "nx" > icon< / span > < span class = "p" > =< / span > < span class = "s" > " skull-crossbones" < / span > < span class = "o" > %< / span > < span class = "p" > }}< / span >
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "nx" > Just< / span > < span class = "nx" > some< / span > < span class = "nx" > grey< / span > < span class = "k" > default< / span > < span class = "nx" > color< / span > < span class = "p" > .< / span >
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "p" > {{< / span > < span class = "o" > %< / span > < span class = "o" > /< / span > < span class = "nx" > notice< / span > < span class = "o" > %< / span > < span class = "p" > }}< / span >
< / span > < / span > < span class = "line" > < span class = "cl" >
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "p" > {{< / span > < span class = "o" > %< / span > < span class = "nx" > notice< / span > < span class = "nx" > style< / span > < span class = "p" > =< / span > < span class = "s" > " code" < / span > < span class = "nx" > title< / span > < span class = "p" > =< / span > < span class = "s" > " Code" < / span > < span class = "nx" > icon< / span > < span class = "p" > =< / span > < span class = "s" > " skull-crossbones" < / span > < span class = "o" > %< / span > < span class = "p" > }}< / span >
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "nx" > Colored< / span > < span class = "nx" > like< / span > < span class = "nx" > a< / span > < span class = "nx" > code< / span > < span class = "nx" > fence< / span > < span class = "p" > .< / span >
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "p" > {{< / span > < span class = "o" > %< / span > < span class = "o" > /< / span > < span class = "nx" > notice< / span > < span class = "o" > %< / span > < span class = "p" > }}< / span >
< / span > < / span > < span class = "line" > < span class = "cl" >
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "p" > {{< / span > < span class = "o" > %< / span > < span class = "nx" > notice< / span > < span class = "nx" > style< / span > < span class = "p" > =< / span > < span class = "s" > " transparent" < / span > < span class = "nx" > title< / span > < span class = "p" > =< / span > < span class = "s" > " Transparent" < / span > < span class = "nx" > icon< / span > < span class = "p" > =< / span > < span class = "s" > " skull-crossbones" < / span > < span class = "o" > %< / span > < span class = "p" > }}< / span >
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "nx" > No< / span > < span class = "nx" > visible< / span > < span class = "nx" > borders< / span > < span class = "p" > .< / span >
2023-06-21 23:23:13 +00:00
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "p" > {{< / span > < span class = "o" > %< / span > < span class = "o" > /< / span > < span class = "nx" > notice< / span > < span class = "o" > %< / span > < span class = "p" > }}< / span > < / span > < / span > < / code > < / pre > < / div >
2023-06-03 22:20:43 +00:00
< div class = "box notices cstyle default" >
2024-09-01 11:58:33 +00:00
< div class = "box-label" >
2024-09-03 17:09:09 +00:00
< i class = "fa-fw fas fa-skull-crossbones" > < / i > Default
2024-09-01 11:58:33 +00:00
< / div >
2022-12-01 00:38:08 +00:00
< div class = "box-content" >
2024-09-03 17:09:09 +00:00
< p > Just some grey default color.< / p >
2024-09-05 18:03:19 +00:00
< / div >
2023-06-03 09:12:46 +00:00
< / div >
2024-09-03 17:09:09 +00:00
< div class = "box notices cstyle code" >
< div class = "box-label" >
< i class = "fa-fw fas fa-skull-crossbones" > < / i > Code
< / div >
< div class = "box-content" >
< p > Colored like a code fence.< / p >
2024-09-05 18:03:19 +00:00
< / div >
2024-09-03 17:09:09 +00:00
< / div >
2023-06-03 22:20:43 +00:00
< div class = "box notices cstyle transparent" >
2024-09-01 11:58:33 +00:00
< div class = "box-label" >
2024-09-03 17:09:09 +00:00
< i class = "fa-fw fas fa-skull-crossbones" > < / i > Transparent
2024-09-01 11:58:33 +00:00
< / div >
2022-12-01 00:38:08 +00:00
< div class = "box-content" >
2024-09-03 17:09:09 +00:00
< p > No visible borders.< / p >
2024-09-05 18:03:19 +00:00
< / div >
2022-04-02 13:30:16 +00:00
< / div >
2024-09-01 11:58:33 +00:00
< h3 id = "various-features" > Various Features< / h3 >
< h4 id = "with-user-defined-color-font-awesome-brand-icon-and-markdown-in-title-and-content" > With User-Defined Color, Font Awesome Brand Icon and Markdown in Title and Content< / h4 >
2024-09-03 17:09:09 +00:00
< div class = "highlight wrap-code" > < pre tabindex = "0" class = "chroma" > < code class = "language-go" data-lang = "go" > < span class = "line" > < span class = "cl" > < span class = "p" > {{< / span > < span class = "o" > %< / span > < span class = "nx" > notice< / span > < span class = "nx" > color< / span > < span class = "p" > =< / span > < span class = "s" > " fuchsia" < / span > < span class = "nx" > title< / span > < span class = "p" > =< / span > < span class = "s" > " **Hugo** is _awesome_" < / span > < span class = "nx" > icon< / span > < span class = "p" > =< / span > < span class = "s" > " fa-fw fab fa-hackerrank" < / span > < span class = "o" > %< / span > < span class = "p" > }}< / span >
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "nx" > You< / span > < span class = "nx" > can< / span > < span class = "nx" > add< / span > < span class = "nx" > standard< / span > < span class = "nx" > markdown< / span > < span class = "nx" > syntax< / span > < span class = "p" > :< / span >
2024-09-01 11:58:33 +00:00
< / span > < / span > < span class = "line" > < span class = "cl" >
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "o" > -< / span > < span class = "nx" > multiple< / span > < span class = "nx" > paragraphs< / span >
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "o" > -< / span > < span class = "nx" > bullet< / span > < span class = "nx" > point< / span > < span class = "nx" > lists< / span >
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "o" > -< / span > < span class = "nx" > _emphasized_< / span > < span class = "p" > ,< / span > < span class = "o" > **< / span > < span class = "nx" > bold< / span > < span class = "o" > **< / span > < span class = "nx" > and< / span > < span class = "nx" > even< / span > < span class = "o" > **< / span > < span class = "nx" > _bold< / span > < span class = "nx" > emphasized_< / span > < span class = "o" > **< / span > < span class = "nx" > text< / span >
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "o" > -< / span > < span class = "p" > [< / span > < span class = "nx" > links< / span > < span class = "p" > ](< / span > < span class = "nx" > https< / span > < span class = "p" > :< / span > < span class = "c1" > //example.com)
< / span > < / span > < / span > < span class = "line" > < span class = "cl" > < span class = "c1" > < / span > < span class = "o" > -< / span > < span class = "nx" > etc< / span > < span class = "p" > .[^< / span > < span class = "nx" > etc< / span > < span class = "p" > ]< / span >
< / span > < / span > < span class = "line" > < span class = "cl" >
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "p" > [^< / span > < span class = "nx" > etc< / span > < span class = "p" > ]:< / span > < span class = "nx" > Et< / span > < span class = "nf" > Cetera< / span > < span class = "p" > (< / span > < span class = "nx" > English< / span > < span class = "p" > :< / span > < span class = "o" > /< / span > < span class = "nx" > ɛtˈ sɛtərə< / span > < span class = "o" > /< / span > < span class = "p" > ),< / span > < span class = "nx" > abbreviated< / span > < span class = "nx" > to< / span > < span class = "nx" > etc< / span > < span class = "p" > .,< / span > < span class = "nx" > etc< / span > < span class = "p" > ,< / span > < span class = "nx" > et< / span > < span class = "nx" > cet< / span > < span class = "p" > .,< / span > < span class = "nx" > is< / span > < span class = "nx" > a< / span > < span class = "nx" > Latin< / span > < span class = "nx" > expression< / span > < span class = "nx" > that< / span > < span class = "nx" > is< / span > < span class = "nx" > used< / span > < span class = "nx" > in< / span > < span class = "nx" > English< / span > < span class = "nx" > to< / span > < span class = "nx" > mean< / span > < span class = "s" > " and other similar things" < / span > < span class = "p" > ,< / span > < span class = "nx" > or< / span > < span class = "s" > " and so forth" < / span >
< / span > < / span > < span class = "line" > < span class = "cl" >
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "s" > ```plaintext
< / span > < / span > < / span > < span class = "line" > < span class = "cl" > < span class = "s" > ...and even source code
< / span > < / span > < / span > < span class = "line" > < span class = "cl" > < span class = "s" > ```< / span >
< / span > < / span > < span class = "line" > < span class = "cl" >
2024-09-03 17:09:09 +00:00
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "p" > > < / span > < span class = "nx" > the< / span > < span class = "nx" > possibilities< / span > < span class = "nx" > are< / span > < span class = "nf" > endless< / span > < span class = "p" > (< / span > < span class = "nx" > almost< / span > < span class = "o" > -< / span > < span class = "nx" > including< / span > < span class = "nx" > other< / span > < span class = "nx" > shortcodes< / span > < span class = "nx" > may< / span > < span class = "nx" > or< / span > < span class = "nx" > may< / span > < span class = "nx" > not< / span > < span class = "nx" > work< / span > < span class = "p" > )< / span > < span class = "p" > (< / span > < span class = "nx" > almost< / span > < span class = "o" > -< / span > < span class = "nx" > including< / span > < span class = "nx" > other< / span > < span class = "nx" > shortcodes< / span > < span class = "nx" > may< / span > < span class = "nx" > or< / span > < span class = "nx" > may< / span > < span class = "nx" > not< / span > < span class = "nx" > work< / span > < span class = "p" > )< / span >
< / span > < / span > < span class = "line" > < span class = "cl" >
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "p" > {{< / span > < span class = "o" > %< / span > < span class = "o" > /< / span > < span class = "nx" > notice< / span > < span class = "o" > %< / span > < span class = "p" > }}< / span > < / span > < / span > < / code > < / pre > < / div >
2023-06-03 22:20:43 +00:00
< div class = "box notices cstyle default" style = "--VARIABLE-BOX-color: fuchsia;" >
2024-09-01 11:58:33 +00:00
< div class = "box-label" >
< i class = "fa-fw fab fa-hackerrank" > < / i > < strong > Hugo< / strong > is < em > awesome< / em >
< / div >
2023-01-23 22:49:15 +00:00
< div class = "box-content" >
2024-09-01 11:58:33 +00:00
< p > You can add standard markdown syntax:< / p >
< ul >
< li > multiple paragraphs< / li >
< li > bullet point lists< / li >
< li > < em > emphasized< / em > , < strong > bold< / strong > and even < strong > < em > bold emphasized< / em > < / strong > text< / li >
< li > < a href = "https://example.com" rel = "external" target = "_self" > links< / a > < / li >
< li > etc.< sup id = "fnref:1" > < a href = "#fn:1" class = "footnote-ref" role = "doc-noteref" > 1< / a > < / sup > < / li >
< / ul >
< div class = "highlight wrap-code" > < pre tabindex = "0" class = "chroma" > < code class = "language-plaintext" data-lang = "plaintext" > < span class = "line" > < span class = "cl" > ...and even source code< / span > < / span > < / code > < / pre > < / div >
2024-09-05 18:03:19 +00:00
< blockquote >
< p > the possibilities are endless (almost - including other shortcodes may or may not work) (almost - including other shortcodes may or may not work)< / p >
< / blockquote >
< div class = "footnotes" role = "doc-endnotes" >
2024-09-01 11:58:33 +00:00
< hr >
< ol >
< li id = "fn:1" >
< p > Et Cetera (English: /ɛtˈ sɛtərə/), abbreviated to etc., etc, et cet., is a Latin expression that is used in English to mean “ and other similar things” , or “ and so forth”   < a href = "#fnref:1" class = "footnote-backref" role = "doc-backlink" > ↩ ︎ < / a > < / p >
< / li >
< / ol >
< / div >
2024-09-05 18:03:19 +00:00
< / div >
2024-09-01 11:58:33 +00:00
< / div >
< h4 id = "expandable-content-area" > Expandable Content Area< / h4 >
2024-09-03 17:09:09 +00:00
< div class = "highlight wrap-code" > < pre tabindex = "0" class = "chroma" > < code class = "language-go" data-lang = "go" > < span class = "line" > < span class = "cl" > < span class = "p" > {{< / span > < span class = "o" > %< / span > < span class = "nx" > notice< / span > < span class = "nx" > style< / span > < span class = "p" > =< / span > < span class = "s" > " green" < / span > < span class = "nx" > title< / span > < span class = "p" > =< / span > < span class = "s" > " Expand me..." < / span > < span class = "nx" > expanded< / span > < span class = "p" > =< / span > < span class = "s" > " true" < / span > < span class = "o" > %< / span > < span class = "p" > }}< / span >
2024-09-01 11:58:33 +00:00
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "nx" > No< / span > < span class = "nx" > need< / span > < span class = "nx" > to< / span > < span class = "nx" > press< / span > < span class = "nx" > you< / span > < span class = "p" > !< / span >
2024-09-03 17:09:09 +00:00
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "p" > {{< / span > < span class = "o" > %< / span > < span class = "o" > /< / span > < span class = "nx" > notice< / span > < span class = "o" > %< / span > < span class = "p" > }}< / span >
< / span > < / span > < span class = "line" > < span class = "cl" >
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "p" > {{< / span > < span class = "o" > %< / span > < span class = "nx" > notice< / span > < span class = "nx" > style< / span > < span class = "p" > =< / span > < span class = "s" > " red" < / span > < span class = "nx" > title< / span > < span class = "p" > =< / span > < span class = "s" > " Expand me..." < / span > < span class = "nx" > expanded< / span > < span class = "p" > =< / span > < span class = "s" > " false" < / span > < span class = "o" > %< / span > < span class = "p" > }}< / span >
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "nx" > Thank< / span > < span class = "nx" > you< / span > < span class = "p" > !< / span >
2024-09-01 11:58:33 +00:00
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "p" > {{< / span > < span class = "o" > %< / span > < span class = "o" > /< / span > < span class = "nx" > notice< / span > < span class = "o" > %< / span > < span class = "p" > }}< / span > < / span > < / span > < / code > < / pre > < / div >
2024-09-03 17:09:09 +00:00
< div class = "expand box notices cstyle green" >
2024-09-12 09:17:26 +00:00
< input type = "checkbox" id = "R-expand-62e2fae596d425f78057845251de57af" aria-controls = "R-expandcontent-62e2fae596d425f78057845251de57af" checked >
< label class = "expand-label box-label" for = "R-expand-62e2fae596d425f78057845251de57af" >
2024-09-01 11:58:33 +00:00
< i class = "expander-icon fa-fw fas fa-chevron-down" > < / i >
< i class = "expander-icon fa-fw fas fa-chevron-right" > < / i > Expand me…
< / label >
< div class = "box-spacer" > < / div >
2024-09-12 09:17:26 +00:00
< div id = "R-expandcontent-62e2fae596d425f78057845251de57af" class = "box-content expand-content" >
2024-09-01 11:58:33 +00:00
< p > No need to press you!< / p >
2024-09-05 18:03:19 +00:00
< / div >
2023-06-03 09:12:46 +00:00
< / div >
2024-09-03 17:09:09 +00:00
< div class = "expand box notices cstyle red" >
2024-09-12 09:17:26 +00:00
< input type = "checkbox" id = "R-expand-3bcdfe0eb4dfef71686bab0c961c792f" aria-controls = "R-expandcontent-3bcdfe0eb4dfef71686bab0c961c792f" >
< label class = "expand-label box-label" for = "R-expand-3bcdfe0eb4dfef71686bab0c961c792f" >
2024-09-01 11:58:33 +00:00
< i class = "expander-icon fa-fw fas fa-chevron-down" > < / i >
< i class = "expander-icon fa-fw fas fa-chevron-right" > < / i > Expand me…
< / label >
< div class = "box-spacer" > < / div >
2024-09-12 09:17:26 +00:00
< div id = "R-expandcontent-3bcdfe0eb4dfef71686bab0c961c792f" class = "box-content expand-content" >
2024-09-01 11:58:33 +00:00
< p > Thank you!< / p >
2024-09-05 18:03:19 +00:00
< / div >
2024-09-01 11:58:33 +00:00
< / div >
2024-09-03 17:09:09 +00:00
< h4 id = "no-content-or-no-title" > No Content or No Title< / h4 >
< div class = "highlight wrap-code" > < pre tabindex = "0" class = "chroma" > < code class = "language-go" data-lang = "go" > < span class = "line" > < span class = "cl" > < span class = "p" > {{< / span > < span class = "o" > %< / span > < span class = "nx" > notice< / span > < span class = "nx" > style< / span > < span class = "p" > =< / span > < span class = "s" > " accent" < / span > < span class = "nx" > title< / span > < span class = "p" > =< / span > < span class = "s" > " Just a bar" < / span > < span class = "o" > %< / span > < span class = "p" > }}< / span >
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "p" > {{< / span > < span class = "o" > %< / span > < span class = "o" > /< / span > < span class = "nx" > notice< / span > < span class = "o" > %< / span > < span class = "p" > }}< / span >
< / span > < / span > < span class = "line" > < span class = "cl" >
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "p" > {{< / span > < span class = "o" > %< / span > < span class = "nx" > notice< / span > < span class = "nx" > style< / span > < span class = "p" > =< / span > < span class = "s" > " accent" < / span > < span class = "o" > %< / span > < span class = "p" > }}< / span >
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "nx" > Just< / span > < span class = "nx" > a< / span > < span class = "nx" > box< / span >
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "p" > {{< / span > < span class = "o" > %< / span > < span class = "o" > /< / span > < span class = "nx" > notice< / span > < span class = "o" > %< / span > < span class = "p" > }}< / span > < / span > < / span > < / code > < / pre > < / div >
2024-09-01 11:58:33 +00:00
< div class = "box notices cstyle accent" >
< div class = "box-label" >
Just a bar
< / div >
2023-01-23 22:49:15 +00:00
< / div >
2024-09-03 17:09:09 +00:00
< div class = "box notices cstyle accent" >
< div class = "box-content" >
< p > Just a box< / p >
2024-09-05 18:03:19 +00:00
< / div >
2024-09-03 17:09:09 +00:00
< / div >
2024-09-03 17:48:08 +00:00
< h4 id = "markdown-styled-alerts" > Markdown Styled Alerts< / h4 >
2024-09-03 21:05:14 +00:00
< div class = "highlight wrap-code" > < pre tabindex = "0" class = "chroma" > < code class = "language-go" data-lang = "go" > < span class = "line" > < span class = "cl" > < span class = "p" > > < / span > < span class = "p" > [!< / span > < span class = "nx" > caution< / span > < span class = "p" > ]< / span > < span class = "nx" > Callouts< / span > < span class = "nx" > can< / span > < span class = "nx" > have< / span > < span class = "nx" > custom< / span > < span class = "nx" > titles< / span >
2024-09-03 17:09:09 +00:00
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "p" > > < / span > < span class = "nx" > Like< / span > < span class = "nx" > this< / span > < span class = "nx" > one< / span > < span class = "p" > .< / span >
< / span > < / span > < span class = "line" > < span class = "cl" >
2024-09-03 21:05:14 +00:00
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "p" > > < / span > < span class = "p" > [!< / span > < span class = "nx" > caution< / span > < span class = "p" > ]< / span > < span class = "nx" > Title< / span > < span class = "o" > -< / span > < span class = "nx" > only< / span > < span class = "nx" > callout< / span >
2024-09-03 17:09:09 +00:00
< / span > < / span > < span class = "line" > < span class = "cl" >
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "p" > > < / span > < span class = "p" > [!< / span > < span class = "nx" > note< / span > < span class = "p" > ]< / span > < span class = "o" > -< / span > < span class = "nx" > Are< / span > < span class = "nx" > callouts< / span > < span class = "nx" > foldable< / span > < span class = "err" > ?< / span >
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "p" > > < / span > < span class = "nx" > Yes< / span > < span class = "p" > !< / span > < span class = "nx" > In< / span > < span class = "nx" > a< / span > < span class = "nx" > foldable< / span > < span class = "nx" > callout< / span > < span class = "p" > ,< / span > < span class = "nx" > the< / span > < span class = "nx" > contents< / span > < span class = "nx" > are< / span > < span class = "nx" > hidden< / span > < span class = "nx" > when< / span > < span class = "nx" > the< / span > < span class = "nx" > callout< / span > < span class = "nx" > is< / span > < span class = "nx" > collapsed< / span >
< / span > < / span > < span class = "line" > < span class = "cl" >
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "p" > > < / span > < span class = "p" > [!< / span > < span class = "nx" > note< / span > < span class = "p" > ]< / span > < span class = "o" > +< / span > < span class = "nx" > Are< / span > < span class = "nx" > callouts< / span > < span class = "nx" > foldable< / span > < span class = "err" > ?< / span >
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "p" > > < / span > < span class = "nx" > Yes< / span > < span class = "p" > !< / span > < span class = "nx" > In< / span > < span class = "nx" > a< / span > < span class = "nx" > foldable< / span > < span class = "nx" > callout< / span > < span class = "p" > ,< / span > < span class = "nx" > the< / span > < span class = "nx" > contents< / span > < span class = "nx" > are< / span > < span class = "nx" > hidden< / span > < span class = "nx" > when< / span > < span class = "nx" > the< / span > < span class = "nx" > callout< / span > < span class = "nx" > is< / span > < span class = "nx" > collapsed< / span >
< / span > < / span > < span class = "line" > < span class = "cl" >
2024-09-03 21:05:14 +00:00
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "p" > > < / span > < span class = "p" > [!< / span > < span class = "nx" > info< / span > < span class = "p" > ]< / span > < span class = "nx" > Can< / span > < span class = "nx" > callouts< / span > < span class = "nx" > be< / span > < span class = "nx" > nested< / span > < span class = "err" > ?< / span >
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "p" > > < / span > < span class = "p" > > < / span > < span class = "p" > [!< / span > < span class = "nx" > important< / span > < span class = "p" > ]< / span > < span class = "nx" > Yes< / span > < span class = "p" > !,< / span > < span class = "nx" > they< / span > < span class = "nx" > can< / span > < span class = "p" > .< / span >
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "p" > > < / span > < span class = "p" > > < / span > < span class = "p" > > < / span > < span class = "p" > [!< / span > < span class = "nx" > tip< / span > < span class = "p" > ]< / span > < span class = "nx" > You< / span > < span class = "nx" > can< / span > < span class = "nx" > even< / span > < span class = "nx" > use< / span > < span class = "nx" > multiple< / span > < span class = "nx" > layers< / span > < span class = "nx" > of< / span > < span class = "nx" > nesting< / span > < span class = "p" > .< / span > < / span > < / span > < / code > < / pre > < / div >
2024-09-03 21:02:45 +00:00
< div class = "box notices cstyle caution" >
2024-09-03 17:09:09 +00:00
< div class = "box-label" >
2024-09-03 21:02:45 +00:00
< i class = "fa-fw fas fa-hand" > < / i > Callouts can have custom titles
2024-09-03 17:09:09 +00:00
< / div >
< div class = "box-content" >
< p > Like this one.< / p >
2024-09-05 18:03:19 +00:00
< / div >
2024-09-03 17:09:09 +00:00
< / div >
2024-09-03 21:02:45 +00:00
< div class = "box notices cstyle caution" >
2024-09-03 17:09:09 +00:00
< div class = "box-label" >
2024-09-05 18:03:19 +00:00
< i class = "fa-fw fas fa-hand" > < / i > Title-only callout
2024-09-03 17:09:09 +00:00
< / div >
< / div >
< div class = "expand box notices cstyle note" >
2024-09-12 09:17:26 +00:00
< input type = "checkbox" id = "R-expand-ddd5bd790d0258dcabcc45e0be96e99b" aria-controls = "R-expandcontent-ddd5bd790d0258dcabcc45e0be96e99b" >
< label class = "expand-label box-label" for = "R-expand-ddd5bd790d0258dcabcc45e0be96e99b" >
2024-09-03 17:09:09 +00:00
< i class = "expander-icon fa-fw fas fa-chevron-down" > < / i >
< i class = "expander-icon fa-fw fas fa-chevron-right" > < / i > < i class = "fa-fw fas fa-exclamation-circle" > < / i > Are callouts foldable?
< / label >
< div class = "box-spacer" > < / div >
2024-09-12 09:17:26 +00:00
< div id = "R-expandcontent-ddd5bd790d0258dcabcc45e0be96e99b" class = "box-content expand-content" >
2024-09-03 17:09:09 +00:00
< p > Yes! In a foldable callout, the contents are hidden when the callout is collapsed< / p >
2024-09-05 18:03:19 +00:00
< / div >
2024-09-03 17:09:09 +00:00
< / div >
< div class = "expand box notices cstyle note" >
2024-09-12 09:17:26 +00:00
< input type = "checkbox" id = "R-expand-c69f3d8571159461d0b49afc83146648" aria-controls = "R-expandcontent-c69f3d8571159461d0b49afc83146648" checked >
< label class = "expand-label box-label" for = "R-expand-c69f3d8571159461d0b49afc83146648" >
2024-09-03 17:09:09 +00:00
< i class = "expander-icon fa-fw fas fa-chevron-down" > < / i >
< i class = "expander-icon fa-fw fas fa-chevron-right" > < / i > < i class = "fa-fw fas fa-exclamation-circle" > < / i > Are callouts foldable?
< / label >
< div class = "box-spacer" > < / div >
2024-09-12 09:17:26 +00:00
< div id = "R-expandcontent-c69f3d8571159461d0b49afc83146648" class = "box-content expand-content" >
2024-09-03 17:09:09 +00:00
< p > Yes! In a foldable callout, the contents are hidden when the callout is collapsed< / p >
2024-09-05 18:03:19 +00:00
< / div >
2024-09-03 17:09:09 +00:00
< / div >
2024-09-03 21:05:14 +00:00
< div class = "box notices cstyle info" >
2024-09-03 17:09:09 +00:00
< div class = "box-label" >
2024-09-05 18:03:19 +00:00
< i class = "fa-fw fas fa-info-circle" > < / i > Can callouts be nested?
2024-09-03 17:09:09 +00:00
< / div >
< div class = "box-content" >
2024-09-05 18:03:19 +00:00
< p > < div class = "box notices cstyle important" >
2024-09-03 17:09:09 +00:00
< div class = "box-label" >
2024-09-05 18:03:19 +00:00
< i class = "fa-fw fas fa-bolt" > < / i > Yes!, they can.
2024-09-03 17:09:09 +00:00
< / div >
< div class = "box-content" >
2024-09-05 18:03:19 +00:00
< p > < div class = "box notices cstyle tip" >
2024-09-03 17:09:09 +00:00
< div class = "box-label" >
2024-09-05 18:03:19 +00:00
< i class = "fa-fw fas fa-lightbulb" > < / i > You can even use multiple layers of nesting.
< / div >
< / div >
< / div >
< / div >
2024-09-03 17:09:09 +00:00
< / div >
2024-09-05 18:03:19 +00:00
< / div >
< h4 id = "code-with-collapsed-colored-borders" > Code with Collapsed Colored Borders< / h4 >
2024-09-06 06:55:56 +00:00
< div class = "highlight wrap-code" > < pre tabindex = "0" > < code > > [!secondary]
2024-09-06 06:50:31 +00:00
> ```c
> // With colored border in Markdown syntax
2024-09-06 06:59:02 +00:00
> printf(" Hello World!" );
2024-09-06 06:50:31 +00:00
> ```
2024-09-04 17:48:47 +00:00
2024-09-06 06:50:31 +00:00
{{% notice style=" red" %}}
2024-09-04 17:48:47 +00:00
```c
2024-09-06 06:50:31 +00:00
// With colored border in Shortcode syntax
2024-09-06 06:59:02 +00:00
printf(" Hello World!" );
2024-09-04 17:48:47 +00:00
```
2024-09-05 18:03:19 +00:00
{{% /notice %}}< / code > < / pre > < / div >
2024-09-06 06:55:56 +00:00
< div class = "box notices cstyle secondary" >
2024-09-06 06:50:31 +00:00
< div class = "box-content" >
< p > < div class = "highlight wrap-code" > < pre tabindex = "0" class = "chroma" > < code class = "language-c" data-lang = "c" > < span class = "line" > < span class = "cl" > < span class = "c1" > // With colored border in Markdown syntax
2024-09-06 06:59:02 +00:00
< / span > < / span > < / span > < span class = "line" > < span class = "cl" > < span class = "c1" > < / span > < span class = "nf" > printf< / span > < span class = "p" > (< / span > < span class = "s" > " Hello World!" < / span > < span class = "p" > );< / span > < / span > < / span > < / code > < / pre > < / div >
2024-09-06 06:50:31 +00:00
< / div >
< / div >
2024-09-04 17:48:47 +00:00
< div class = "box notices cstyle red" >
< div class = "box-content" >
2024-09-06 06:50:31 +00:00
< div class = "highlight wrap-code" > < pre tabindex = "0" class = "chroma" > < code class = "language-c" data-lang = "c" > < span class = "line" > < span class = "cl" > < span class = "c1" > // With colored border in Shortcode syntax
2024-09-06 06:59:02 +00:00
< / span > < / span > < / span > < span class = "line" > < span class = "cl" > < span class = "c1" > < / span > < span class = "nf" > printf< / span > < span class = "p" > (< / span > < span class = "s" > " Hello World!" < / span > < span class = "p" > );< / span > < / span > < / span > < / code > < / pre > < / div >
2024-09-05 18:03:19 +00:00
< / div >
2024-09-03 17:09:09 +00:00
< / div >
2024-09-12 05:56:00 +00:00
< h4 id = "user-defined-style" > User-defined Style< / h4 >
< p > Self-defined styles can be < a href = "/hugo-theme-relearn/shortcodes/notice/index.html#configuration" > configured< / a > in your < code > hugo.toml< / code > and used for every shortcode, that accepts a < code > style< / code > parameter.< / p >
< div class = "highlight wrap-code" > < pre tabindex = "0" > < code > > [!magic]
> Maaagic!< / code > < / pre > < / div >
< div class = "box notices cstyle magic" >
< div class = "box-label" >
< i class = "fa-fw fas fa-rainbow" > < / i > Magic
< / div >
< div class = "box-content" >
< p > Maaagic!< / p >
< / div >
< / div >
2024-09-04 17:48:47 +00:00
2022-04-02 13:30:16 +00:00
< footer class = "footline" >
< / footer >
< / article >
2023-05-17 22:13:41 +00:00
2022-04-02 13:30:16 +00:00
< / div >
< / main >
< / div >
2024-09-12 09:17:26 +00:00
< script src = "/hugo-theme-relearn/js/clipboard.min.js?1726132639" defer > < / script >
< script src = "/hugo-theme-relearn/js/perfect-scrollbar.min.js?1726132639" defer > < / script >
< script src = "/hugo-theme-relearn/js/theme.js?1726132639" defer > < / script >
2022-04-02 13:30:16 +00:00
< / body >
< / html >