2022-04-02 13:30:16 +00:00
<!DOCTYPE html>
2022-11-01 01:10:49 +00:00
< html lang = "pir" dir = "ltr" >
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" >
2022-12-26 01:00:35 +00:00
< meta name = "generator" content = "Hugo 0.109.0" >
2022-12-30 00:13:43 +00:00
< meta name = "generator" content = "Relearn 5.9.2+tip" >
2022-04-02 13:30:16 +00:00
< meta name = "description" content = "Documentation for Hugo Relearn Theme" >
< meta name = "author" content = "Sören Weber" >
< title > Button :: Cap' n Hugo Relearrrn Theme< / title >
2022-11-15 06:35:08 +00:00
< link href = "https://McShelby.github.io/hugo-theme-relearn/pir/shortcodes/button/index.html" rel = "canonical" type = "text/html" title = "Button :: Cap'n Hugo Relearrrn Theme" >
2022-11-06 00:38:34 +00:00
< link href = "../../../pir/shortcodes/button/index.xml" rel = "alternate" type = "application/rss+xml" title = "Button :: Cap'n Hugo Relearrrn Theme" >
2022-12-30 00:13:43 +00:00
< link href = "../../../images/logo.svg?1672359217" rel = "icon" type = "image/svg+xml" >
2022-07-15 13:20:02 +00:00
<!-- https://github.com/filamentgroup/loadCSS/blob/master/README.md#how - to - use -->
2022-12-30 00:13:43 +00:00
< link href = "../../../css/fontawesome-all.min.css?1672359219" rel = "stylesheet" media = "print" onload = "this.media='all';this.onload=null;" > < noscript > < link href = "../../../css/fontawesome-all.min.css?1672359219" rel = "stylesheet" > < / noscript >
< link href = "../../../css/featherlight.min.css?1672359219" rel = "stylesheet" media = "print" onload = "this.media='all';this.onload=null;" > < noscript > < link href = "../../../css/featherlight.min.css?1672359219" rel = "stylesheet" > < / noscript >
< link href = "../../../css/auto-complete.css?1672359219" rel = "stylesheet" media = "print" onload = "this.media='all';this.onload=null;" > < noscript > < link href = "../../../css/auto-complete.css?1672359219" rel = "stylesheet" > < / noscript >
< link href = "../../../css/perfect-scrollbar.min.css?1672359219" rel = "stylesheet" >
< link href = "../../../css/nucleus.css?1672359219" rel = "stylesheet" >
< link href = "../../../css/fonts.css?1672359219" rel = "stylesheet" media = "print" onload = "this.media='all';this.onload=null;" > < noscript > < link href = "../../../css/fonts.css?1672359219" rel = "stylesheet" > < / noscript >
< link href = "../../../css/theme.css?1672359219" rel = "stylesheet" >
< link href = "../../../css/theme-relearn-light.css?1672359219" rel = "stylesheet" id = "variant-style" >
< link href = "../../../css/ie.css?1672359219" rel = "stylesheet" >
< link href = "../../../css/variant.css?1672359219" rel = "stylesheet" >
< link href = "../../../css/print.css?1672359219" rel = "stylesheet" media = "print" >
< link href = "../../../css/format-print.css?1672359219" rel = "stylesheet" >
< script src = "../../../js/url.js?1672359219" > < / script >
< script src = "../../../js/variant.js?1672359219" > < / script >
2022-04-02 13:30:16 +00:00
< script >
// hack to let hugo tell us how to get to the root when using relativeURLs, it needs to be called *url= for it to do its magic:
// https://github.com/gohugoio/hugo/blob/145b3fcce35fbac25c7033c91c1b7ae6d1179da8/transform/urlreplacers/absurlreplacer.go#L72
2022-11-05 23:35:48 +00:00
window.index_js_url="../../../pir/index.search.js";
var root_url="../../../";
2022-04-02 13:30:16 +00:00
var baseUri=root_url.replace(/\/$/, '');
// translations
window.T_Copy_to_clipboard = 'Copy t\u0027 clipboard';
window.T_Copied_to_clipboard = 'Copied t\u0027 clipboard!';
window.T_Copy_link_to_clipboard = 'Copy link t\u0027 clipboard';
window.T_Link_copied_to_clipboard = 'Copied link t\u0027 clipboard!';
2022-11-17 21:13:11 +00:00
window.T_No_results_found = 'No rrresults found fer \u0022{0}\u0022';
window.T_N_results_found = '{1} rrresults found fer \u0022{0}\u0022';
2022-04-02 13:30:16 +00:00
// some further base stuff
var baseUriFull='https:\/\/McShelby.github.io\/hugo-theme-relearn/';
2022-07-14 20:20:11 +00:00
window.variants & & variants.init( [ 'relearn-light', 'relearn-dark', 'learn', 'neon', 'blue', 'green', 'red' ] );
2022-04-02 13:30:16 +00:00
< / script >
2022-12-30 00:13:43 +00:00
< script src = "../../../js/jquery.min.js?1672359219" defer > < / script >
2022-12-02 15:05:54 +00:00
< style >
#body img.bg-white {
background-color: white;
}
< / style >
2022-04-02 13:30:16 +00:00
< / head >
2022-11-15 06:35:08 +00:00
< body class = "mobile-support print disableInlineCopyToClipboard" data-url = "../../../pir/shortcodes/button/index.html" >
2022-04-02 13:30:16 +00:00
< div id = "body" class = "default-animation" >
< div id = "sidebar-overlay" > < / div >
< div id = "toc-overlay" > < / div >
2022-11-07 19:58:08 +00:00
< nav id = "topbar" class = "highlightable" dir = "ltr" >
2022-04-02 13:30:16 +00:00
< div >
< div id = "breadcrumbs" >
< span id = "sidebar-toggle-span" >
2022-10-08 20:51:04 +00:00
< a href = "#" id = "sidebar-toggle" title = 'Menu (CTRL+ALT+n)' > < i class = "fas fa-bars fa-fw" > < / i > < / a >
2022-04-02 13:30:16 +00:00
< / span >
< ol class = "links" itemscope itemtype = "http://schema.org/BreadcrumbList" >
2022-11-05 23:35:48 +00:00
< li itemscope itemtype = "https://schema.org/ListItem" itemprop = "itemListElement" > < a itemprop = "item" href = "../../../pir/index.html" > < span itemprop = "name" > Cap' n Hugo Relearrrn Theme< / span > < / a > < meta itemprop = "position" content = "1" > > < / li >
< li itemscope itemtype = "https://schema.org/ListItem" itemprop = "itemListElement" > < a itemprop = "item" href = "../../../pir/shortcodes/index.html" > < span itemprop = "name" > Shorrrtcodes< / span > < / a > < meta itemprop = "position" content = "2" > > < / li >
2022-10-02 22:25:49 +00:00
< li itemscope itemtype = "https://schema.org/ListItem" itemprop = "itemListElement" > < span itemprop = "name" > Button< / span > < meta itemprop = "position" content = "3" > < / li >
2022-04-02 13:30:16 +00:00
< / ol >
< / div >
< / div >
< / nav >
2022-07-05 22:16:52 +00:00
< main id = "body-inner" class = "highlightable default" tabindex = "-1" >
2022-04-02 13:30:16 +00:00
< div class = "flex-block-wrapper" >
< div id = "head-tags" >
< / div >
2022-11-07 19:58:08 +00:00
< article class = "default" >
2022-11-13 21:34:47 +00:00
< h1 id = "button" > Button< / h1 >
2022-04-02 13:30:16 +00:00
2022-07-05 22:16:52 +00:00
2022-05-29 22:03:12 +00:00
< div class = "box notices cstyle warning" >
2022-12-01 00:38:08 +00:00
< div class = "box-label" > < i class = "fa-fw fas fa-skull-crossbones" > < / i > Arrr! Pirrrates< / div >
< div class = "box-content" >
2022-12-04 10:37:18 +00:00
< p > Fello' pirrates, be awarrre < b > some stuff may not work< / b > fer us in this trrranslat'n. Like < b > table of rrramblings< / b > , see'ng < b > Merrrmaids< / b > , do'ng < b > math or chemistrrry< / b > and stuff.< / p >
< / div >
2022-04-02 13:30:16 +00:00
< / div >
2022-05-29 21:00:53 +00:00
< p > Th' < code > button< / code > shorrrtcode displays a click'ble button wit' adjust'ble color, title an' ay'con.< / p >
< p >
< span class = "btn cstyle transparent" >
2022-12-23 11:24:54 +00:00
< a href = "https://gohugo.io/" target = "_blank" >
2022-05-29 21:00:53 +00:00
Get Cap'n Hugo
< / a >
< / span >
2022-04-02 13:30:16 +00:00
2022-05-29 21:00:53 +00:00
< span class = "btn cstyle warning" >
2022-12-23 11:24:54 +00:00
< a href = "https://gohugo.io/" target = "_blank" >
2022-05-29 21:00:53 +00:00
< i class = "fa-fw fas fa-dragon" > < / i >
Get Cap'n Hugo
< / a >
< / span > < / p >
< h2 id = "usage" > Usage< / h2 >
2022-06-22 22:08:50 +00:00
< p > While th' examples be us'n shorrrtcodes wit' named parameter ye be free t' also call this shorrrtcode from yer own partials.< / p >
< div class = "tab-panel" >
< div class = "tab-nav" >
< button
data-tab-item="shortcode"
data-tab-group="shortcode-parameter"
2022-11-01 01:10:49 +00:00
class="tab-nav-button direction-ltr active"
2022-06-22 22:08:50 +00:00
onclick="switchTab('shortcode-parameter','shortcode')"
>< span > shorrrtcode< / span > < / button >
< button
data-tab-item="partial"
data-tab-group="shortcode-parameter"
2022-11-01 01:10:49 +00:00
class="tab-nav-button direction-ltr "
2022-06-22 22:08:50 +00:00
onclick="switchTab('shortcode-parameter','partial')"
>< span > partial< / span > < / button >
< / div >
< div class = "tab-content" >
< div data-tab-item = "shortcode" data-tab-group = "shortcode-parameter" class = "tab-item active" >
2022-06-05 17:32:37 +00:00
< div class = "highlight" > < 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" > button< / span > < span class = "nx" > href< / span > < span class = "p" > =< / span > < span class = "s" > " https://gohugo.io/" < / span > < span class = "o" > %< / span > < span class = "p" > }}< / span > < span class = "nx" > Get< / span > < span class = "nx" > Cap'n Hugo< / span > < span class = "p" > {{< / span > < span class = "o" > %< / span > < span class = "o" > /< / span > < span class = "nx" > button< / 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 = "nx" > button< / span > < span class = "nx" > href< / span > < span class = "p" > =< / span > < span class = "s" > " https://gohugo.io/" < / span > < span class = "nx" > style< / span > < span class = "p" > =< / span > < span class = "s" > " warning" < / span > < span class = "nx" > ay'con< / span > < span class = "p" > =< / span > < span class = "s" > " dragon" < / span > < span class = "o" > %< / span > < span class = "p" > }}< / span > < span class = "nx" > Get< / span > < span class = "nx" > Cap'n Hugo< / span > < span class = "p" > {{< / span > < span class = "o" > %< / span > < span class = "o" > /< / span > < span class = "nx" > button< / span > < span class = "o" > %< / span > < span class = "p" > }}< / span >
2022-06-22 22:08:50 +00:00
< / span > < / span > < / code > < / pre > < / div >
< / div >
< div data-tab-item = "partial" data-tab-group = "shortcode-parameter" class = "tab-item " >
< div class = "highlight" > < 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/button.html" < / span > < span class = "p" > (< / span > < span class = "nx" > dict< / span >
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "s" > " context" < / span > < span class = "p" > .< / span >
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "s" > " href" < / span > < span class = "s" > " https://gohugo.io/" < / span >
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "s" > " content" < / span > < span class = "s" > " Get Hugo" < / 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 class = "nx" > partial< / span > < span class = "s" > " shortcodes/button.html" < / span > < span class = "p" > (< / span > < span class = "nx" > dict< / span >
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "s" > " context" < / span > < span class = "p" > .< / span >
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "s" > " href" < / span > < span class = "s" > " https://gohugo.io/" < / span >
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "s" > " style" < / span > < span class = "s" > " warning" < / span >
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "s" > " icon" < / span > < span class = "s" > " dragon" < / span >
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "s" > " content" < / span > < span class = "s" > " Get Hugo" < / span >
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "p" > )}}< / span >
< / span > < / span > < / code > < / pre > < / div >
< / div >
< / div >
< / div >
< p > Once th' button be clicked, it opens another browser tab fer th' given URL.< / p >
2022-06-05 17:32:37 +00:00
< h3 id = "parameter" > Parameter< / h3 >
2022-05-29 21:00:53 +00:00
< table >
< thead >
< tr >
< th style = "text-align:left" > Name< / 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 > href< / strong > < / td >
< td style = "text-align:left" > < em > < empty> < / em > < / td >
2022-11-28 17:44:03 +00:00
< td style = "text-align:left" > Either th' destinat'n URL fer th' button or JavaScript code t' be executed on click. If this parameter be not set, th' button will do noth'n but be still displayed as click'ble.< br > < br > - if start'n wit' < code > javascript:< / code > all follow'n text will be executed 'n yer browser< br > - every other str'n will be interpreted as URL< / td >
2022-05-29 21:00:53 +00:00
< / tr >
< tr >
< td style = "text-align:left" > < strong > style< / strong > < / td >
< td style = "text-align:left" > < code > transparent< / code > < / td >
2022-10-02 22:25:49 +00:00
< td style = "text-align:left" > Th' color scheme used t' paint th' button.< br > < br > - by severity: < code > info< / code > , < code > note< / code > , < code > tip< / code > , < code > warning< / code > < br > - by brand color: < code > primary< / code > , < code > secondary< / code > < br > - by color: < code > blue< / code > , < code > green< / code > , < code > grey< / code > , < code > orange< / code > , < code > red< / code > < br > - by special color: < code > default< / code > , < code > transparent< / code > < / td >
2022-05-29 21:00:53 +00:00
< / tr >
< tr >
< td style = "text-align:left" > < strong > ay'con< / strong > < / td >
< td style = "text-align:left" > see notes< / td >
2022-12-16 17:42:17 +00:00
< td style = "text-align:left" > < a href = "../../../shortcodes/icon/#finding-an-icon" > Font Awesome ay'con name< / a > set t' th' left o' th' title. Depend'n on th' < strong > style< / strong > there may be a default ay'con. Any given value will overwrite th' default.< br > < br > - fer severity styles: a nice match'n ay'con fer th' severity< br > - fer all other colors: < em > < empty> < / em > < br > < br > If ye want no ay'con fer a severity style, ye have t' set this parameter t' < code > " " < / code > (a non empty str'n filled wit' spaces)< / td >
2022-05-29 21:00:53 +00:00
< / tr >
< tr >
< td style = "text-align:left" > < strong > iconposit'n< / strong > < / td >
< td style = "text-align:left" > < code > left< / code > < / td >
< td style = "text-align:left" > Places th' ay'con t' th' < code > left< / code > or < code > right< / code > o' th' title.< / td >
< / tr >
< tr >
2022-10-31 20:10:53 +00:00
< td style = "text-align:left" > < strong > target< / strong > < / td >
< td style = "text-align:left" > see notes< / td >
2022-12-26 01:09:01 +00:00
< td style = "text-align:left" > Th' destinat'n frame/window if < strong > href< / strong > be an URL. Otherwise th' parameter be not used. This behaves similar t' normal links. If th' parameter be not given it defaults t':< br > < br > - th' sett'n o' < code > externalLinkTarget< / code > or < code > _blank< / code > if not set, fer any address start'n wit' < code > http://< / code > or < code > https://< / code > < br > - no specific value fer all other links< / td >
2022-11-28 17:44:03 +00:00
< / tr >
< tr >
< td style = "text-align:left" > < strong > type< / strong > < / td >
< td style = "text-align:left" > see notes< / td >
2022-12-23 11:24:54 +00:00
< td style = "text-align:left" > Th' < a href = "https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#attr-type" target = "_blank" > button type< / a > if < strong > href< / strong > be JavaScript. Otherwise th' parameter be not used. If th' parameter be not given it defaults t' < code > button< / code > < / td >
2022-10-31 20:10:53 +00:00
< / tr >
< tr >
2022-05-29 21:00:53 +00:00
< td style = "text-align:left" > < em > < strong > < content> < / strong > < / em > < / td >
< td style = "text-align:left" > see notes< / td >
2022-10-31 14:06:51 +00:00
< td style = "text-align:left" > Arbitrary text fer th' button title. Depend'n on th' < strong > style< / strong > there may be a default title. Any given value will overwrite th' default.< br > < br > - fer severity styles: th' match'n title fer th' severity< br > - fer all other colors: < em > < empty> < / em > < br > < br > If ye want no title fer a severity style, ye have t' set this parameter t' < code > " " < / code > (a non empty str'n filled wit' spaces)< / td >
2022-05-29 21:00:53 +00:00
< / tr >
< / tbody >
< / table >
< h2 id = "examples" > Examples< / h2 >
< h3 id = "style" > Style< / h3 >
2022-06-05 17:32:37 +00:00
< h4 id = "by-severity" > By Severity< / h4 >
< div class = "highlight" > < 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" > button< / span > < span class = "nx" > href< / span > < span class = "p" > =< / span > < span class = "s" > " https://gohugo.io/" < / span > < span class = "nx" > style< / span > < span class = "p" > =< / span > < span class = "s" > " info" < / span > < span class = "o" > %< / span > < span class = "p" > }}< / span > < span class = "nx" > Get< / span > < span class = "nx" > Cap'n Hugo< / span > < span class = "p" > {{< / span > < span class = "o" > %< / span > < span class = "o" > /< / span > < span class = "nx" > button< / 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 = "nx" > button< / span > < span class = "nx" > href< / span > < span class = "p" > =< / span > < span class = "s" > " https://gohugo.io/" < / span > < span class = "nx" > style< / span > < span class = "p" > =< / span > < span class = "s" > " note" < / span > < span class = "o" > %< / span > < span class = "p" > }}< / span > < span class = "nx" > Get< / span > < span class = "nx" > Cap'n Hugo< / span > < span class = "p" > {{< / span > < span class = "o" > %< / span > < span class = "o" > /< / span > < span class = "nx" > button< / 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 = "nx" > button< / span > < span class = "nx" > href< / span > < span class = "p" > =< / span > < span class = "s" > " https://gohugo.io/" < / span > < span class = "nx" > style< / span > < span class = "p" > =< / span > < span class = "s" > " tip" < / span > < span class = "o" > %< / span > < span class = "p" > }}< / span > < span class = "nx" > Get< / span > < span class = "nx" > Cap'n Hugo< / span > < span class = "p" > {{< / span > < span class = "o" > %< / span > < span class = "o" > /< / span > < span class = "nx" > button< / 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 = "nx" > button< / span > < span class = "nx" > href< / span > < span class = "p" > =< / span > < span class = "s" > " https://gohugo.io/" < / span > < span class = "nx" > style< / span > < span class = "p" > =< / span > < span class = "s" > " warning" < / span > < span class = "o" > %< / span > < span class = "p" > }}< / span > < span class = "nx" > Get< / span > < span class = "nx" > Cap'n Hugo< / span > < span class = "p" > {{< / span > < span class = "o" > %< / span > < span class = "o" > /< / span > < span class = "nx" > button< / span > < span class = "o" > %< / span > < span class = "p" > }}< / span >
< / span > < / span > < / code > < / pre > < / div > < p >
2022-05-29 21:00:53 +00:00
< span class = "btn cstyle info" >
2022-12-23 11:24:54 +00:00
< a href = "https://gohugo.io/" target = "_blank" >
2022-05-29 21:00:53 +00:00
< i class = "fa-fw fas fa-info-circle" > < / i >
Get Cap'n Hugo
< / a >
< / span >
2022-04-02 13:30:16 +00:00
2022-05-29 21:00:53 +00:00
< span class = "btn cstyle note" >
2022-12-23 11:24:54 +00:00
< a href = "https://gohugo.io/" target = "_blank" >
2022-05-29 21:00:53 +00:00
< i class = "fa-fw fas fa-exclamation-circle" > < / i >
Get Cap'n Hugo
< / a >
< / span >
2022-04-02 13:30:16 +00:00
2022-05-29 21:00:53 +00:00
< span class = "btn cstyle tip" >
2022-12-23 11:24:54 +00:00
< a href = "https://gohugo.io/" target = "_blank" >
2022-05-29 21:00:53 +00:00
< i class = "fa-fw fas fa-lightbulb" > < / i >
Get Cap'n Hugo
< / a >
< / span >
< span class = "btn cstyle warning" >
2022-12-23 11:24:54 +00:00
< a href = "https://gohugo.io/" target = "_blank" >
2022-05-29 21:00:53 +00:00
< i class = "fa-fw fas fa-exclamation-triangle" > < / i >
Get Cap'n Hugo
< / a >
< / span > < / p >
2022-06-05 17:32:37 +00:00
< h4 id = "by-brand-colors" > By Brand Colors< / h4 >
< div class = "highlight" > < 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" > button< / span > < span class = "nx" > href< / span > < span class = "p" > =< / span > < span class = "s" > " https://gohugo.io/" < / span > < span class = "nx" > style< / span > < span class = "p" > =< / span > < span class = "s" > " primary" < / span > < span class = "o" > %< / span > < span class = "p" > }}< / span > < span class = "nx" > Get< / span > < span class = "nx" > Cap'n Hugo< / span > < span class = "p" > {{< / span > < span class = "o" > %< / span > < span class = "o" > /< / span > < span class = "nx" > button< / 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 = "nx" > button< / span > < span class = "nx" > href< / span > < span class = "p" > =< / span > < span class = "s" > " https://gohugo.io/" < / span > < span class = "nx" > style< / span > < span class = "p" > =< / span > < span class = "s" > " secondary" < / span > < span class = "o" > %< / span > < span class = "p" > }}< / span > < span class = "nx" > Get< / span > < span class = "nx" > Cap'n Hugo< / span > < span class = "p" > {{< / span > < span class = "o" > %< / span > < span class = "o" > /< / span > < span class = "nx" > button< / span > < span class = "o" > %< / span > < span class = "p" > }}< / span >
< / span > < / span > < / code > < / pre > < / div > < p >
2022-05-29 21:00:53 +00:00
< span class = "btn cstyle primary" >
2022-12-23 11:24:54 +00:00
< a href = "https://gohugo.io/" target = "_blank" >
2022-05-29 21:00:53 +00:00
Get Cap'n Hugo
< / a >
< / span >
< span class = "btn cstyle secondary" >
2022-12-23 11:24:54 +00:00
< a href = "https://gohugo.io/" target = "_blank" >
2022-05-29 21:00:53 +00:00
Get Cap'n Hugo
< / a >
< / span > < / p >
2022-06-05 17:32:37 +00:00
< h4 id = "by-color" > By Color< / h4 >
< div class = "highlight" > < 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" > button< / span > < span class = "nx" > href< / span > < span class = "p" > =< / span > < span class = "s" > " https://gohugo.io/" < / span > < span class = "nx" > style< / span > < span class = "p" > =< / span > < span class = "s" > " blue" < / span > < span class = "o" > %< / span > < span class = "p" > }}< / span > < span class = "nx" > Get< / span > < span class = "nx" > Cap'n Hugo< / span > < span class = "p" > {{< / span > < span class = "o" > %< / span > < span class = "o" > /< / span > < span class = "nx" > button< / 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 = "nx" > button< / span > < span class = "nx" > href< / span > < span class = "p" > =< / span > < span class = "s" > " https://gohugo.io/" < / span > < span class = "nx" > style< / span > < span class = "p" > =< / span > < span class = "s" > " green" < / span > < span class = "o" > %< / span > < span class = "p" > }}< / span > < span class = "nx" > Get< / span > < span class = "nx" > Cap'n Hugo< / span > < span class = "p" > {{< / span > < span class = "o" > %< / span > < span class = "o" > /< / span > < span class = "nx" > button< / 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 = "nx" > button< / span > < span class = "nx" > href< / span > < span class = "p" > =< / span > < span class = "s" > " https://gohugo.io/" < / span > < span class = "nx" > style< / span > < span class = "p" > =< / span > < span class = "s" > " grey" < / span > < span class = "o" > %< / span > < span class = "p" > }}< / span > < span class = "nx" > Get< / span > < span class = "nx" > Cap'n Hugo< / span > < span class = "p" > {{< / span > < span class = "o" > %< / span > < span class = "o" > /< / span > < span class = "nx" > button< / 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 = "nx" > button< / span > < span class = "nx" > href< / span > < span class = "p" > =< / span > < span class = "s" > " https://gohugo.io/" < / span > < span class = "nx" > style< / span > < span class = "p" > =< / span > < span class = "s" > " orange" < / span > < span class = "o" > %< / span > < span class = "p" > }}< / span > < span class = "nx" > Get< / span > < span class = "nx" > Cap'n Hugo< / span > < span class = "p" > {{< / span > < span class = "o" > %< / span > < span class = "o" > /< / span > < span class = "nx" > button< / 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 = "nx" > button< / span > < span class = "nx" > href< / span > < span class = "p" > =< / span > < span class = "s" > " https://gohugo.io/" < / span > < span class = "nx" > style< / span > < span class = "p" > =< / span > < span class = "s" > " red" < / span > < span class = "o" > %< / span > < span class = "p" > }}< / span > < span class = "nx" > Get< / span > < span class = "nx" > Cap'n Hugo< / span > < span class = "p" > {{< / span > < span class = "o" > %< / span > < span class = "o" > /< / span > < span class = "nx" > button< / span > < span class = "o" > %< / span > < span class = "p" > }}< / span >
< / span > < / span > < / code > < / pre > < / div > < p >
2022-05-29 21:00:53 +00:00
< span class = "btn cstyle blue" >
2022-12-23 11:24:54 +00:00
< a href = "https://gohugo.io/" target = "_blank" >
2022-05-29 21:00:53 +00:00
Get Cap'n Hugo
< / a >
< / span >
< span class = "btn cstyle green" >
2022-12-23 11:24:54 +00:00
< a href = "https://gohugo.io/" target = "_blank" >
2022-05-29 21:00:53 +00:00
Get Cap'n Hugo
< / a >
< / span >
< span class = "btn cstyle grey" >
2022-12-23 11:24:54 +00:00
< a href = "https://gohugo.io/" target = "_blank" >
2022-05-29 21:00:53 +00:00
Get Cap'n Hugo
< / a >
< / span >
< span class = "btn cstyle orange" >
2022-12-23 11:24:54 +00:00
< a href = "https://gohugo.io/" target = "_blank" >
2022-05-29 21:00:53 +00:00
Get Cap'n Hugo
< / a >
< / span >
< span class = "btn cstyle red" >
2022-12-23 11:24:54 +00:00
< a href = "https://gohugo.io/" target = "_blank" >
2022-05-29 21:00:53 +00:00
Get Cap'n Hugo
< / a >
< / span > < / p >
2022-06-05 17:32:37 +00:00
< h4 id = "by-special-color" > By Special Color< / h4 >
< div class = "highlight" > < 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" > button< / span > < span class = "nx" > href< / span > < span class = "p" > =< / span > < span class = "s" > " https://gohugo.io/" < / span > < span class = "nx" > style< / span > < span class = "p" > =< / span > < span class = "s" > " default" < / span > < span class = "o" > %< / span > < span class = "p" > }}< / span > < span class = "nx" > Get< / span > < span class = "nx" > Cap'n Hugo< / span > < span class = "p" > {{< / span > < span class = "o" > %< / span > < span class = "o" > /< / span > < span class = "nx" > button< / 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 = "nx" > button< / span > < span class = "nx" > href< / span > < span class = "p" > =< / span > < span class = "s" > " https://gohugo.io/" < / span > < span class = "nx" > style< / span > < span class = "p" > =< / span > < span class = "s" > " transparent" < / span > < span class = "o" > %< / span > < span class = "p" > }}< / span > < span class = "nx" > Get< / span > < span class = "nx" > Cap'n Hugo< / span > < span class = "p" > {{< / span > < span class = "o" > %< / span > < span class = "o" > /< / span > < span class = "nx" > button< / span > < span class = "o" > %< / span > < span class = "p" > }}< / span >
< / span > < / span > < / code > < / pre > < / div > < p >
2022-05-29 21:00:53 +00:00
< span class = "btn cstyle default" >
2022-12-23 11:24:54 +00:00
< a href = "https://gohugo.io/" target = "_blank" >
2022-05-29 21:00:53 +00:00
Get Cap'n Hugo
< / a >
< / span >
< span class = "btn cstyle transparent" >
2022-12-23 11:24:54 +00:00
< a href = "https://gohugo.io/" target = "_blank" >
2022-05-29 21:00:53 +00:00
Get Cap'n Hugo
< / a >
< / span > < / p >
< h3 id = "icon" > Ay'con< / h3 >
2022-06-05 17:32:37 +00:00
< h4 id = "to-the-left" > T' th' Left< / h4 >
< div class = "highlight" > < 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" > button< / span > < span class = "nx" > href< / span > < span class = "p" > =< / span > < span class = "s" > " https://gohugo.io/" < / span > < span class = "nx" > ay'con< / span > < span class = "p" > =< / span > < span class = "s" > " download" < / span > < span class = "o" > %< / span > < span class = "p" > }}< / span > < span class = "nx" > Get< / span > < span class = "nx" > Cap'n Hugo< / span > < span class = "p" > {{< / span > < span class = "o" > %< / span > < span class = "o" > /< / span > < span class = "nx" > button< / span > < span class = "o" > %< / span > < span class = "p" > }}< / span >
< / span > < / span > < / code > < / pre > < / div >
2022-05-29 21:00:53 +00:00
< span class = "btn cstyle transparent" >
2022-12-23 11:24:54 +00:00
< a href = "https://gohugo.io/" target = "_blank" >
2022-05-29 21:00:53 +00:00
< i class = "fa-fw fas fa-download" > < / i >
Get Cap'n Hugo
< / a >
< / span >
2022-06-05 17:32:37 +00:00
< h4 id = "to-the-right" > T' th' Right< / h4 >
2022-06-23 11:25:28 +00:00
< div class = "highlight" > < 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" > button< / span > < span class = "nx" > href< / span > < span class = "p" > =< / span > < span class = "s" > " https://gohugo.io/" < / span > < span class = "nx" > ay'con< / span > < span class = "p" > =< / span > < span class = "s" > " download" < / span > < span class = "nx" > iconposit'n< / span > < span class = "p" > =< / span > < span class = "s" > " right" < / span > < span class = "o" > %< / span > < span class = "p" > }}< / span > < span class = "nx" > Get< / span > < span class = "nx" > Cap'n Hugo< / span > < span class = "p" > {{< / span > < span class = "o" > %< / span > < span class = "o" > /< / span > < span class = "nx" > button< / span > < span class = "o" > %< / span > < span class = "p" > }}< / span >
2022-06-05 17:32:37 +00:00
< / span > < / span > < / code > < / pre > < / div >
2022-05-29 21:00:53 +00:00
< span class = "btn cstyle transparent" >
2022-12-23 11:24:54 +00:00
< a href = "https://gohugo.io/" target = "_blank" >
2022-06-22 22:08:50 +00:00
Get Cap'n Hugo
2022-06-23 11:25:28 +00:00
< i class = "fa-fw fas fa-download" > < / i >
2022-05-29 21:00:53 +00:00
< / a >
< / span >
< h4 id = "override-for-severity" > Override fer Severity< / h4 >
2022-06-05 17:32:37 +00:00
< div class = "highlight" > < 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" > button< / span > < span class = "nx" > href< / span > < span class = "p" > =< / span > < span class = "s" > " https://gohugo.io/" < / span > < span class = "nx" > ay'con< / span > < span class = "p" > =< / span > < span class = "s" > " dragon" < / span > < span class = "nx" > style< / span > < span class = "p" > =< / span > < span class = "s" > " warning" < / span > < span class = "o" > %< / span > < span class = "p" > }}< / span > < span class = "nx" > Get< / span > < span class = "nx" > Cap'n Hugo< / span > < span class = "p" > {{< / span > < span class = "o" > %< / span > < span class = "o" > /< / span > < span class = "nx" > button< / span > < span class = "o" > %< / span > < span class = "p" > }}< / span >
< / span > < / span > < / code > < / pre > < / div >
2022-05-29 21:00:53 +00:00
< span class = "btn cstyle warning" >
2022-12-23 11:24:54 +00:00
< a href = "https://gohugo.io/" target = "_blank" >
2022-05-29 21:00:53 +00:00
< i class = "fa-fw fas fa-dragon" > < / i >
Get Cap'n Hugo
< / a >
< / span >
2022-10-31 20:10:53 +00:00
< h3 id = "target" > Target< / h3 >
< div class = "highlight" > < 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" > button< / span > < span class = "nx" > href< / span > < span class = "p" > =< / span > < span class = "s" > " https://gohugo.io/" < / span > < span class = "nx" > target< / span > < span class = "p" > =< / span > < span class = "s" > " _self" < / span > < span class = "o" > %< / span > < span class = "p" > }}< / span > < span class = "nx" > Get< / span > < span class = "nx" > Cap'n Hugo< / span > < span class = "nx" > 'n< / span > < span class = "nx" > same< / span > < span class = "nx" > window< / span > < span class = "p" > {{< / span > < span class = "o" > %< / span > < span class = "o" > /< / span > < span class = "nx" > button< / 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 = "nx" > button< / span > < span class = "nx" > href< / span > < span class = "p" > =< / span > < span class = "s" > " https://gohugo.io/" < / span > < span class = "o" > %< / span > < span class = "p" > }}< / span > < span class = "nx" > Get< / span > < span class = "nx" > Cap'n Hugo< / span > < span class = "nx" > 'n< / span > < span class = "nx" > new< / span > < span class = "nx" > Window< / span > < span class = "o" > /< / span > < span class = "nf" > Frame< / span > < span class = "p" > (< / span > < span class = "k" > default< / span > < span class = "p" > ){{< / span > < span class = "o" > %< / span > < span class = "o" > /< / span > < span class = "nx" > button< / span > < span class = "o" > %< / span > < span class = "p" > }}< / span >
< / span > < / span > < / code > < / pre > < / div > < p >
< span class = "btn cstyle transparent" >
2022-12-23 11:24:54 +00:00
< a href = "https://gohugo.io/" target = "_self" >
2022-10-31 20:10:53 +00:00
Get Cap'n Hugo 'n same Window/Frame
< / a >
< / span >
< span class = "btn cstyle transparent" >
2022-12-23 11:24:54 +00:00
< a href = "https://gohugo.io/" target = "_blank" >
2022-10-31 20:10:53 +00:00
Get Cap'n Hugo 'n new Window/Frame (default)
< / a >
< / span > < / p >
2022-05-29 21:00:53 +00:00
< h3 id = "other" > Other< / h3 >
2022-11-28 17:44:03 +00:00
< h4 id = "severity-style-with-all-defaults" > Severity Style wit' All Defaults< / h4 >
2022-06-05 17:32:37 +00:00
< div class = "highlight" > < 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" > button< / span > < span class = "nx" > href< / span > < span class = "p" > =< / span > < span class = "s" > " https://gohugo.io/" < / span > < span class = "nx" > style< / span > < span class = "p" > =< / span > < span class = "s" > " tip" < / span > < span class = "o" > %< / span > < span class = "p" > }}{{< / span > < span class = "o" > %< / span > < span class = "o" > /< / span > < span class = "nx" > button< / span > < span class = "o" > %< / span > < span class = "p" > }}< / span >
< / span > < / span > < / code > < / pre > < / div >
2022-05-29 21:00:53 +00:00
< span class = "btn cstyle tip" >
2022-12-23 11:24:54 +00:00
< a href = "https://gohugo.io/" target = "_blank" >
2022-05-29 21:00:53 +00:00
< i class = "fa-fw fas fa-lightbulb" > < / i >
Smarrrt Arrrse
< / a >
< / span >
2022-11-28 17:44:03 +00:00
< h4 id = "button-to-internal-page" > Button t' Internal Plank< / h4 >
2022-10-31 20:10:53 +00:00
< div class = "highlight" > < 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" > button< / span > < span class = "nx" > href< / span > < span class = "p" > =< / span > < span class = "s" > " /" < / span > < span class = "o" > %< / span > < span class = "p" > }}< / span > < span class = "nx" > Home< / span > < span class = "p" > {{< / span > < span class = "o" > %< / span > < span class = "o" > /< / span > < span class = "nx" > button< / span > < span class = "o" > %< / span > < span class = "p" > }}< / span >
< / span > < / span > < / code > < / pre > < / div >
< span class = "btn cstyle transparent" >
2022-11-05 23:35:48 +00:00
< a href = "../../../" >
2022-10-31 20:10:53 +00:00
Home
< / a >
< / span >
2022-11-28 17:44:03 +00:00
< h4 id = "button-with-javascript-action" > Button wit' JavaScript Act'n< / h4 >
< p > If yer JavaScript act'n does not change th' focus afterwards, make sure t' call < code > this.blur()< / code > 'n th' end t' unselect th' button.< / p >
< div class = "highlight" > < 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" > button< / span > < span class = "nx" > style< / span > < span class = "p" > =< / span > < span class = "s" > " primary" < / span > < span class = "nx" > ay'con< / span > < span class = "p" > =< / span > < span class = "s" > " bullhorn" < / span > < span class = "nx" > href< / span > < span class = "p" > =< / span > < span class = "s" > " javascript:alert(' Hello world!' );this.blur();" < / span > < span class = "o" > %< / span > < span class = "p" > }}< / span > < span class = "nx" > Shout< / span > < span class = "nx" > it< / span > < span class = "nx" > out< / span > < span class = "p" > {{< / span > < span class = "o" > %< / span > < span class = "o" > /< / span > < span class = "nx" > button< / span > < span class = "o" > %< / span > < span class = "p" > }}< / span >
< / span > < / span > < / code > < / pre > < / div >
< span class = "btn cstyle primary" >
< button onclick = "alert('Hello world!');this.blur();" type = "button" >
< i class = "fa-fw fas fa-bullhorn" > < / i >
Shout it out
< / button >
< / span >
< h4 id = "button-within-a-form-element" > Button within a < code > form< / code > Element< / h4 >
< p > T' use native HTML elements 'n yer Marrrkdown, add this 'n yer < code > config.toml< / code > < / p >
< div class = "highlight" > < 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" > marrrkup< / span > < span class = "p" > .< / span > < span class = "nx" > goldmark< / span > < span class = "p" > .< / span > < span class = "nx" > renderer< / span > < span class = "p" > ]< / span >
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "nx" > unsafe< / span > < span class = "p" > =< / span > < span class = "kc" > true< / span >
< / span > < / span > < / code > < / pre > < / div > < div class = "highlight" > < 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" > form< / span > < span class = "na" > act'n< / span > < span class = "o" > =< / span > < span class = "s" > " ../../search.html" < / span > < span class = "na" > method< / span > < span class = "o" > =< / span > < span class = "s" > " get" < / span > < span class = "p" > > < / span >
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "p" > < < / span > < span class = "nt" > input< / span > < span class = "na" > name< / span > < span class = "o" > =< / span > < span class = "s" > " search-by-detail" < / span > < span class = "na" > class< / span > < span class = "o" > =< / span > < span class = "s" > " search-by" < / span > < span class = "na" > type< / span > < span class = "o" > =< / span > < span class = "s" > " search" < / span > < span class = "p" > > < / span >
< / span > < / span > < span class = "line" > < span class = "cl" > {{% button type=" submit" style=" secondary" icon=" search" %}}Search{{% /button %}}
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "p" > < /< / span > < span class = "nt" > form< / span > < span class = "p" > > < / span >
< / span > < / span > < / code > < / pre > < / div > < form action = "../../search.html" method = "get" >
< div class = "searchform" style = "width: 20vw;" >
< input name = "search-by-detail" class = "search-by" type = "search" placeholder = "Search..." >
< span class = "btn cstyle secondary" >
< button type = "submit" >
< i class = "fa-fw fas fa-search" > < / i >
Search
< / button >
< / span >
< / div >
< / form >
2022-04-02 13:30:16 +00:00
< footer class = "footline" >
< / footer >
< / article >
< / div >
< / main >
< / div >
2022-12-30 00:13:43 +00:00
< script src = "../../../js/clipboard.min.js?1672359219" defer > < / script >
< script src = "../../../js/perfect-scrollbar.min.js?1672359219" defer > < / script >
< script src = "../../../js/featherlight.min.js?1672359219" defer > < / script >
< script src = "../../../js/theme.js?1672359219" defer > < / script >
2022-04-02 13:30:16 +00:00
< / body >
< / html >