Skip to content

Commit

Permalink
deploy: 2e19881
Browse files Browse the repository at this point in the history
  • Loading branch information
McShelby committed Dec 31, 2024
1 parent afbfee8 commit b87d473
Show file tree
Hide file tree
Showing 1,104 changed files with 22,161 additions and 19,301 deletions.
14 changes: 7 additions & 7 deletions 404.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<meta charset="utf-8">
<meta name="viewport" content="height=device-height, width=device-width, initial-scale=1.0, minimum-scale=1.0">
<meta name="generator" content="Hugo 0.140.2">
<meta name="generator" content="Relearn 7.2.1+780744552727654e03983918f0ad49ccae2a696b">
<meta name="generator" content="Relearn 7.2.1+fbec3905ed0a2578c4a8763c90d9fe58909004fe">
<meta name="description" content="">
<meta name="author" content="Sören Weber">
<meta name="twitter:card" content="summary_large_image">
Expand All @@ -20,12 +20,12 @@
<meta itemprop="image" content="https://mcshelby.github.io/hugo-theme-relearn/images/hero.png">
<title>404 Page not found :: Hugo Relearn Theme</title>
<base href="https://mcshelby.github.io/hugo-theme-relearn/">
<link href="/hugo-theme-relearn/images/logo.svg?1735651997" rel="icon" type="image/svg+xml">
<link href="/hugo-theme-relearn/css/fontawesome-all.min.css?1735651997" rel="stylesheet" media="print" onload="this.media='all';this.onload=null;"><noscript><link href="/hugo-theme-relearn/css/fontawesome-all.min.css?1735651997" rel="stylesheet"></noscript>
<link href="/hugo-theme-relearn/css/auto-complete.css?1735651997" rel="stylesheet" media="print" onload="this.media='all';this.onload=null;"><noscript><link href="/hugo-theme-relearn/css/auto-complete.css?1735651997" rel="stylesheet"></noscript>
<link href="/hugo-theme-relearn/css/perfect-scrollbar.min.css?1735651997" rel="stylesheet">
<link href="/hugo-theme-relearn/css/theme.min.css?1735651997" rel="stylesheet">
<link href="/hugo-theme-relearn/css/format-html.min.css?1735651997" rel="stylesheet" id="R-format-style">
<link href="/hugo-theme-relearn/images/logo.svg?1735664604" rel="icon" type="image/svg+xml">
<link href="/hugo-theme-relearn/css/fontawesome-all.min.css?1735664604" rel="stylesheet" media="print" onload="this.media='all';this.onload=null;"><noscript><link href="/hugo-theme-relearn/css/fontawesome-all.min.css?1735664604" rel="stylesheet"></noscript>
<link href="/hugo-theme-relearn/css/auto-complete.css?1735664604" rel="stylesheet" media="print" onload="this.media='all';this.onload=null;"><noscript><link href="/hugo-theme-relearn/css/auto-complete.css?1735664604" rel="stylesheet"></noscript>
<link href="/hugo-theme-relearn/css/perfect-scrollbar.min.css?1735664604" rel="stylesheet">
<link href="/hugo-theme-relearn/css/theme.min.css?1735664604" rel="stylesheet">
<link href="/hugo-theme-relearn/css/format-html.min.css?1735664604" rel="stylesheet" id="R-format-style">
<script>
window.relearn = window.relearn || {};
window.relearn.relBasePath='.';
Expand Down
75 changes: 39 additions & 36 deletions authoring/frontmatter/designs/index.html

Large diffs are not rendered by default.

59 changes: 31 additions & 28 deletions authoring/frontmatter/designs/index.print.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<meta charset="utf-8">
<meta name="viewport" content="height=device-height, width=device-width, initial-scale=1.0, minimum-scale=1.0">
<meta name="generator" content="Hugo 0.140.2">
<meta name="generator" content="Relearn 7.2.1+780744552727654e03983918f0ad49ccae2a696b">
<meta name="generator" content="Relearn 7.2.1+fbec3905ed0a2578c4a8763c90d9fe58909004fe">
<meta name="description" content="How to vary layouts by using page designs">
<meta name="author" content="Sören Weber">
<meta name="twitter:card" content="summary_large_image">
Expand All @@ -20,7 +20,7 @@
<meta property="og:image" content="https://mcshelby.github.io/hugo-theme-relearn/images/hero.png">
<meta itemprop="name" content="Page Designs :: Hugo Relearn Theme">
<meta itemprop="description" content="How to vary layouts by using page designs">
<meta itemprop="wordCount" content="272">
<meta itemprop="wordCount" content="317">
<meta itemprop="image" content="https://mcshelby.github.io/hugo-theme-relearn/images/hero.png">
<meta itemprop="keywords" content="Howto">
<title>Page Designs :: Hugo Relearn Theme</title>
Expand All @@ -29,12 +29,12 @@
<link href="https://mcshelby.github.io/hugo-theme-relearn/pir/authoring/frontmatter/designs/index.html" rel="alternate" hreflang="art-x-pir">
<link href="https://mcshelby.github.io/hugo-theme-relearn/authoring/frontmatter/designs/index.html" rel="canonical" type="text/html" title="Page Designs :: Hugo Relearn Theme">
<link href="/hugo-theme-relearn/authoring/frontmatter/designs/index.xml" rel="alternate" type="application/rss+xml" title="Page Designs :: Hugo Relearn Theme">
<link href="/hugo-theme-relearn/images/logo.svg?1735651997" rel="icon" type="image/svg+xml">
<link href="/hugo-theme-relearn/css/fontawesome-all.min.css?1735651997" rel="stylesheet" media="print" onload="this.media='all';this.onload=null;"><noscript><link href="/hugo-theme-relearn/css/fontawesome-all.min.css?1735651997" rel="stylesheet"></noscript>
<link href="/hugo-theme-relearn/css/auto-complete.css?1735651997" rel="stylesheet" media="print" onload="this.media='all';this.onload=null;"><noscript><link href="/hugo-theme-relearn/css/auto-complete.css?1735651997" rel="stylesheet"></noscript>
<link href="/hugo-theme-relearn/css/perfect-scrollbar.min.css?1735651997" rel="stylesheet">
<link href="/hugo-theme-relearn/css/theme.min.css?1735651997" rel="stylesheet">
<link href="/hugo-theme-relearn/css/format-print.min.css?1735651997" rel="stylesheet" id="R-format-style">
<link href="/hugo-theme-relearn/images/logo.svg?1735664604" rel="icon" type="image/svg+xml">
<link href="/hugo-theme-relearn/css/fontawesome-all.min.css?1735664604" rel="stylesheet" media="print" onload="this.media='all';this.onload=null;"><noscript><link href="/hugo-theme-relearn/css/fontawesome-all.min.css?1735664604" rel="stylesheet"></noscript>
<link href="/hugo-theme-relearn/css/auto-complete.css?1735664604" rel="stylesheet" media="print" onload="this.media='all';this.onload=null;"><noscript><link href="/hugo-theme-relearn/css/auto-complete.css?1735664604" rel="stylesheet"></noscript>
<link href="/hugo-theme-relearn/css/perfect-scrollbar.min.css?1735664604" rel="stylesheet">
<link href="/hugo-theme-relearn/css/theme.min.css?1735664604" rel="stylesheet">
<link href="/hugo-theme-relearn/css/format-print.min.css?1735664604" rel="stylesheet" id="R-format-style">
<script>
window.relearn = window.relearn || {};
window.relearn.relBasePath='..\/..\/..';
Expand Down Expand Up @@ -82,7 +82,7 @@
window.T_No_results_found = `No results found for "{0}"`;
window.T_N_results_found = `{1} results found for "{0}"`;
</script>
<script src="/hugo-theme-relearn/js/variant.js?1735651997"></script>
<script src="/hugo-theme-relearn/js/variant.js?1735664604"></script>
<style>
#R-body img.bg-white {
background-color: white;
Expand All @@ -103,7 +103,8 @@
<div class="topbar-content-wrapper">
<nav class="TableOfContents">
<ul>
<li><a href="#predefined-designs">Predefined Designs</a>
<li><a href="#using-a-page-design">Using a Page Design</a></li>
<li><a href="#predefined-designs-for-the-html-output-format">Predefined Designs for the HTML Output Format</a>
<ul>
<li><a href="#archetypes-home">Home</a></li>
<li><a href="#archetypes-chapter">Chapter</a></li>
Expand Down Expand Up @@ -150,26 +151,25 @@

<h1 id="page-designs">Page Designs</h1>

<p>A page is displayed by exactly one page design and represented by <a href="https://gohugo.io/content-management/front-matter/#type" rel="external" target="_self">Hugo&rsquo;s reserved <code>type</code> front matter</a>.</p>
<p>The Relearn theme offers the page designs <code>home</code>, <code>chapter</code>, and <code>default</code> but you can <a href="/hugo-theme-relearn/configuration/customization/designs/index.html">define further custom page designs</a>.</p>
<p>Page designs are used to provide different layouts for your pages.</p>
<p>A page is displayed by exactly one page design and is represented by <a href="https://gohugo.io/content-management/front-matter/#type" rel="external" target="_self">Hugo&rsquo;s reserved <code>type</code> front matter</a>.</p>
<p>The Relearn theme ships with the page designs <code>home</code>, <code>chapter</code>, and <code>default</code> for the HTML output format but you can <a href="/hugo-theme-relearn/configuration/customization/designs/index.html">define further custom page designs</a>.</p>
<h2 id="using-a-page-design">Using a Page Design</h2>
<p>Regardless of shipped or custom page design, you are using them in the same way.</p>
<ul>
<li>
<p>If you have an <a href="https://gohugo.io/content-management/archetypes/" rel="external" target="_self">archetype file</a>, you can just do</p>
<div class="highlight wrap-code"><pre tabindex="0" class="chroma"><code class="language-shell" data-lang="shell"><span class="line"><span class="cl">hugo new --kind chapter chapter1/_index.md</span></span></code></pre></div>
</li>
<li>
<p>If you are creating your Markdown files manually, you can achieve the same by just setting <code>type='chapter'</code> in the front matter.</p>
</li>
</ul>
<p>Your resulting Markdown file needs to have at least the <code>type</code> front matter set to the value of the page design</p>
<div class="tab-panel" data-tab-group="e8cd20f20681f5988a79b800292a9a5b">
<p>If you are creating your Markdown files manually, you can achieve the same by just setting <code>type='chapter'</code> in the front matter to make your page displayed with the <code>chapter</code> page design.</p>
<div class="tab-panel" data-tab-group="b85f3c4e8efabd0336e34f2b28169e1e">
<div class="tab-nav">
<div class="tab-nav-title">&#8203;</div>
<button
data-tab-item="_indexmd"
class="tab-nav-button tab-panel-style cstyle initial active" tabindex="-1"
onclick="switchTab('e8cd20f20681f5988a79b800292a9a5b','_indexmd')"
onclick="switchTab('b85f3c4e8efabd0336e34f2b28169e1e','_indexmd')"
>
<span class="tab-nav-text">_index.md</span>
</button>
Expand All @@ -186,29 +186,32 @@ <h1 id="page-designs">Page Designs</h1>
</div>
</div>
</div>
</div><h2 id="predefined-designs">Predefined Designs</h2>
</div></li>
</ul>
<p>If no <code>type</code> is set in your front matter or the page design doesn&rsquo;t exist for a given output format, the page is treated as if <code>type='default'</code> was set.</p>
<h2 id="predefined-designs-for-the-html-output-format">Predefined Designs for the HTML Output Format</h2>
<h3 id="archetypes-home">Home</h3>
<p>A <strong>Home</strong> page is the starting page of your project. It&rsquo;s best to have only one page of this kind in your project.</p>
<p>To create a home page, run the following command</p>
<div class="highlight wrap-code"><pre tabindex="0" class="chroma"><code class="language-shell" data-lang="shell"><span class="line"><span class="cl">hugo new --kind home _index.md</span></span></code></pre></div>
<p><a href="#R-image-d766edbbabce01620889f7bc1b4fc3a4" class="lightbox-link"><img alt="Home page" class="bg-white border lazy lightbox noshadow figure-image" loading="lazy" src="/hugo-theme-relearn/authoring/frontmatter/designs/pages-home.png?width=60pc" style=" height: auto; width: 60pc;"></a>
<a href="javascript:history.back();" class="lightbox-back" id="R-image-d766edbbabce01620889f7bc1b4fc3a4"><img alt="Home page" class="bg-white border lazy lightbox noshadow lightbox-image" loading="lazy" src="/hugo-theme-relearn/authoring/frontmatter/designs/pages-home.png?width=60pc"></a></p>
<p><a href="#R-image-08b899bd909a42389d6b721f84622af6" class="lightbox-link"><img alt="Home page" class="bg-white border lazy lightbox noshadow figure-image" loading="lazy" src="/hugo-theme-relearn/authoring/frontmatter/designs/pages-home.png?width=60pc" style=" height: auto; width: 60pc;"></a>
<a href="javascript:history.back();" class="lightbox-back" id="R-image-08b899bd909a42389d6b721f84622af6"><img alt="Home page" class="bg-white border lazy lightbox noshadow lightbox-image" loading="lazy" src="/hugo-theme-relearn/authoring/frontmatter/designs/pages-home.png?width=60pc"></a></p>
<h3 id="archetypes-chapter">Chapter</h3>
<p>A <strong>Chapter</strong> displays a page meant to be used as introduction for a set of child pages.</p>
<p>Commonly, it contains a title front matter and a short description in the content.</p>
<p>To create a chapter page, run the following command</p>
<div class="highlight wrap-code"><pre tabindex="0" class="chroma"><code class="language-shell" data-lang="shell"><span class="line"><span class="cl">hugo new --kind chapter chapter1/_index.md</span></span></code></pre></div>
<p>If a numerical <code>weight</code> front matter is set, it will be used to generate the subtitle of the chapter page. Set the number to a consecutive value starting at 1 for each new chapter on the same directory level.</p>
<p><a href="#R-image-dda5f1fbd0ec40b9d2a649130022fe44" class="lightbox-link"><img alt="Chapter page" class="bg-white border lazy lightbox noshadow figure-image" loading="lazy" src="/hugo-theme-relearn/authoring/frontmatter/designs/pages-chapter.png?width=60pc" style=" height: auto; width: 60pc;"></a>
<a href="javascript:history.back();" class="lightbox-back" id="R-image-dda5f1fbd0ec40b9d2a649130022fe44"><img alt="Chapter page" class="bg-white border lazy lightbox noshadow lightbox-image" loading="lazy" src="/hugo-theme-relearn/authoring/frontmatter/designs/pages-chapter.png?width=60pc"></a></p>
<p><a href="#R-image-f1a5e0295a6028e5c5936a74a63915a0" class="lightbox-link"><img alt="Chapter page" class="bg-white border lazy lightbox noshadow figure-image" loading="lazy" src="/hugo-theme-relearn/authoring/frontmatter/designs/pages-chapter.png?width=60pc" style=" height: auto; width: 60pc;"></a>
<a href="javascript:history.back();" class="lightbox-back" id="R-image-f1a5e0295a6028e5c5936a74a63915a0"><img alt="Chapter page" class="bg-white border lazy lightbox noshadow lightbox-image" loading="lazy" src="/hugo-theme-relearn/authoring/frontmatter/designs/pages-chapter.png?width=60pc"></a></p>
<h3 id="archetypes-default">Default</h3>
<p>A <strong>Default</strong> page is any other content page.</p>
<p>To create a default page, run either one of the following commands</p>
<div class="highlight wrap-code"><pre tabindex="0" class="chroma"><code class="language-shell" data-lang="shell"><span class="line"><span class="cl">hugo new chapter1/page1/_index.md</span></span></code></pre></div>
<p>or</p>
<div class="highlight wrap-code"><pre tabindex="0" class="chroma"><code class="language-shell" data-lang="shell"><span class="line"><span class="cl">hugo new chapter1/page1.md</span></span></code></pre></div>
<p><a href="#R-image-22603e26297107fdd603d7ad1d2cd6c1" class="lightbox-link"><img alt="Default page" class="bg-white border lazy lightbox noshadow figure-image" loading="lazy" src="/hugo-theme-relearn/authoring/frontmatter/designs/pages-default.png?width=60pc" style=" height: auto; width: 60pc;"></a>
<a href="javascript:history.back();" class="lightbox-back" id="R-image-22603e26297107fdd603d7ad1d2cd6c1"><img alt="Default page" class="bg-white border lazy lightbox noshadow lightbox-image" loading="lazy" src="/hugo-theme-relearn/authoring/frontmatter/designs/pages-default.png?width=60pc"></a></p>
<p><a href="#R-image-49cf7167e31d9452b0a8dd48a98cb0fb" class="lightbox-link"><img alt="Default page" class="bg-white border lazy lightbox noshadow figure-image" loading="lazy" src="/hugo-theme-relearn/authoring/frontmatter/designs/pages-default.png?width=60pc" style=" height: auto; width: 60pc;"></a>
<a href="javascript:history.back();" class="lightbox-back" id="R-image-49cf7167e31d9452b0a8dd48a98cb0fb"><img alt="Default page" class="bg-white border lazy lightbox noshadow lightbox-image" loading="lazy" src="/hugo-theme-relearn/authoring/frontmatter/designs/pages-default.png?width=60pc"></a></p>

<footer class="footline">
<div class="R-taxonomy taxonomy-categories cstyle" title="Categories" style="--VARIABLE-TAGS-BG-color: var(--INTERNAL-TAG-BG-color);">
Expand All @@ -222,8 +225,8 @@ <h3 id="archetypes-default">Default</h3>
</div>
</main>
</div>
<script src="/hugo-theme-relearn/js/clipboard.min.js?1735651997" defer></script>
<script src="/hugo-theme-relearn/js/perfect-scrollbar.min.js?1735651997" defer></script>
<script src="/hugo-theme-relearn/js/theme.js?1735651997" defer></script>
<script src="/hugo-theme-relearn/js/clipboard.min.js?1735664604" defer></script>
<script src="/hugo-theme-relearn/js/perfect-scrollbar.min.js?1735664604" defer></script>
<script src="/hugo-theme-relearn/js/theme.js?1735664604" defer></script>
</body>
</html>
Loading

0 comments on commit b87d473

Please sign in to comment.