mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2025-02-21 03:00:09 +00:00
234 lines
14 KiB
HTML
234 lines
14 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en" dir="ltr" itemscope itemtype="http://schema.org/Article" data-r-output-format="print">
|
|
<head>
|
|
<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.143.1">
|
|
<meta name="generator" content="Relearn 7.3.2+2a6d621e79ae8fc80cc8e3d832a132a8a7274341">
|
|
<meta name="description" content="About this Website">
|
|
<meta name="author" content="Captain Hugo">
|
|
<meta name="twitter:card" content="summary">
|
|
<meta name="twitter:title" content="About :: Purple Pulpo">
|
|
<meta name="twitter:description" content="About this Website">
|
|
<meta property="og:url" content="https://mcshelby.github.io/hugo-theme-relearn/exampleSite/about/index.html">
|
|
<meta property="og:site_name" content="Purple Pulpo">
|
|
<meta property="og:title" content="About :: Purple Pulpo">
|
|
<meta property="og:description" content="About this Website">
|
|
<meta property="og:locale" content="en">
|
|
<meta property="og:type" content="article">
|
|
<meta property="article:section" content="The Purple Pulpo">
|
|
<meta itemprop="name" content="About :: Purple Pulpo">
|
|
<meta itemprop="description" content="About this Website">
|
|
<meta itemprop="wordCount" content="214">
|
|
<title>About :: Purple Pulpo</title>
|
|
<link href="https://mcshelby.github.io/hugo-theme-relearn/exampleSite/about/index.html" rel="alternate" hreflang="x-default">
|
|
<link href="https://mcshelby.github.io/hugo-theme-relearn/exampleSite/about/index.html" rel="alternate" hreflang="en">
|
|
<link href="https://mcshelby.github.io/hugo-theme-relearn/exampleSite/pir/about/index.html" rel="alternate" hreflang="art-x-pir">
|
|
<link href="https://mcshelby.github.io/hugo-theme-relearn/exampleSite/about/index.html" rel="canonical" type="text/html" title="About :: Purple Pulpo">
|
|
<link href="/hugo-theme-relearn/exampleSite/about/index.xml" rel="alternate" type="application/rss+xml" title="About :: Purple Pulpo">
|
|
<link href="/hugo-theme-relearn/exampleSite/css/fontawesome-all.min.css?1739488773" rel="stylesheet" media="print" onload="this.media='all';this.onload=null;"><noscript><link href="/hugo-theme-relearn/exampleSite/css/fontawesome-all.min.css?1739488773" rel="stylesheet"></noscript>
|
|
<link href="/hugo-theme-relearn/exampleSite/css/auto-complete.css?1739488773" rel="stylesheet" media="print" onload="this.media='all';this.onload=null;"><noscript><link href="/hugo-theme-relearn/exampleSite/css/auto-complete.css?1739488773" rel="stylesheet"></noscript>
|
|
<link href="/hugo-theme-relearn/exampleSite/css/perfect-scrollbar.min.css?1739488773" rel="stylesheet">
|
|
<link href="/hugo-theme-relearn/exampleSite/css/theme.min.css?1739488773" rel="stylesheet">
|
|
<link href="/hugo-theme-relearn/exampleSite/css/format-print.min.css?1739488773" rel="stylesheet" id="R-format-style">
|
|
<script>
|
|
window.relearn = window.relearn || {};
|
|
window.relearn.relBasePath='..';
|
|
window.relearn.relBaseUri='..\/..\/..';
|
|
window.relearn.absBaseUri='https:\/\/mcshelby.github.io\/hugo-theme-relearn\/exampleSite';
|
|
window.relearn.min = `.min`;
|
|
window.relearn.disableAnchorCopy=false;
|
|
window.relearn.disableAnchorScrolling=false;
|
|
// variant stuff
|
|
window.relearn.themevariants = [ 'auto', 'neon', 'learn' ];
|
|
window.relearn.customvariantname = "my-custom-variant";
|
|
window.relearn.changeVariant = function(variant) {
|
|
var oldVariant = document.documentElement.dataset.rThemeVariant;
|
|
window.localStorage.setItem(window.relearn.absBaseUri + "/variant", variant);
|
|
document.documentElement.dataset.rThemeVariant = variant;
|
|
if (oldVariant != variant) {
|
|
document.dispatchEvent( new CustomEvent('themeVariantLoaded', { detail: { variant, oldVariant } }) );
|
|
}
|
|
}
|
|
window.relearn.markVariant = function() {
|
|
var variant = window.localStorage.getItem(window.relearn.absBaseUri + "/variant");
|
|
var select = document.querySelector("#R-select-variant");
|
|
if (select) {
|
|
select.value = variant;
|
|
}
|
|
}
|
|
window.relearn.initVariant = function() {
|
|
var variant = window.localStorage.getItem(window.relearn.absBaseUri + "/variant") ?? "";
|
|
if( variant == window.relearn.customvariantname ){
|
|
}else if( !variant || !window.relearn.themevariants.includes(variant) ){
|
|
variant = window.relearn.themevariants[0];
|
|
window.localStorage.setItem(window.relearn.absBaseUri + "/variant", variant);
|
|
}
|
|
document.documentElement.dataset.rThemeVariant = variant;
|
|
}
|
|
window.relearn.initVariant();
|
|
window.relearn.markVariant();
|
|
// translations
|
|
window.T_Copy_to_clipboard = `Copy to clipboard`;
|
|
window.T_Copied_to_clipboard = `Copied to clipboard!`;
|
|
window.T_Copy_link_to_clipboard = `Copy link to clipboard`;
|
|
window.T_Link_copied_to_clipboard = `Copied link to clipboard!`;
|
|
window.T_Reset_view = `Reset view`;
|
|
window.T_View_reset = `View reset!`;
|
|
window.T_No_results_found = `No results found for "{0}"`;
|
|
window.T_N_results_found = `{1} results found for "{0}"`;
|
|
</script>
|
|
<style>
|
|
|
|
#R-body svg.purple,
|
|
#R-body svg.purple :not([fill]),
|
|
#R-body svg.purple :not([fill='black']),
|
|
#R-body svg.purple :not([fill='#000000']) {
|
|
fill: var(--INTERNAL-PRIMARY-color) !important;
|
|
}
|
|
|
|
|
|
#R-logo {
|
|
font-size: 1.4rem;
|
|
margin-bottom: -.8125rem;
|
|
margin-top: -.8125rem;
|
|
max-width: 100%;
|
|
width: 14.125rem;
|
|
}
|
|
@media only all and (max-width: 59.999rem) {
|
|
#R-logo {
|
|
font-size: 1rem;
|
|
margin-bottom: -.25rem;
|
|
margin-top: -.25rem;
|
|
}
|
|
}
|
|
#R-logo svg {
|
|
display: inline-block;
|
|
opacity: .945;
|
|
vertical-align: middle;
|
|
width: 26% !important;
|
|
}
|
|
@media only all and (max-width: 59.999rem) {
|
|
#R-logo svg {
|
|
width: 24.5% !important;
|
|
}
|
|
}
|
|
#R-logo svg * {
|
|
opacity: .945;
|
|
}
|
|
#R-logo .logo-title{
|
|
display: inline-block;
|
|
overflow-wrap: break-word;
|
|
text-align: left;
|
|
text-wrap: wrap;
|
|
vertical-align: middle;
|
|
width: 4.5em;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body class="mobile-support print" data-url="/hugo-theme-relearn/exampleSite/about/index.html">
|
|
<div id="R-body" class="default-animation">
|
|
<div id="R-body-overlay"></div>
|
|
<nav id="R-topbar">
|
|
<div class="topbar-wrapper">
|
|
<div class="topbar-sidebar-divider"></div>
|
|
<div class="topbar-area topbar-area-start" data-area="start">
|
|
<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>
|
|
</div>
|
|
<div class="topbar-button topbar-button-toc" data-content-empty="hide" data-width-s="show" data-width-m="show" data-width-l="show"><button class="topbar-control" onclick="toggleTopbarFlyout(this)" type="button" title="Table of Contents (CTRL+ALT+t)"><i class="fa-fw fas fa-list-alt"></i></button>
|
|
<div class="topbar-content">
|
|
<div class="topbar-content-wrapper">
|
|
<nav class="TableOfContents">
|
|
<ul>
|
|
<li><a href="#face-it">Face it</a></li>
|
|
<li><a href="#run-it">Run it</a></li>
|
|
<li><a href="#modify-it">Modify it</a></li>
|
|
</ul>
|
|
</nav>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<ol class="topbar-breadcrumbs breadcrumbs highlightable" itemscope itemtype="http://schema.org/BreadcrumbList"><li
|
|
itemscope itemtype="https://schema.org/ListItem" itemprop="itemListElement"><a itemprop="item" href="/hugo-theme-relearn/exampleSite/index.html"><span itemprop="name">Purple Pulpo</span></a><meta itemprop="position" content="1"> > </li><li
|
|
itemscope itemtype="https://schema.org/ListItem" itemprop="itemListElement"><span itemprop="name">About</span><meta itemprop="position" content="2"></li>
|
|
</ol>
|
|
<div class="topbar-area topbar-area-end" data-area="end">
|
|
<div class="topbar-button topbar-button-print" data-content-empty="disable" data-width-s="area-more" data-width-m="show" data-width-l="show"><a class="topbar-control" href="/hugo-theme-relearn/exampleSite/about/index.print.html" title="Print whole chapter (CTRL+ALT+p)"><i class="fa-fw fas fa-print"></i></a>
|
|
</div>
|
|
<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/exampleSite/log/third-day/index.html" title="Day 3 (🡐)"><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"><span class="topbar-control"><i class="fa-fw fas fa-chevron-right"></i></span>
|
|
</div>
|
|
<div class="topbar-button topbar-button-more" data-content-empty="hide" data-width-s="show" data-width-m="show" data-width-l="show"><button class="topbar-control" onclick="toggleTopbarFlyout(this)" type="button" title="More"><i class="fa-fw fas fa-ellipsis-v"></i></button>
|
|
<div class="topbar-content">
|
|
<div class="topbar-content-wrapper">
|
|
<div class="topbar-area topbar-area-more" data-area="more">
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</nav>
|
|
<div id="R-main-overlay"></div>
|
|
<main id="R-body-inner" class="highlightable page" tabindex="-1">
|
|
<div class="flex-block-wrapper">
|
|
<article class="default">
|
|
<header class="headline">
|
|
</header>
|
|
|
|
<h1 id="about">About</h1>
|
|
|
|
<h2 id="face-it">Face it</h2>
|
|
<p>This is an example site for the <a href="https://mcshelby.github.io/hugo-theme-relearn/pir/index.html" rel="external" target="_self">Relearn theme</a> of the <a href="https://gohugo.io" rel="external" target="_self">Hugo</a> static site generator.</p>
|
|
<p>It displays content about the fictional ship <span class="badge cstyle primary badge-with-title"><span class="badge-title"><i class="fa-fw fas fa-anchor"></i></span><span class="badge-content">The Purple Pulpo</span></span> in English and a crude Piratish accent. Don’t take it too serious.</p>
|
|
<p>The goal with this site is to showcase a minimal example with as less configuration as possible. It is meant to be a starting point for your own website. The configuration files are documented to help you understand the reason behind certain settings.</p>
|
|
<h2 id="run-it">Run it</h2>
|
|
<p>The source code for this website is contained in the <a href="https://github.com/McShelby/hugo-theme-relearn/tree/main/exampleSite" rel="external" target="_self">Relearn repository</a>. After the <a href="https://gohugo.io/installation/" rel="external" target="_self">installation of Hugo</a> you can build the site locally from inside the <code>exampleSite</code> directory with</p>
|
|
<div class="highlight wrap-code"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">hugo server</span></span></code></pre></div>
|
|
<p>Then you can access the site by navigating to <code>http://localhost:1313</code> in your browser.</p>
|
|
<p>For a detailed installation guide, see the <a href="https://mcshelby.github.io/hugo-theme-relearn/introduction/quickstart/index.html" rel="external" target="_self">Relearn documentation</a>.</p>
|
|
<h2 id="modify-it">Modify it</h2>
|
|
<p>While minimal in configuration, this showcase contains an auto translation into the Piratish language. This required some additional files and directories, totally unnecessary for a simple site. You can delete them if you use this site as a starting template. Namely these are:</p>
|
|
<ul>
|
|
<li><code>content/pir/</code></li>
|
|
<li><code>i18n/</code></li>
|
|
<li><code>layouts/partials/shortcodes/piratify.html</code></li>
|
|
<li><code>layouts/partials/toc.html</code></li>
|
|
<li><code>layouts/shortcodes/piratify.html</code></li>
|
|
</ul>
|
|
<p>You will also have to add this to the <code>hugo.toml</code> to deactivate the translation:</p>
|
|
<div class="tab-panel" data-tab-group="1c058ff78fafeaa289e1015896c3e0e6">
|
|
<div class="tab-nav">
|
|
<div class="tab-nav-title">​</div>
|
|
<button
|
|
data-tab-item="hugotoml"
|
|
class="tab-nav-button tab-panel-style cstyle initial active" tabindex="-1"
|
|
onclick="switchTab('1c058ff78fafeaa289e1015896c3e0e6','hugotoml')"
|
|
>
|
|
<span class="tab-nav-text">hugo.toml</span>
|
|
</button>
|
|
</div>
|
|
<div class="tab-content-container">
|
|
<div
|
|
data-tab-item="hugotoml"
|
|
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="nx">disableLanguages</span> <span class="p">=</span> <span class="p">[</span><span class="s1">'pir'</span><span class="p">]</span></span></span></code></pre></div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div><p><strong>or</strong> remove all references to the Piratish language.</p>
|
|
|
|
<footer class="footline">
|
|
</footer>
|
|
</article>
|
|
</div>
|
|
</main>
|
|
</div>
|
|
<script src="/hugo-theme-relearn/exampleSite/js/clipboard.min.js?1739488773" defer></script>
|
|
<script src="/hugo-theme-relearn/exampleSite/js/perfect-scrollbar.min.js?1739488773" defer></script>
|
|
<script src="/hugo-theme-relearn/exampleSite/js/theme.js?1739488773" defer></script>
|
|
</body>
|
|
</html>
|