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-08 10:17:57 +00:00
< meta name = "generator" content = "Hugo 0.108.0" >
2022-12-11 22:22:02 +00:00
< meta name = "generator" content = "Relearn 5.8.1+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 > Installat' n :: Cap' n Hugo Relearrrn Theme< / title >
2022-11-15 06:35:08 +00:00
< link href = "https://McShelby.github.io/hugo-theme-relearn/pir/basics/installation/index.html" rel = "canonical" type = "text/html" title = "Installat'n :: Cap'n Hugo Relearrrn Theme" >
2022-11-06 00:38:34 +00:00
< link href = "../../../pir/basics/installation/index.xml" rel = "alternate" type = "application/rss+xml" title = "Installat'n :: Cap'n Hugo Relearrrn Theme" >
2022-12-16 16:18:42 +00:00
< link href = "../../../images/logo.svg?1671207518" 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-16 16:18:42 +00:00
< link href = "../../../css/fontawesome-all.min.css?1671207519" rel = "stylesheet" media = "print" onload = "this.media='all';this.onload=null;" > < noscript > < link href = "../../../css/fontawesome-all.min.css?1671207519" rel = "stylesheet" > < / noscript >
< link href = "../../../css/featherlight.min.css?1671207519" rel = "stylesheet" media = "print" onload = "this.media='all';this.onload=null;" > < noscript > < link href = "../../../css/featherlight.min.css?1671207519" rel = "stylesheet" > < / noscript >
< link href = "../../../css/auto-complete.css?1671207519" rel = "stylesheet" media = "print" onload = "this.media='all';this.onload=null;" > < noscript > < link href = "../../../css/auto-complete.css?1671207519" rel = "stylesheet" > < / noscript >
< link href = "../../../css/perfect-scrollbar.min.css?1671207519" rel = "stylesheet" >
< link href = "../../../css/nucleus.css?1671207519" rel = "stylesheet" >
< link href = "../../../css/fonts.css?1671207519" rel = "stylesheet" media = "print" onload = "this.media='all';this.onload=null;" > < noscript > < link href = "../../../css/fonts.css?1671207519" rel = "stylesheet" > < / noscript >
< link href = "../../../css/theme.css?1671207519" rel = "stylesheet" >
< link href = "../../../css/theme-relearn-light.css?1671207519" rel = "stylesheet" id = "variant-style" >
< link href = "../../../css/ie.css?1671207519" rel = "stylesheet" >
< link href = "../../../css/variant.css?1671207519" rel = "stylesheet" >
< link href = "../../../css/print.css?1671207519" rel = "stylesheet" media = "print" >
< link href = "../../../css/format-print.css?1671207519" rel = "stylesheet" >
< script src = "../../../js/url.js?1671207519" > < / script >
< script src = "../../../js/variant.js?1671207519" > < / 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-16 16:18:42 +00:00
< script src = "../../../js/jquery.min.js?1671207519" 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/basics/installation/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/basics/index.html" > < span itemprop = "name" > Basics< / 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" > Installat' n< / 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 = "installatn" > Installat' n< / 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-12-16 16:18:42 +00:00
< p > Th' follow'n steps be here t' help ye initialize yer new website. If ye don’ t know Cap'n Hugo at all, we strongly suggest ye learn more about it by follow'n this
< a href = "https://gohugo.io/overview/quickstart/" target = "_blank" rel = "noopener" >
great documentat'n fer beginners
< / a > .< / p >
2022-04-02 13:30:16 +00:00
< h2 id = "create-your-project" > Create yer project< / h2 >
< p > Cap'n Hugo provides a < code > new< / code > command t' create a new website.< / p >
< pre tabindex = "0" > < code > hugo new ship < new_project>
< / code > < / pre > < h2 id = "install-the-theme" > Install th' theme< / h2 >
2022-12-16 16:18:42 +00:00
< p > Install th' Relearrrn theme by follow'n
< a href = "https://gohugo.io/hugo-modules/use-modules/#use-a-module-for-a-theme" target = "_blank" rel = "noopener" >
this documentat'n
< / a > us'n Hugo’ s module system.< / p >
< p > This theme’ s repository be:
< a href = "https://github.com/McShelby/hugo-theme-relearn.git" target = "_blank" rel = "noopener" >
https://github.com/McShelby/hugo-theme-relearn.git
< / a > < / p >
< p > Alternatively, ye can
< a href = "https://github.com/McShelby/hugo-theme-relearn/archive/main.zip" target = "_blank" rel = "noopener" >
download th' theme as .zip
< / a > file an' extract it 'n th' < code > themes< / code > directory< / p >
2022-04-02 13:30:16 +00:00
< h2 id = "basic-configuration" > Basic configurat'n< / h2 >
< p > When build'n th' website, ye can set a theme by us'n < code > --theme< / code > opt'n. However, we suggest ye modify th' configurat'n file (< code > config.toml< / code > ) an' set th' theme as th' default. Ye can also add th' < code > [outputs]< / code > section t' en'ble th' search functionality.< / p >
< div class = "highlight" > < pre tabindex = "0" class = "chroma" > < code class = "language-toml" data-lang = "toml" > < span class = "line" > < span class = "cl" > < span class = "c" > # Change th' default theme t' be use when build'n th' ship wit' Cap'n Hugo< / span >
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "nx" > theme< / span > < span class = "p" > =< / span > < span class = "s2" > " hugo-theme-relearn" < / span >
< / span > < / span > < span class = "line" > < span class = "cl" >
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "c" > # For search functionality< / span >
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "p" > [< / span > < span class = "nx" > outputs< / span > < span class = "p" > ]< / span >
2022-11-01 23:17:10 +00:00
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "nx" > home< / span > < span class = "p" > =< / span > < span class = "p" > [< / span > < span class = "s2" > " HTML" < / span > < span class = "p" > ,< / span > < span class = "s2" > " RSS" < / span > < span class = "p" > ,< / span > < span class = "s2" > " SEARCH" < / span > < span class = "p" > ]< / span >
2022-04-02 13:30:16 +00:00
< / span > < / span > < / code > < / pre > < / div > < h2 id = "create-your-first-chapter-page" > Create yer first chapter plank< / h2 >
< p > Chapters be planks that contain other child planks. It has a special layout style an' usually just contains a < em > chapter name< / em > , th' < em > title< / em > an' a < em > brief abstract< / em > o' th' section.< / p >
< div class = "highlight" > < pre tabindex = "0" class = "chroma" > < code class = "language-markdown" data-lang = "markdown" > < span class = "line" > < span class = "cl" > < span class = "gu" > ### Chapter 1
< / span > < / span > < / span > < span class = "line" > < span class = "cl" > < span class = "gu" > < / span >
< / span > < / span > < span class = "line" > < span class = "cl" > < span class = "gh" > # Basics
< / span > < / span > < / span > < span class = "line" > < span class = "cl" > < span class = "gh" > < / span >
< / span > < / span > < span class = "line" > < span class = "cl" > Discover what this Cap'n Hugo theme be all about an' th' core concepts behind it.
< / span > < / span > < / code > < / pre > < / div > < p > renders as< / p >
2022-11-05 23:35:48 +00:00
< p >
2022-11-06 15:27:13 +00:00
< a href = "../../../basics/installation/chapter.png?classes=shadow&width=60pc" data-featherlight = "image" >
< img src = "../../../basics/installation/chapter.png?classes=shadow&width=60pc" alt = "A Chapter" class = "shadow" style = "height: auto; width: 60pc;" loading = "lazy" >
< / a > < / p >
2022-04-02 13:30:16 +00:00
< p > Th' Relearrrn theme provides archetypes t' create skeletons fer yer website. Begin by creat'n yer first chapter plank wit' th' follow'n command< / p >
< div class = "highlight" > < pre tabindex = "0" class = "chroma" > < code class = "language-shell" data-lang = "shell" > < span class = "line" > < span class = "cl" > hugo new --kind chapter basics/_index.md
< / span > < / span > < / code > < / pre > < / div > < p > By open'n th' given file, ye should see th' property < code > chapter=true< / code > on top, mean'n this plank be a < em > chapter< / em > .< / p >
< p > By default all chapters an' planks be created as a draft. If ye want t' render these planks, remove th' property < code > draft: true< / code > from th' metadata.< / p >
< h2 id = "create-your-first-content-pages" > Create yer first rrrambl'n planks< / h2 >
< p > Then, create rrrambl'n planks inside th' previously created chapter. Here be two ways t' create rrrambl'n 'n th' chapter:< / p >
< div class = "highlight" > < pre tabindex = "0" class = "chroma" > < code class = "language-shell" data-lang = "shell" > < span class = "line" > < span class = "cl" > hugo new basics/first-content.md
< / span > < / span > < span class = "line" > < span class = "cl" > hugo new basics/second-content/_index.md
< / span > < / span > < / code > < / pre > < / div > < p > Feel free t' edit those files by add'n some sample rrrambl'n an' replac'n th' < code > title< / code > value 'n th' beginn'n o' th' files.< / p >
< h2 id = "launching-the-website-locally" > Launch'n th' website locally< / h2 >
< p > Launch by us'n th' follow'n command:< / p >
< div class = "highlight" > < pre tabindex = "0" class = "chroma" > < code class = "language-shell" data-lang = "shell" > < span class = "line" > < span class = "cl" > hugo serve
< / span > < / span > < / code > < / pre > < / div > < p > Go t' < code > http://localhost:1313< / code > < / p >
< p > Ye should notice three th'ns:< / p >
< ol >
< li > Ye have a left-side < strong > Basics< / strong > menu, contain'n two submenus wit' names equal t' th' < code > title< / code > properties 'n th' previously created files.< / li >
< li > Th' home plank explains how t' cust'mize it by follow'n th' instruct'ns.< / li >
< li > When ye run < code > hugo serve< / code > , when th' contents o' th' files change, th' plank automatically refreshes wit' th' changes. Neat!< / li >
< / ol >
< h2 id = "build-the-website" > Build th' website< / h2 >
< p > When yer ship be ready t' deploy, run th' follow'n command:< / p >
< div class = "highlight" > < pre tabindex = "0" class = "chroma" > < code class = "language-shell" data-lang = "shell" > < span class = "line" > < span class = "cl" > hugo
< / span > < / span > < / code > < / pre > < / div > < p > A < code > public< / code > folder will be generated, contain'n all static rrrambl'n an' assets fer yer website. It can now be deployed on any web server.< / p >
2022-05-29 21:00:53 +00:00
< div class = "box notices cstyle note" >
2022-12-01 00:38:08 +00:00
< div class = "box-label" > < i class = "fa-fw fas fa-exclamation-circle" > < / i > Avast< / div >
< div class = "box-content" >
2022-12-16 16:18:42 +00:00
< p > This website can be automatically published an' hosted wit'
< a href = "https://www.netlify.com/" target = "_blank" rel = "noopener" >
Netlify
< / a > (Read more about
< a href = "https://www.netlify.com/blog/2015/07/30/hosting-hugo-on-netlifyinsanely-fast-deploys/" target = "_blank" rel = "noopener" >
Automated HUGO deployments wit' Netlify
< / a > ). Alternatively, ye can use
< a href = "https://gohugo.io/hosting-and-deployment/hosting-on-github/" target = "_blank" rel = "noopener" >
GitHub planks
< / a > .< / p >
2022-12-04 09:16:01 +00:00
< / div >
2022-04-02 13:30:16 +00:00
< / div >
< footer class = "footline" >
< / footer >
< / article >
< / div >
< / main >
< / div >
2022-12-16 16:18:42 +00:00
< script src = "../../../js/clipboard.min.js?1671207520" defer > < / script >
< script src = "../../../js/perfect-scrollbar.min.js?1671207520" defer > < / script >
< script src = "../../../js/featherlight.min.js?1671207520" defer > < / script >
< script src = "../../../js/theme.js?1671207520" defer > < / script >
2022-04-02 13:30:16 +00:00
< / body >
< / html >