mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2025-02-15 00:03:32 +00:00
exampleSite: add new exampleSite #1003
This commit is contained in:
parent
1eaa287faa
commit
ac9244e75d
44 changed files with 1004 additions and 2 deletions
7
.github/actions/build_site/action.yaml
vendored
7
.github/actions/build_site/action.yaml
vendored
|
@ -8,7 +8,12 @@ runs:
|
|||
with:
|
||||
hugo-version: 'latest'
|
||||
|
||||
- name: Build site
|
||||
- name: Build docs
|
||||
shell: bash
|
||||
run: |
|
||||
hugo --source ${GITHUB_WORKSPACE}/docs --destination ${GITHUB_WORKSPACE}/../public --cleanDestinationDir --environment github --theme ${GITHUB_WORKSPACE}
|
||||
|
||||
- name: Build exampleSite
|
||||
shell: bash
|
||||
run: |
|
||||
hugo --source ${GITHUB_WORKSPACE}/docs --destination ${GITHUB_WORKSPACE}/../public/exampleSite --environment github --theme ${GITHUB_WORKSPACE}
|
||||
|
|
27
exampleSite/assets/images/logo.svg
Normal file
27
exampleSite/assets/images/logo.svg
Normal file
|
@ -0,0 +1,27 @@
|
|||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="75 75 350 350">
|
||||
<style>
|
||||
@media (prefers-color-scheme: dark) {
|
||||
path { fill: white; }
|
||||
}
|
||||
</style>
|
||||
<path
|
||||
d="M250,80 a170,170 0 1,0 0,340 a170,170 0 1,0 0,-340 M250,95 a155,155 0 1,1 0,310 a155,155 0 1,1 0,-310 Z" />
|
||||
<path
|
||||
d="M 250 110 C 223.33333 123.33333 203.33333 156.66667 190 210 C 190 230 200 246.66667 220 260 C 246.66667 273.33333 270 273.33333 290 260 C 310 246.66667 316.66667 230 310 210 C 296.66667 156.66667 276.66667 123.33333 250 110 z M 230 152 A 22 28 0 0 1 250.02539 168.43164 A 22 28 0 0 1 270 152 A 22 28 0 0 1 292 180 A 22 28 0 0 1 270 208 A 22 28 0 0 1 250 191.48828 A 22 28 0 0 1 230 208 A 22 28 0 0 1 208 180 A 22 28 0 0 1 230 152 z " />
|
||||
<path
|
||||
d="M 232 190 A 7 7 0 1 0 218 190 A 7 7 0 1 0 232 190" />
|
||||
<path
|
||||
d="M 282 190 A 7 7 0 1 0 268 190 A 7 7 0 1 0 282 190" />
|
||||
<path
|
||||
d="m 251.62695,262.67773 -3.2539,14.64454 c 29.6411,6.58691 52.50119,14.00059 68.27343,21.88671 15.77224,7.88612 23.89316,16.12675 26.23829,23.16211 l 0.16796,0.50586 0.23829,0.47657 c 2.77431,5.54863 2.96984,9.14709 2.09375,11.77539 -0.8761,2.62829 -3.18965,5.38779 -8.73829,8.16211 -5.54863,2.77431 -9.14709,2.96984 -11.77539,2.09375 -2.62829,-0.8761 -5.38779,-3.18965 -8.16211,-8.73829 -5.77224,-11.54447 -5.77224,-21.74849 0,-33.29296 l -13.41796,-6.70704 c -7.5611,15.12219 -7.5611,31.58485 0,46.70704 3.89235,7.7847 9.46618,13.80448 16.83789,16.26171 7.3717,2.45724 15.4399,0.9861 23.22461,-2.90625 7.7847,-3.89235 13.80448,-9.46618 16.26171,-16.83789 2.45724,-7.3717 0.9861,-15.4399 -2.90625,-23.22461 l 0.40625,0.98243 c -4.32154,-12.96464 -16.20062,-23.05735 -33.76171,-31.83789 -17.5611,-8.78055 -41.36767,-16.36687 -71.72657,-23.11329 z" />
|
||||
<path
|
||||
d="m 251.06055,262.57617 -2.1211,14.84766 c 22.66512,3.23787 40.0389,8.90614 52.08594,16.43554 12.04704,7.52941 18.84739,16.55167 21.69922,27.95899 l 0.19922,0.79883 0.36719,0.73633 c 2.77431,5.54863 2.96984,9.14709 2.09375,11.77539 -0.8761,2.62829 -3.18965,5.38779 -8.73829,8.16211 -5.54863,2.77431 -9.14709,2.96984 -11.77539,2.09375 -2.62829,-0.8761 -5.38779,-3.18965 -8.16211,-8.73829 -5.77224,-11.54447 -5.77224,-21.74849 0,-33.29296 l -13.41796,-6.70704 c -7.5611,15.12219 -7.5611,31.58485 0,46.70704 3.89235,7.7847 9.46618,13.80448 16.83789,16.26171 7.3717,2.45724 15.4399,0.9861 23.22461,-2.90625 7.7847,-3.89235 13.80448,-9.46618 16.26171,-16.83789 2.36474,-7.09422 1.02935,-14.82889 -2.53906,-22.33984 -3.93242,-14.96263 -13.69431,-27.38609 -28.10156,-36.39063 -14.61962,-9.13726 -33.91251,-15.13566 -57.91406,-18.56445 z" />
|
||||
<path
|
||||
d="m 254.16016,263.75977 -8.32032,12.48046 c 18.87994,12.58663 30.93166,27.79106 37.04493,46.13086 l 0.16796,0.50586 0.23829,0.47657 c 2.77431,5.54863 2.96984,9.14709 2.09375,11.77539 -0.8761,2.62829 -3.18965,5.38779 -8.73829,8.16211 -5.54863,2.77431 -9.14709,2.96984 -11.77539,2.09375 -2.62829,-0.8761 -5.38779,-3.18965 -8.16211,-8.73829 -5.77224,-11.54447 -5.77224,-21.74849 0,-33.29296 l -13.41796,-6.70704 c -7.5611,15.12219 -7.5611,31.58485 0,46.70704 3.89235,7.7847 9.46618,13.80448 16.83789,16.26171 7.3717,2.45724 15.4399,0.9861 23.22461,-2.90625 7.7847,-3.89235 13.80448,-9.46618 16.26171,-16.83789 2.36103,-7.08308 1.03217,-14.80481 -2.52343,-22.30468 -7.22746,-21.63209 -21.83225,-39.74038 -42.93164,-53.80664 z" />
|
||||
<path
|
||||
d="m 245.83984,263.75977 c -21.09939,14.06626 -35.70418,32.17455 -42.93164,53.80664 -3.5556,7.49987 -4.88446,15.2216 -2.52343,22.30468 2.45723,7.37171 8.47701,12.94554 16.26171,16.83789 7.78471,3.89235 15.85291,5.36349 23.22461,2.90625 7.37171,-2.45723 12.94554,-8.47701 16.83789,-16.26171 7.5611,-15.12219 7.5611,-31.58485 0,-46.70704 l -13.41796,6.70704 c 5.77224,11.54447 5.77224,21.74849 0,33.29296 -2.77432,5.54864 -5.53382,7.86219 -8.16211,8.73829 -2.6283,0.87609 -6.22676,0.68056 -11.77539,-2.09375 -5.54864,-2.77432 -7.86219,-5.53382 -8.73829,-8.16211 -0.87609,-2.6283 -0.68056,-6.22676 2.09375,-11.77539 l 0.23829,-0.47657 0.16796,-0.50586 c 6.11327,-18.3398 18.16499,-33.54423 37.04493,-46.13086 z" />
|
||||
<path
|
||||
d="m 248.5293,262.64648 c -35.0305,7.0061 -60.89872,25.32088 -75.23828,54 C 169.62227,323.98397 167.5,330.83333 167.5,337.5 c 0,6.66667 2.53811,13.14358 7.19727,17.80273 5.1011,5.1011 13.27646,6.61163 20.17382,4.3125 6.89737,-2.29912 13.32304,-7.20389 20.43164,-14.3125 l 0.86133,-0.85937 0.54492,-1.08984 c 7.5611,-15.12219 7.5611,-31.58485 0,-46.70704 l -13.41796,6.70704 c 5.58408,11.16816 5.64385,21.1051 0.42382,32.1914 -5.75159,5.55819 -10.66362,8.86574 -13.58593,9.83985 -3.10264,1.03421 -3.26061,0.87806 -4.82618,-0.6875 C 183.29523,342.68976 182.5,340.83333 182.5,337.5 c 0,-3.33333 1.21106,-8.15064 4.20898,-14.14648 12.32711,-24.65421 33.12555,-39.67277 64.76172,-46 z" />
|
||||
<path
|
||||
d="m 248.37305,262.67773 c -30.3589,6.74642 -54.16547,14.33274 -71.72657,23.11329 -17.56109,8.78054 -29.44017,18.87325 -33.76171,31.83789 l 0.40625,-0.98243 c -3.89235,7.78471 -5.36349,15.85291 -2.90625,23.22461 2.45723,7.37171 8.47701,12.94554 16.26171,16.83789 7.78471,3.89235 15.85291,5.36349 23.22461,2.90625 7.37171,-2.45723 12.94554,-8.47701 16.83789,-16.26171 7.5611,-15.12219 7.5611,-31.58485 0,-46.70704 l -13.41796,6.70704 c 5.77224,11.54447 5.77224,21.74849 0,33.29296 -2.77432,5.54864 -5.53382,7.86219 -8.16211,8.73829 -2.6283,0.87609 -6.22676,0.68056 -11.77539,-2.09375 -5.54864,-2.77432 -7.86219,-5.53382 -8.73829,-8.16211 -0.87609,-2.6283 -0.68056,-6.22676 2.09375,-11.77539 l 0.23829,-0.47657 0.16796,-0.50586 c 2.34513,-7.03536 10.46605,-15.27599 26.23829,-23.16211 15.77224,-7.88612 38.63233,-15.2998 68.27343,-21.88671 z" />
|
||||
</svg>
|
After Width: | Height: | Size: 5.5 KiB |
33
exampleSite/config/_default/hugo.toml
Normal file
33
exampleSite/config/_default/hugo.toml
Normal file
|
@ -0,0 +1,33 @@
|
|||
# change this to a value appropriate for you; if your site is served from a subdirectory
|
||||
# set it like 'https://example.com/mysite/'
|
||||
baseURL = 'https://example.com/'
|
||||
|
||||
# required to be set to `true` to serve this page from a webserver AND the file system;
|
||||
# if you set this value to `true`, `baseURL` must not contain a subdirectory;
|
||||
# if you don't want to serve your page from the file system, you can also set this value
|
||||
# to `false`
|
||||
relativeURLs = true # true -> rewrite all site-relative URLs (those with a leading slash) to be relative to the current content
|
||||
|
||||
# the directory where Hugo reads the themes from; this is specific to your
|
||||
# installation and most certainly needs be deleted or changed
|
||||
themesdir = '../..'
|
||||
# yeah, well, obviously a mandatory setting for your site, if you want to
|
||||
# use this theme ;-)
|
||||
theme = 'hugo-theme-relearn'
|
||||
|
||||
defaultContentLanguage = 'en'
|
||||
# if you want to get rrrid o' ourrr pirrrates nonsense uncomment th' next line
|
||||
# disableLanguages = ['pir']
|
||||
# feel free to delete all files and directories related to this translation:
|
||||
# - `content/pir/`
|
||||
# - `i18n/`
|
||||
# - `layouts/partials/shortcodes/piratify.html`
|
||||
# - `layouts/partials/toc.html`
|
||||
# - `layouts/shortcodes/piratify.html`
|
||||
|
||||
# add showcase-specific output formats
|
||||
[outputs]
|
||||
# `print` - activate the themes feature to print whole chapters or leaf pages
|
||||
home = ['html', 'rss', 'print']
|
||||
section = ['html', 'rss', 'print']
|
||||
page = ['html', 'rss', 'print']
|
57
exampleSite/config/_default/languages.toml
Normal file
57
exampleSite/config/_default/languages.toml
Normal file
|
@ -0,0 +1,57 @@
|
|||
# showcase of the menu shortcuts;
|
||||
# you can use relative URLs linking to your content or use
|
||||
# fully-qualified URLs to link outside of your project
|
||||
|
||||
[en]
|
||||
title = 'Purple Pulpo'
|
||||
weight = 1
|
||||
languageCode = 'en'
|
||||
languageName = 'English'
|
||||
# Language dependent settings:
|
||||
# Use case https://gohugo.io/content-management/multilingual/#translation-by-content-directory
|
||||
contentDir = 'content/en'
|
||||
[en.params]
|
||||
landingPageName = '<i class="fa-fw fas fa-anchor"></i> Home'
|
||||
|
||||
[[en.menu.shortcuts]]
|
||||
pre = '<i class="fa-fw fas fa-puzzle-piece"></i> '
|
||||
name = 'Relearn Docs'
|
||||
url = 'https://mcshelby.github.io/hugo-theme-relearn/index.html'
|
||||
weight = 10
|
||||
[[en.menu.shortcuts]]
|
||||
pre = '<i class="fa-fw fab fa-github"></i> '
|
||||
name = 'GitHub Repo'
|
||||
url = 'https://github.com/McShelby/hugo-theme-relearn'
|
||||
weight = 20
|
||||
|
||||
# this is ourrr way t' showcase th' multilang settings by
|
||||
# doing autotrrranlat'n of th' english content; we are
|
||||
# lazy and don't supporrt furrrther trrranslations; arrr,
|
||||
# don't take it t' serrrious, fello'; it's prrretty hacky and:
|
||||
# NOT MEANT FER PRRRODUCTION! ARRR!
|
||||
|
||||
[pir]
|
||||
title = "Purple Pulpo"
|
||||
weight = 2
|
||||
# It would be more standard compliant to have the language key also
|
||||
# named art-x-pir but that would require to rename all files
|
||||
languageCode = 'art-x-pir'
|
||||
languageDirection = 'rtl' # you can explicitly override the reading direction here, otherwise the translation file contains a default
|
||||
languageName = 'Arrr! ☠ Pirrratish ☠'
|
||||
# Language dependent settings:
|
||||
# Use case https://gohugo.io/content-management/multilingual/#translation-by-content-directory
|
||||
contentDir = 'content/pir'
|
||||
[pir.params]
|
||||
landingPageName = '<i class="fa-fw fas fa-anchor"></i> Arrr! Home'
|
||||
errorignore = ['.*']
|
||||
|
||||
[[pir.menu.shortcuts]]
|
||||
pre = '<i class="fa-fw fas fa-puzzle-piece"></i> '
|
||||
name = 'Relearn Docs'
|
||||
url = 'https://mcshelby.github.io/hugo-theme-relearn/pir/index.html'
|
||||
weight = 10
|
||||
[[pir.menu.shortcuts]]
|
||||
pre = '<i class="fa-fw fab fa-github"></i> '
|
||||
name = 'GitHub Repo'
|
||||
url = 'https://github.com/McShelby/hugo-theme-relearn'
|
||||
weight = 20
|
44
exampleSite/config/_default/markup.toml
Normal file
44
exampleSite/config/_default/markup.toml
Normal file
|
@ -0,0 +1,44 @@
|
|||
# recommended markup settings if you use Markdown as your input format;
|
||||
# other formats may require different settings
|
||||
|
||||
[highlight]
|
||||
# line numbers in a table layout will shift if code is wrapping, so better
|
||||
# not use it; visually both layouts have the same look and behavior
|
||||
lineNumbersInTable = false
|
||||
|
||||
# the shipped variants come with their own modified chroma syntax highlighting
|
||||
# stylesheets which are linked in your generated HTML pages; you can use Hugo to generate
|
||||
# own stylesheets to your liking and use them in your variant;
|
||||
# if you want to use Hugo's internal styles instead of the shipped stylesheets:
|
||||
# - remove `noClasses` or set `noClasses = true`
|
||||
# - set `style` to a predefined style name
|
||||
# note: with using the internal styles, the `--CODE-theme` setting in your variant
|
||||
# stylesheet will be ignored and the internal style is used for all variants and
|
||||
# even print
|
||||
noClasses = false
|
||||
# style = 'tango'
|
||||
|
||||
[goldmark]
|
||||
[goldmark.extensions]
|
||||
strikethrough = false
|
||||
[goldmark.extensions.extras]
|
||||
[goldmark.extensions.extras.delete]
|
||||
enable = true
|
||||
[goldmark.extensions.extras.insert]
|
||||
enable = true
|
||||
[goldmark.extensions.extras.mark]
|
||||
enable = true
|
||||
[goldmark.extensions.extras.subscript]
|
||||
enable = true
|
||||
[goldmark.extensions.extras.superscript]
|
||||
enable = true
|
||||
|
||||
[goldmark.extensions.passthrough]
|
||||
enable = true
|
||||
[goldmark.extensions.passthrough.delimiters]
|
||||
# the settings chosen here match the default initialization
|
||||
# of the MathJax library chosen by the theme;
|
||||
# if you want to adjust to different values you also need
|
||||
# to set them in `[params] mathJaxInitialize`
|
||||
inline = [['\(', '\)'], ['$', '$']]
|
||||
block = [['\[', '\]'], ['$$', '$$']]
|
28
exampleSite/config/_default/params.toml
Normal file
28
exampleSite/config/_default/params.toml
Normal file
|
@ -0,0 +1,28 @@
|
|||
# theme-specific options;
|
||||
# for a detailed explanation and many more options see
|
||||
# https://mcshelby.github.io/hugo-theme-relearn/configuration/reference/index.html#annotated-configuration-options
|
||||
|
||||
# recommended theme parameter
|
||||
author.name = 'Captain Hugo'
|
||||
include.errorlevel = 'warning'
|
||||
image.errorlevel = 'warning'
|
||||
externalLinkTarget = '_self'
|
||||
link.errorlevel = 'warning'
|
||||
openapi.errorlevel = 'warning'
|
||||
|
||||
# specific image effect for this showcase;
|
||||
imageEffects.purple = false
|
||||
|
||||
# specific variant parameter for this showcase; you have the choice
|
||||
# between many more predefined variants and even can configure your own;
|
||||
# see the themes documentation
|
||||
[[themeVariant]]
|
||||
identifier = 'auto'
|
||||
name = 'Auto'
|
||||
auto = [ 'learn', 'neon' ]
|
||||
[[themeVariant]]
|
||||
identifier = 'neon'
|
||||
name = 'Dark'
|
||||
[[themeVariant]]
|
||||
identifier = 'learn'
|
||||
name = 'Light'
|
15
exampleSite/config/dev/hugo.toml
Normal file
15
exampleSite/config/dev/hugo.toml
Normal file
|
@ -0,0 +1,15 @@
|
|||
# Configuration to create a complete website locally, containing of the docs
|
||||
# and the exampleSite.
|
||||
#
|
||||
# 1. Build the docs by either `hugo` or `hugo server`
|
||||
# 2. Build the exampleSite by `hugo --environment dev` or `hugo server --environment dev
|
||||
#`
|
||||
# After that, a complete website is available in the docs/public folder
|
||||
# and can be used from the file system. The links between both projects
|
||||
# will not work with `hugo server`, the pages need to be visited
|
||||
# separately, adding different ports.
|
||||
|
||||
# Standard adjustments for deveolpment, to make this site work
|
||||
baseURL = 'https://example.com/exampleSite/'
|
||||
relativeURLs = false
|
||||
publishDir = '../docs/public/exampleSite'
|
4
exampleSite/config/github/hugo.toml
Normal file
4
exampleSite/config/github/hugo.toml
Normal file
|
@ -0,0 +1,4 @@
|
|||
# Configuration to release this site on GitHub Pages
|
||||
|
||||
baseURL = 'https://mcshelby.github.io/hugo-theme-relearn/exampleSite/'
|
||||
relativeURLs = false
|
25
exampleSite/config/testing/hugo.toml
Normal file
25
exampleSite/config/testing/hugo.toml
Normal file
|
@ -0,0 +1,25 @@
|
|||
# Configuration to test the exampleSite for changes in development
|
||||
# This configuration will not result in a functioning website.
|
||||
|
||||
# We disable this for testing; you must do so too
|
||||
# if you want to use the themes parameter disableGeneratorVersion=true;
|
||||
# otherwise Hugo will create a generator tag on your home page
|
||||
disableHugoGeneratorInject = true
|
||||
|
||||
# We are pretty sure, to not have unintentionally untranslated titles;
|
||||
# it may happen in case when shortcodes want to set an automatic title
|
||||
# out of a given style setting (this is allowed to fail for non severity styles)
|
||||
# enableMissingTranslationPlaceholders = true
|
||||
|
||||
# Audit your published site for problems
|
||||
# https://discourse.gohugo.io/t/audit-your-published-site-for-problems/35184/12
|
||||
[minify]
|
||||
[minify.tdewolff]
|
||||
[minify.tdewolff.html]
|
||||
keepComments = true
|
||||
|
||||
[params]
|
||||
disableGeneratorVersion = true
|
||||
disableAssetsBusting = true
|
||||
disableRandomIds = true
|
||||
minify = false
|
37
exampleSite/content/en/_index.md
Normal file
37
exampleSite/content/en/_index.md
Normal file
|
@ -0,0 +1,37 @@
|
|||
+++
|
||||
linktitle = 'Purple Pulpo'
|
||||
title = 'The Purple Pulpo'
|
||||
type = 'home'
|
||||
+++
|
||||
|
||||
![The Purple Pulpo](images/logo.svg?inlinecontent&purple&width=25vh)
|
||||
|
||||
> **"When {{% badge style="primary" icon="anchor" %}}The Purple Pulpo{{% /badge %}} sets sail, even the fish hold their breath."**
|
||||
> – Old fisherman’s tale
|
||||
|
||||
The year is 1623. An unusual ship, {{% badge style="primary" icon="anchor" %}}The Purple Pulpo{{% /badge %}}, emerges from the foggy sea, its sails dyed a brilliant purple that dazzles friend and foe alike. Cunning merchants whisper about a legendary octopus figurehead carved from driftwood—some say it dances under moonlight to ward off pesky sea ghosts (and suspicious tax collectors).
|
||||
|
||||
## Myths and Rumors
|
||||
|
||||
Though many debate its authenticity, rumor has it the captain once successfully traded a shipload of questionable sea cucumbers for a cargo of prized purple velvet. The hue of the velvet supposedly matched the exact shade of the boat—thus reinforcing its flamboyant reputation.
|
||||
|
||||
### Possible Explanations
|
||||
|
||||
1. A wizard was on board, casting color illusions for fun.
|
||||
2. The purple paint was accidentally created by mixing octopus ink into the ship’s pigment.
|
||||
3. Too much wine spilled on deck over _many_ voyages. (Captain’s favorite theory.)
|
||||
|
||||
## Unlikely Allies
|
||||
|
||||
It is said, one day a rival trading ship, the {{% badge color="hotpink" icon="fa-fw fab fa-gitkraken" %}}Lady Kraken{{% /badge %}}, tried to outdo {{% badge style="primary" icon="anchor" %}}The Purple Pulpo{{% /badge %}} by painting their masts hot pink. The clash at sea was more of a fashion show than a naval battle -- onlookers cheered for hours, forgetting they were late for dinner.
|
||||
|
||||
## Adventures
|
||||
|
||||
Read about some of the unbelievable adventures of {{% badge style="primary" icon="anchor" %}}The Purple Pulpo{{% /badge %}} in the [Captain's Log](log). Notable adventures include:
|
||||
|
||||
- [**Operation Squid Spaghetti**](log/first-day): A midnight run delivering spaghetti to stranded islanders, guided only by the glowing luminescence of algae (and embarrassed jellyfish who offered moral support).
|
||||
- **The Great Spice Heist**: Smuggled saffron and paprika past rival pirate ships. Legend claims the pirates were too busy sneezing to put up any fight.
|
||||
|
||||
## A Final Toast
|
||||
|
||||
Raise your mug of (purple) punch to {{% badge style="primary" icon="anchor" %}}The Purple Pulpo{{% /badge %}} -- where cargo, captain, and cephalopod might just change the hue of history. May your sails forever billow, your hull remain bold, and your cargo be as colorful as your legend!
|
36
exampleSite/content/en/about.md
Normal file
36
exampleSite/content/en/about.md
Normal file
|
@ -0,0 +1,36 @@
|
|||
+++
|
||||
description = 'About this Website'
|
||||
menuPre = '<i class="fa-fw fas fa-info-circle"></i> '
|
||||
title = 'About'
|
||||
weight = 3
|
||||
+++
|
||||
|
||||
## Face it
|
||||
|
||||
This is an example site for the [Relearn theme](https://mcshelby.github.io/hugo-theme-relearn/pir/index.html) of the [Hugo](https://gohugo.io) static site generator.
|
||||
|
||||
It displays content about the fictional ship {{% badge style="primary" icon="anchor" %}}The Purple Pulpo{{% /badge %}} in English and a crude Piratish accent. Don't take it too serious.
|
||||
|
||||
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.
|
||||
|
||||
## Run it
|
||||
|
||||
The source code for this website is contained in the [Relearn repository](https://github.com/McShelby/hugo-theme-relearn/tree/main/exampleSite). After the [installation of Hugo](https://gohugo.io/installation/) you can build the site locally from inside the `exampleSite` directory with
|
||||
|
||||
````bash
|
||||
hugo server
|
||||
````
|
||||
|
||||
Then you can access the site by navigating to `http://localhost:1313` in your browser.
|
||||
|
||||
For a detailed installation guide, see the [Relearn documentation](https://mcshelby.github.io/hugo-theme-relearn/introduction/quickstart/index.html).
|
||||
|
||||
## Modify it
|
||||
|
||||
While minimal in configuration, this showcase contains an auto translation into the Piratish language. This required some 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:
|
||||
|
||||
- `content/pir/`
|
||||
- `i18n/`
|
||||
- `layouts/partials/shortcodes/piratify.html`
|
||||
- `layouts/partials/toc.html`
|
||||
- `layouts/shortcodes/piratify.html`
|
15
exampleSite/content/en/log/_index.md
Normal file
15
exampleSite/content/en/log/_index.md
Normal file
|
@ -0,0 +1,15 @@
|
|||
+++
|
||||
description = "The Captain's Log"
|
||||
menuPre = '<i class="fa-fw fas fa-pen-fancy"></i> '
|
||||
title = "Captain's Log"
|
||||
type = 'chapter'
|
||||
weight = 2
|
||||
+++
|
||||
|
||||
Captain Hugo reporting from the quarterdeck of the magnificent {{% badge style="primary" icon="anchor" %}}The Purple Pulpo{{% /badge %}}. The seas are fair, and our hold is brimming with exotic cargo bound for distant ports. Our seasoned crew stands ready for another adventure across the Seven Seas.
|
||||
|
||||
## Operation Squid Spaghetti
|
||||
|
||||
Our midnight run involved top-secret pasta flour and premium marinara crucial for the realm’s spiciest mission. The crew was amped!
|
||||
|
||||
{{% children containerstyle="div" style="h3" description=true %}}
|
29
exampleSite/content/en/log/first-day/_index.md
Normal file
29
exampleSite/content/en/log/first-day/_index.md
Normal file
|
@ -0,0 +1,29 @@
|
|||
+++
|
||||
description = 'Launch Day'
|
||||
title = 'Day 1'
|
||||
weight = 1
|
||||
+++
|
||||
|
||||
## Launch Day
|
||||
|
||||
**Captain’s Log, 0120 hours**
|
||||
|
||||
> ***"No mission too saucy for us!"***
|
||||
> – Captain’s official decree
|
||||
|
||||
It seems we accidentally loaded a crate of rubber chickens instead of emergency food rations, but the crew is already brainstorming new dance routines with them. Meanwhile, our quartermaster replaced the lifebuoys with giant doughnuts for a "themed" departure—perfect for dunking our morale into sugary bliss.
|
||||
|
||||
### Status
|
||||
|
||||
- **Reason for voyage:** A midnight run to deliver top-secret cargo (pasta flour and extra marinara).
|
||||
- **Crew status:**
|
||||
- Eager to set sail
|
||||
- Full of energy (and possibly leftover breadsticks)
|
||||
|
||||
### Early Observations
|
||||
|
||||
The moonlit sky casts {{% badge style="primary" icon="anchor" %}}The Purple Pulpo{{% /badge %}} in a mysterious glow. Rumor has it, our **octopus figurehead** twitched its wooden tentacles twice, a good omen for our daring spaghetti mission. Some say those tentacles can sense hidden spice routes.
|
||||
|
||||
---
|
||||
|
||||
Stay tuned for [more updates](second-day) from our floating festival of noodles and nautical nonsense.
|
32
exampleSite/content/en/log/second-day/index.md
Normal file
32
exampleSite/content/en/log/second-day/index.md
Normal file
|
@ -0,0 +1,32 @@
|
|||
|
||||
+++
|
||||
description = 'At Sea'
|
||||
title = 'Day 2'
|
||||
weight = 2
|
||||
+++
|
||||
|
||||
## At Sea
|
||||
|
||||
**Captain’s Log, 0545 hours**
|
||||
|
||||
> ***"A little sea spray can’t break our spirit—nor our appetite!"***
|
||||
> – The Chef, after a minor sauce-spill incident
|
||||
|
||||
The waves crash and the crew awakens to the salty sea breeze. Our beloved ship, {{% badge style="primary" icon="anchor" %}}The Purple Pulpo{{% /badge %}}, plows forward, determined to complete our "Operation Squid Spaghetti."
|
||||
|
||||
### Status
|
||||
|
||||
- **Weather:** Slightly stormy with a touch of dramatic sea mist
|
||||
- **Crew Morale:**
|
||||
1. Excitement level: High
|
||||
2. Hunger level: *Astronomical*
|
||||
3. Willingness to sing shanties: ∞
|
||||
|
||||
### Culinary Update
|
||||
|
||||
The kitchen rattles with every wave, saucepans clanging like a symphony of disorganized percussion. Marinara overboard? Twice.
|
||||
But fear not, the crew valiantly rescued the floating ladle, dubbing it **Sir Stir-a-Lot**.
|
||||
|
||||
---
|
||||
|
||||
Stay tuned for the [next thrilling entry](third-day): How fresh noodles fare in gale-force winds... and whether the sauce can hold up against the unstoppable appetite of seafaring sailors!
|
31
exampleSite/content/en/log/third-day.md
Normal file
31
exampleSite/content/en/log/third-day.md
Normal file
|
@ -0,0 +1,31 @@
|
|||
+++
|
||||
description = 'Island Arrival'
|
||||
title = 'Day 3'
|
||||
weight = 3
|
||||
+++
|
||||
|
||||
## Island Arrival
|
||||
|
||||
**Captain’s Log, 1140 hours**
|
||||
|
||||
> ***"Ahoy, pasta-lovers! Our mission is finally a sauce-cess!"***
|
||||
> – The Enthused Quartermaster
|
||||
|
||||
The sun blazes overhead, revealing an island coastline shaped like a **questionable noodle bowl** — the perfect destination for our midnight pasta cargo.
|
||||
|
||||
### Status
|
||||
|
||||
- Purple sails flutter in the island breeze
|
||||
- The octopus figurehead is **oddly** shining—some claim the wooden tentacles are still dancing to an unseen rhythm
|
||||
- *Slight tang* of marinara lingers across the entire deck
|
||||
|
||||
### Incident in the Crow's Nest
|
||||
|
||||
Upon our arrival in the harbor, the lookout nearly toppled from his perch in a fit of excitement. A mysterious figure on the dock signaled with a lantern three times—followed by a deafening call of a heron in flight.
|
||||
|
||||
The lookout swears the bird cawed in perfect Morse code, as if warning us of impending calamity. Moments later, a sudden gust toppled the spyglass stand, sending it clattering down to the quarterdeck, just as the heron sped off with a triumphant whistle.
|
||||
|
||||
> [!primary]+ Mission Debriefing
|
||||
> - [x] Crates of sauce offloaded with care (and the occasional accidental slosh)
|
||||
> - [x] Crowds of locals, excited for fresh spaghetti
|
||||
> - [ ] _Squid ink_ banner hoisted high to announce “Operation Squid Spaghetti Complete”
|
46
exampleSite/content/en/ship/_index.en.md
Normal file
46
exampleSite/content/en/ship/_index.en.md
Normal file
|
@ -0,0 +1,46 @@
|
|||
+++
|
||||
description = 'Overview of the ship'
|
||||
menuPre = '<i class="fa-fw fas fa-sailboat"></i> '
|
||||
title = 'The Ship'
|
||||
type = 'chapter'
|
||||
weight = 1
|
||||
+++
|
||||
|
||||
## Overview
|
||||
|
||||
|
||||
Up in the Upper Decks, our lookout is either spotting treasure or taking an unauthorized nap in the Crow's Nest, while the helmsman tries to convince everyone that yes, that spinning wheel actually does something.
|
||||
|
||||
In Midst Ship, the Captain's busy adding another gold tassel to their hat collection, and the crew quarters are hosting the weekly "Who Stole My Last Clean Sock" investigation.
|
||||
|
||||
Down in Cargo, well... let's just say what the health inspector doesn't know won't hurt them. Between the mysteriously moving crates and that barrel of pickles that's been fermenting since the last century, it's quite an adventure.
|
||||
|
||||
## Map
|
||||
|
||||
````mermaid
|
||||
graph TD
|
||||
A[The Purple Pulpo] --> B1[Upper Decks]
|
||||
A --> B2[Midst Ship]
|
||||
A --> B3[Cargo]
|
||||
B1 --> C11[Crow's Nest]
|
||||
B1 --> C12[The Helm]
|
||||
B2 --> C21[Captain's Cabin]
|
||||
B2 --> C22[Crew Quarters]
|
||||
|
||||
click B1 "upper" "View Upper Decks"
|
||||
click B2 "midst" "View Midst Ship"
|
||||
click B3 "cargo" "View Cargo"
|
||||
click C11 "upper/nest" "View Crow's Nest"
|
||||
click C12 "upper/helm" "View the Helm"
|
||||
click C21 "midst/captain" "View the Captain's Cabin"
|
||||
click C22 "midst/crew" "View the Crew Quarters"
|
||||
|
||||
style A fill:mediumpurple,stroke:rebeccapurple,stroke-width:4px
|
||||
style B1 fill:mediumvioletred,stroke:purple,stroke-width:4px
|
||||
style C11 fill:mediumvioletred,stroke:purple,stroke-width:4px
|
||||
style C12 fill:mediumvioletred,stroke:purple,stroke-width:4px
|
||||
style B2 fill:dodgerblue,stroke:royalblue,stroke-width:4px
|
||||
style C21 fill:dodgerblue,stroke:royalblue,stroke-width:4px
|
||||
style C22 fill:dodgerblue,stroke:royalblue,stroke-width:4px
|
||||
style B3 fill:darkturquoise,stroke:teal,stroke-width:4px
|
||||
````
|
32
exampleSite/content/en/ship/cargo/_index.md
Normal file
32
exampleSite/content/en/ship/cargo/_index.md
Normal file
|
@ -0,0 +1,32 @@
|
|||
+++
|
||||
description = 'Where organization meets chaos'
|
||||
title = 'Cargo'
|
||||
weight = 3
|
||||
+++
|
||||
|
||||
Where organization meets chaos and inventory management is more of a suggestion than a rule. Our state-of-the-art cargo facilities are divided into three distinctly disorganized bays.
|
||||
|
||||
The daily operations in our cargo bays resemble an interpretive dance of logistics, where inventory lists are more like creative writing exercises. Our automated sorting system, powered by quantum probability and caffeinated algorithms, occasionally decides to reorganize items based on their cosmic aura rather than traditional categories. This has led to fascinating discoveries, like finding out that rubber ducks and miniature black holes share remarkably similar energy signatures.
|
||||
|
||||
The deck crew has developed their own unique navigation system through the chaos, using a combination of intuition, lucky guesses, and the occasional guidance from our resident AI, which has developed a peculiar fondness for storing items in patterns that resemble abstract art. The resulting arrangement has been praised by visiting space artists as "a masterpiece of organized entropy" and "the most innovative storage solution since the invention of pocket dimensions."
|
||||
|
||||
{{< tabs>}}
|
||||
{{% tab name="Cargo Bay Alpha" color="purple" %}}
|
||||
- 3,721 rubber ducks in spacesuits
|
||||
- One very large tea cozy (planet-sized)
|
||||
- Collection of anti-gravity hamster wheels
|
||||
- Emergency supply of digital cookies
|
||||
{{% /tab %}}
|
||||
{{% tab name="Cargo Bay Beta" color="royalblue" %}}
|
||||
- Quantum-entangled sock pairs
|
||||
- Library of dehydrated books
|
||||
- Self-folding origami robots
|
||||
- Tank of compressed rainbow matter
|
||||
{{% /tab %}}
|
||||
{{% tab name="Cargo Bay Gamma" color="teal" %}}
|
||||
- Zero-gravity bubble wrap (extra bouncy)
|
||||
- Time-traveling toast machine
|
||||
- Collection of miniature black holes (safely contained)
|
||||
- Spare parts for the ship's interpretive dance module
|
||||
{{% /tab %}}
|
||||
{{< /tabs >}}
|
13
exampleSite/content/en/ship/midst/_index.md
Normal file
13
exampleSite/content/en/ship/midst/_index.md
Normal file
|
@ -0,0 +1,13 @@
|
|||
+++
|
||||
description = "Where captains and crew collide in organized chaos"
|
||||
title = 'Midst Ship'
|
||||
weight = 2
|
||||
+++
|
||||
|
||||
The heart of shipboard shenanigans, where the captain's dignified stride from their cabin inevitably collides with sailors rolling barrels across the deck.
|
||||
|
||||
Coffee aromas from the Captain's cabin wage a constant battle with the hearty snores echoing from the crew bunks. It's that magical space where formal reports mysteriously acquire coffee rings, and the crew's sea shanties somehow find their way through the captain's supposedly soundproof door.
|
||||
|
||||
A daily theater of nautical life where rank meets reality, and everyone pretends not to notice the first mate sleepwalking in their pajamas.
|
||||
|
||||
{{% children containerstyle="div" style="h2" description=true %}}
|
10
exampleSite/content/en/ship/midst/captain/_index.md
Normal file
10
exampleSite/content/en/ship/midst/captain/_index.md
Normal file
|
@ -0,0 +1,10 @@
|
|||
+++
|
||||
description = 'A luxurious 4x4 room, home to our beloved Captain Hugo, with a genuine fake window'
|
||||
title = "Captain's Cabin"
|
||||
+++
|
||||
|
||||
Welcome to the legendary 4x4 quarters of Captain Hugo, where navigation charts double as wallpaper and yesterday's coffee cup might contain tomorrow's coordinates! The genuine fake window offers stunning views of wherever the captain thinks we are (he's been known to mistake the Mediterranean for the Caribbean on more than one occasion).
|
||||
|
||||
Despite the creative filing system (read: artistic piles), our beloved captain insists he knows exactly where everything is -- including his lucky compass, which has been "temporarily misplaced" for the past three months. The room features state-of-the-art organizational solutions, such as "that chair with all the stuff" and "the corner where important things go."
|
||||
|
||||
Visitors are kindly requested to not disturb the delicate ecosystem of nautical instruments, half-written logbooks, and at least seven different types of tea sets -- all carefully arranged in what the captain calls his "systematic randomness."
|
10
exampleSite/content/en/ship/midst/crew/_index.md
Normal file
10
exampleSite/content/en/ship/midst/crew/_index.md
Normal file
|
@ -0,0 +1,10 @@
|
|||
+++
|
||||
description = 'Where dreams of mutiny and tales of sea monsters are equally shared'
|
||||
title = "Crew Quarters"
|
||||
+++
|
||||
|
||||
Welcome to the most entertaining deck of our vessel, where every bunk tells a story and every footlocker holds at least three contraband items that technically violate maritime law. Our distinguished crew members have developed a complex social hierarchy based entirely on who can tell the tallest tale about encounters with legendary sea creatures. Current champion: Bosun McGee, who swears he taught a pod of narwhals to perform synchronized swimming routines.
|
||||
|
||||
The communal areas are a fascinating study in organized chaos. The mess hall doubles as a debate chamber where heated arguments about the best way to predict weather by reading tea leaves can last for days. The walls are decorated with "accurate" maps drawn by our navigator, complete with illustrations of sea serpents and mysterious islands that somehow move location between each voyage. Our ship's cat, Admiral Whiskers, holds court from atop the highest shelf, judging everyone's sea shanty performances with characteristic feline disdain.
|
||||
|
||||
Down in the sleeping quarters, you'll find an impressive collection of lucky charms, ranging from traditional rabbit's feet to allegedly enchanted ship's biscuits that are now too petrified to eat. Each bunk is personalized with trinkets from a hundred ports, though no one can quite explain how we acquired the stuffed dodo bird that watches over the entrance. The night watch maintains a running tally of mysterious lights seen over the water, though there's strong suspicion that half of these sightings coincide suspiciously with nights when the rum rations were doubled.
|
9
exampleSite/content/en/ship/upper/_index.md
Normal file
9
exampleSite/content/en/ship/upper/_index.md
Normal file
|
@ -0,0 +1,9 @@
|
|||
+++
|
||||
description = "Where seagulls dare to land and captains steer with flair"
|
||||
title = "Upper Decks"
|
||||
weight = 1
|
||||
+++
|
||||
|
||||
The highest point of our mighty vessel! Up here, the crow's nest scout shouts coordinates to our helmsman below, though sometimes they're just playing an elaborate game of maritime telephone. The crow's nest offers the best views in the house (or ship), perfect for spotting incoming weather, distant lands, or that seagull that keeps stealing the captain's lunch.
|
||||
|
||||
{{% children containerstyle="div" style="h2" description=true %}}
|
8
exampleSite/content/en/ship/upper/helm/_index.md
Normal file
8
exampleSite/content/en/ship/upper/helm/_index.md
Normal file
|
@ -0,0 +1,8 @@
|
|||
+++
|
||||
description = 'Home to our steering wheel, which may or may not be connected to anything'
|
||||
title = "The Helm"
|
||||
+++
|
||||
|
||||
Our state-of-the-art navigation system relies heavily on the ancient art of reading cloud shapes and following particularly motivated seagulls. The ship's wheel, a magnificent piece of mahogany that squeaks exactly like a dolphin's laugh, is primarily used as an excellent coat hanger during peaceful voyages.
|
||||
|
||||
The real steering happens through our patented "Serendipitous Navigation System™" -- we simply convince the ocean currents they're flowing in the wrong direction through sophisticated reverse psychology. Our success rate of reaching intended destinations is a proud 12%, though we've discovered fourteen previously unknown islands and one mysterious floating coffee shop in the process.
|
16
exampleSite/content/en/ship/upper/nest/_index.md
Normal file
16
exampleSite/content/en/ship/upper/nest/_index.md
Normal file
|
@ -0,0 +1,16 @@
|
|||
+++
|
||||
description = 'Where our lookout pretends to spot land while actually napping'
|
||||
title = "Crow's Nest"
|
||||
+++
|
||||
|
||||
Our dedicated lookout has reported some rather peculiar sightings from his lofty perch. Between his frequent "strategic rest periods" and tea breaks, he's sworn on his mother's favorite teacup that he's witnessed the most extraordinary maritime phenomena ever documented.
|
||||
|
||||
Last week alone, he submitted a detailed report claiming to have spotted a mermaid riding a seahorse while solving a Rubik's cube, and a group of dolphins wearing top hats performing synchronized swimming routines to classical music.
|
||||
|
||||
Recent notable sightings include:
|
||||
|
||||
* A giant squid playing chess with a whale shark
|
||||
* Flying fish practicing for their pilot's license
|
||||
* A pirate ghost ship selling timeshares to passing vessels
|
||||
* Penguins on vacation riding jet skis
|
||||
* A rowing boeat crewed entirely by singing sea cucumbers
|
6
exampleSite/content/pir/_index.md
Normal file
6
exampleSite/content/pir/_index.md
Normal file
|
@ -0,0 +1,6 @@
|
|||
+++
|
||||
linktitle = 'Purple Pulpo'
|
||||
title = 'The Purple Pulpo'
|
||||
type = 'home'
|
||||
+++
|
||||
{{< piratify >}}
|
7
exampleSite/content/pir/about.md
Normal file
7
exampleSite/content/pir/about.md
Normal file
|
@ -0,0 +1,7 @@
|
|||
+++
|
||||
description = 'About this Website'
|
||||
menuPre = '<i class="fa-fw fas fa-info-circle"></i> '
|
||||
title = 'About'
|
||||
weight = 3
|
||||
+++
|
||||
{{< piratify >}}
|
8
exampleSite/content/pir/log/_index.md
Normal file
8
exampleSite/content/pir/log/_index.md
Normal file
|
@ -0,0 +1,8 @@
|
|||
+++
|
||||
description = "The Captain's Log"
|
||||
menuPre = '<i class="fa-fw fas fa-pen-fancy"></i> '
|
||||
title = "Captain's Log"
|
||||
type = 'chapter'
|
||||
weight = 2
|
||||
+++
|
||||
{{< piratify >}}
|
6
exampleSite/content/pir/log/first-day/_index.md
Normal file
6
exampleSite/content/pir/log/first-day/_index.md
Normal file
|
@ -0,0 +1,6 @@
|
|||
+++
|
||||
description = 'Launch Day'
|
||||
title = 'Day 1'
|
||||
weight = 1
|
||||
+++
|
||||
{{< piratify >}}
|
7
exampleSite/content/pir/log/second-day/index.md
Normal file
7
exampleSite/content/pir/log/second-day/index.md
Normal file
|
@ -0,0 +1,7 @@
|
|||
|
||||
+++
|
||||
description = 'At Sea'
|
||||
title = 'Day 2'
|
||||
weight = 2
|
||||
+++
|
||||
{{< piratify >}}
|
6
exampleSite/content/pir/log/third-day.md
Normal file
6
exampleSite/content/pir/log/third-day.md
Normal file
|
@ -0,0 +1,6 @@
|
|||
+++
|
||||
description = 'Island Arrival'
|
||||
title = 'Day 3'
|
||||
weight = 3
|
||||
+++
|
||||
{{< piratify >}}
|
8
exampleSite/content/pir/ship/_index.md
Normal file
8
exampleSite/content/pir/ship/_index.md
Normal file
|
@ -0,0 +1,8 @@
|
|||
+++
|
||||
description = 'Overview of the ship'
|
||||
menuPre = '<i class="fa-fw fas fa-sailboat"></i> '
|
||||
title = 'The Ship'
|
||||
type = 'chapter'
|
||||
weight = 1
|
||||
+++
|
||||
{{< piratify >}}
|
6
exampleSite/content/pir/ship/cargo/_index.md
Normal file
6
exampleSite/content/pir/ship/cargo/_index.md
Normal file
|
@ -0,0 +1,6 @@
|
|||
+++
|
||||
description = 'Where organization meets chaos'
|
||||
title = 'Cargo'
|
||||
weight = 3
|
||||
+++
|
||||
{{< piratify >}}
|
6
exampleSite/content/pir/ship/midst/_index.md
Normal file
6
exampleSite/content/pir/ship/midst/_index.md
Normal file
|
@ -0,0 +1,6 @@
|
|||
+++
|
||||
description = "Where captains and crew collide in organized chaos"
|
||||
title = 'Midst Ship'
|
||||
weight = 2
|
||||
+++
|
||||
{{< piratify >}}
|
5
exampleSite/content/pir/ship/midst/captain/_index.md
Normal file
5
exampleSite/content/pir/ship/midst/captain/_index.md
Normal file
|
@ -0,0 +1,5 @@
|
|||
+++
|
||||
description = 'A luxurious 4x4 room, home to our beloved Captain Hugo, with a genuine fake window'
|
||||
title = "Captain's Cabin"
|
||||
+++
|
||||
{{< piratify >}}
|
10
exampleSite/content/pir/ship/midst/crew/_index.md
Normal file
10
exampleSite/content/pir/ship/midst/crew/_index.md
Normal file
|
@ -0,0 +1,10 @@
|
|||
+++
|
||||
description = 'Where dreams of mutiny and tales of sea monsters are equally shared'
|
||||
title = "Crew Quarters"
|
||||
+++
|
||||
|
||||
Welcome to the most entertaining deck of our vessel, where every bunk tells a story and every footlocker holds at least three contraband items that technically violate maritime law. Our distinguished crew members have developed a complex social hierarchy based entirely on who can tell the tallest tale about encounters with legendary sea creatures. Current champion: Bosun McGee, who swears he taught a pod of narwhals to perform synchronized swimming routines.
|
||||
|
||||
The communal areas are a fascinating study in organized chaos. The mess hall doubles as a debate chamber where heated arguments about the best way to predict weather by reading tea leaves can last for days. The walls are decorated with "accurate" maps drawn by our navigator, complete with illustrations of sea serpents and mysterious islands that somehow move location between each voyage. Our ship's cat, Admiral Whiskers, holds court from atop the highest shelf, judging everyone's sea shanty performances with characteristic feline disdain.
|
||||
|
||||
Down in the sleeping quarters, you'll find an impressive collection of lucky charms, ranging from traditional rabbit's feet to allegedly enchanted ship's biscuits that are now too petrified to eat. Each bunk is personalized with trinkets from a hundred ports, though no one can quite explain how we acquired the stuffed dodo bird that watches over the entrance. The night watch maintains a running tally of mysterious lights seen over the water, though there's strong suspicion that half of these sightings coincide suspiciously with nights when the rum rations were doubled.
|
6
exampleSite/content/pir/ship/upper/_index.md
Normal file
6
exampleSite/content/pir/ship/upper/_index.md
Normal file
|
@ -0,0 +1,6 @@
|
|||
+++
|
||||
description = "Where seagulls dare to land and captains steer with flair"
|
||||
title = "Upper Decks"
|
||||
weight = 1
|
||||
+++
|
||||
{{< piratify >}}
|
5
exampleSite/content/pir/ship/upper/helm/_index.md
Normal file
5
exampleSite/content/pir/ship/upper/helm/_index.md
Normal file
|
@ -0,0 +1,5 @@
|
|||
+++
|
||||
description = 'Home to our steering wheel, which may or may not be connected to anything'
|
||||
title = "The Helm"
|
||||
+++
|
||||
{{< piratify >}}
|
5
exampleSite/content/pir/ship/upper/nest/_index.md
Normal file
5
exampleSite/content/pir/ship/upper/nest/_index.md
Normal file
|
@ -0,0 +1,5 @@
|
|||
+++
|
||||
description = 'Where our lookout pretends to spot land while actually napping'
|
||||
title = "Crow's Nest"
|
||||
+++
|
||||
{{< piratify >}}
|
134
exampleSite/i18n/art-x-pir.toml
Normal file
134
exampleSite/i18n/art-x-pir.toml
Normal file
|
@ -0,0 +1,134 @@
|
|||
[Reading-direction]
|
||||
other = "ltr"
|
||||
|
||||
[Search]
|
||||
other = "Searrrch"
|
||||
|
||||
[Search-placeholder]
|
||||
other = "Searrrch..."
|
||||
|
||||
[Clear-search]
|
||||
other = "Clearrr searrrch"
|
||||
|
||||
[No-results-found]
|
||||
other = "No rrresults found fer \"{0}\""
|
||||
|
||||
[N-results-found]
|
||||
other = "{1} rrresults found fer \"{0}\""
|
||||
|
||||
[Clear-History]
|
||||
other = "Clearrr Historrry"
|
||||
|
||||
[Reset-view]
|
||||
other = "Rrreset view"
|
||||
|
||||
[View-reset]
|
||||
other = "View rrreset!"
|
||||
|
||||
[Attachments-label]
|
||||
other = "Attachments"
|
||||
|
||||
[title-404]
|
||||
other = "Not found"
|
||||
|
||||
[message-404]
|
||||
other = "Whoops. Looks like this plank doesn't exist ¯\\_(ツ)_/¯."
|
||||
|
||||
[Go-to-homepage]
|
||||
other = "Go t' homeplank"
|
||||
|
||||
[Edit-this-page]
|
||||
other = "Edit"
|
||||
|
||||
[Show-Markdown]
|
||||
other = "Show Marrrkd'n"
|
||||
|
||||
[Show-source]
|
||||
other = "Show source code"
|
||||
|
||||
[Print-this-chapter]
|
||||
other = "Prrrint whole chapterrr"
|
||||
|
||||
[More-action]
|
||||
other = "Morrre"
|
||||
|
||||
[shortcuts-menuTitle]
|
||||
other = "Morrre"
|
||||
|
||||
[Expand-title]
|
||||
other = "Expand me..."
|
||||
|
||||
[Navigation-toggle]
|
||||
other = "Menu"
|
||||
|
||||
[Toc-toggle]
|
||||
other = "Table o' Contents"
|
||||
|
||||
[Byte-symbol]
|
||||
other = "B"
|
||||
|
||||
[Kilobyte-symbol]
|
||||
other = "KB"
|
||||
|
||||
[Megabyte-symbol]
|
||||
other = "MB"
|
||||
|
||||
[caution]
|
||||
other = "Behold"
|
||||
|
||||
[important]
|
||||
other = "Imporrrt'nt"
|
||||
|
||||
[info]
|
||||
other = "Ahoi"
|
||||
|
||||
[note]
|
||||
other = "Avast"
|
||||
|
||||
[tip]
|
||||
other = "Smarrrt arrrse"
|
||||
|
||||
[warning]
|
||||
other = "Arrr"
|
||||
|
||||
[Copy-to-clipboard]
|
||||
other = "Copy t' clipboard"
|
||||
|
||||
[Copied-to-clipboard]
|
||||
other = "Copied t' clipboard!"
|
||||
|
||||
[Copy-link-to-clipboard]
|
||||
other = "Copy link t' clipboard"
|
||||
|
||||
[Link-copied-to-clipboard]
|
||||
other = "Copied link t' clipboard!"
|
||||
|
||||
[Chapter]
|
||||
other = "T' chapterrr {{.}}"
|
||||
|
||||
[Language]
|
||||
other = "Language"
|
||||
|
||||
[Theme]
|
||||
other = "Theme"
|
||||
|
||||
[Submenu]
|
||||
other = "Submenu {{.}}"
|
||||
|
||||
[Subsections]
|
||||
other = "Subsct'ns o' {{.}}"
|
||||
|
||||
[tags]
|
||||
other = "Taks"
|
||||
|
||||
[tag]
|
||||
other = "Tak"
|
||||
|
||||
[categories]
|
||||
other = "Categorrries"
|
||||
|
||||
[category]
|
||||
other = "Categorrry"
|
||||
|
||||
[Details]
|
||||
other = "Details"
|
48
exampleSite/layouts/partials/custom-header.html
Normal file
48
exampleSite/layouts/partials/custom-header.html
Normal file
|
@ -0,0 +1,48 @@
|
|||
|
||||
<style>
|
||||
/* image effects */
|
||||
#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;
|
||||
}
|
||||
|
||||
/* logo */
|
||||
#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>
|
5
exampleSite/layouts/partials/logo.html
Normal file
5
exampleSite/layouts/partials/logo.html
Normal file
|
@ -0,0 +1,5 @@
|
|||
<!-- CSS styles are in layouts/partials/custom-header.html -->
|
||||
<a id="R-logo" href="{{ partial "permalink.gotmpl" (dict "to" .Site.Home) }}">
|
||||
{{ partial "shortcodes/image.html" (dict "page" . "url" "/images/logo.svg?border=false&inlinecontent&lightbox=false&shadow=false") }}
|
||||
<div class="logo-title">{{ .Site.Params.linkTitle | default .Site.Title }}</div>
|
||||
</a>
|
153
exampleSite/layouts/partials/shortcodes/piratify.html
Normal file
153
exampleSite/layouts/partials/shortcodes/piratify.html
Normal file
|
@ -0,0 +1,153 @@
|
|||
{{- $page := .page }}
|
||||
{{- if and (not $page) .context }}
|
||||
{{- $page = .context }}
|
||||
{{- $filepath := "[virtual file]" }}{{ with and $page $page.File $page.File.Filename }}{{ $filepath = . }}{{ end }}
|
||||
{{- warnf "%q: DEPRECATED parameter 'context' for shortcode 'piratify' found, use 'page' instead; see https://mcshelby.github.io/hugo-theme-relearn/introduction/releasenotes/5/#5-18-0" $filepath }}
|
||||
{{- end }}
|
||||
{{- $content := .content }}
|
||||
{{- $pagefield := cond (ne $content nil) nil (.pagefield | default "Content") }}
|
||||
{{- $writenotice := cond (ne .writenotice nil) .writenotice false }}
|
||||
{{- $langtrg := "pir" }}
|
||||
{{- $langsrc := cond (eq $page.Language.Lang $langtrg) (.langsrc | default "en") $page.Language.Lang }}
|
||||
{{- $baseURL := urls.Parse site.BaseURL }}
|
||||
{{- $baseURLpath := $baseURL.Path | default "/" }}
|
||||
{{- $l := $page.RelPermalink }}
|
||||
{{- $c := "" }}
|
||||
{{- $srcPage := "" }}
|
||||
{{- if ne $content nil }}
|
||||
{{- $c = $content }}
|
||||
{{- else if eq $pagefield "Content" }}
|
||||
{{- $c = $page.Content }}
|
||||
{{- else if eq $pagefield "TableOfContents" }}
|
||||
{{- $c = $page.TableOfContents }}
|
||||
{{- end }}
|
||||
{{- range $page.AllTranslations }}
|
||||
{{- if eq .Language.Lang $langsrc }}
|
||||
{{- $l = .RelPermalink }}
|
||||
{{- if ne $content nil }}
|
||||
{{- $c = $content }}
|
||||
{{- else if eq $pagefield "Content" }}
|
||||
{{- $c = .Content }}
|
||||
{{- $srcPage = . }}
|
||||
{{- else if eq $pagefield "TableOfContents" }}
|
||||
{{- $c = .TableOfContents }}
|
||||
{{- end }}
|
||||
{{- break }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- if eq $page.Language.Lang $langtrg }}
|
||||
{{- if $writenotice }}
|
||||
{{- partial "shortcodes/notice.html" (dict
|
||||
"page" $page
|
||||
"content" "<p>Fello' pirrrates, grog made us dizzy! Be awarrre some stuff may look weird in this trrranslat'n. Like seeing Merrrmaids and stuff.</p>\n"
|
||||
"icon" "skull-crossbones"
|
||||
"style" "warning"
|
||||
"title" "Arrr! Pirrrates"
|
||||
) }}
|
||||
{{- end }}
|
||||
{{- $words := dict
|
||||
"Hugo" "Cap'n Hugo"
|
||||
"Info" "Ahoi"
|
||||
"Note" "Avast"
|
||||
"Tip" "Smarrrt Arrrse"
|
||||
"Warning" "Arrr"
|
||||
"good" "bloody"
|
||||
"shortcodes" "shorrrtcodes"
|
||||
"Shortcodes" "Shorrrtcodes"
|
||||
"Mermaid" "Merrrmaid"
|
||||
"Markdown" "Marrrkdown"
|
||||
"Markup" "Marrrkup"
|
||||
"markup" "marrrkup"
|
||||
"for" "fer"
|
||||
"Your" "Yer"
|
||||
"your" "yer"
|
||||
"You" "Ye"
|
||||
"you" "ye"
|
||||
"the" "th'"
|
||||
"The" "Th'"
|
||||
"is" "be"
|
||||
"Is" "Be"
|
||||
"are" "be"
|
||||
"Are" "Be"
|
||||
"Of" "O'"
|
||||
"of" "o'"
|
||||
"To" "T'"
|
||||
"to" "t'"
|
||||
"in" "'n"
|
||||
"With" "Wit'"
|
||||
"with" "wit'"
|
||||
"Where" "Whar'"
|
||||
"where" "whar'"
|
||||
"After" "Aft"
|
||||
"And" "An'"
|
||||
"and" "an'"
|
||||
"Load" "Board"
|
||||
"load" "board"
|
||||
"Loaded" "Boarded"
|
||||
"loaded" "boarded"
|
||||
"Content" "Rrrambling"
|
||||
"content" "rrrambling"
|
||||
"icon" "ay'con"
|
||||
"Icon" "Ay'con"
|
||||
"icons" "ay'cons"
|
||||
"Icons" "Ay'cons"
|
||||
"syntax" "rules"
|
||||
"Syntax" "Rules"
|
||||
"Site" "Ship"
|
||||
"site" "ship"
|
||||
"Page" "Plank"
|
||||
"page" "plank"
|
||||
"Pages" "Planks"
|
||||
"pages" "planks"
|
||||
"Relearn" "Relearrrn"
|
||||
"Learn" "Learrrn"
|
||||
-}}
|
||||
{{- $specials := dict
|
||||
"(\\w)ing([\\s\\n<.,;?!:])" "'n"
|
||||
"(\\w)ings([\\s\\n<.,;?!:])" "'ns"
|
||||
"(\\w)tion([\\s\\n<.,;?!:])" "t'n"
|
||||
"(\\w)tions([\\s\\n<.,;?!:])" "t'ns"
|
||||
"(\\w)(?:[aeiou])ble([\\s\\n<.,;?!:])" "'ble"
|
||||
"(\\w)(?:[aeiou])mize([\\s\\n<.,;?!:])" "'mize"
|
||||
"(\\w)(?:[aeiou])mizes([\\s\\n<.,;?!:])" "'mizes"
|
||||
"(\\w)(?:[aeiou])nize([\\s\\n<.,;?!:])" "'nize"
|
||||
"(\\w)(?:[aeiou])nizes([\\s\\n<.,;?!:])" "'nizes"
|
||||
-}}
|
||||
{{- $links := slice
|
||||
"href"
|
||||
-}}
|
||||
{{- $fix := dict
|
||||
"warn'n" "warning"
|
||||
"sect'n" "section"
|
||||
"n Cap'n" "n"
|
||||
"Avast right o' John" "Note right of John"
|
||||
-}}
|
||||
{{- range $from, $to := $words }}
|
||||
{{- $c = replaceRE (printf "([\\s\\n>])%s([\\s\\n<.,;?!:])" $from) (printf "${1}%s${2}" $to) $c }}
|
||||
{{- end }}
|
||||
{{- range $from, $to := $specials }}
|
||||
{{- $c = replaceRE $from (printf "${1}%s${2}" $to) $c }}
|
||||
{{- end }}
|
||||
{{- range $attr := $links }}
|
||||
{{- $c = replaceRE (printf "\\b(%s)(=\"%s[^\"]*?\")" $attr $baseURLpath) "${1} data-piratify${2}" $c }}
|
||||
{{- $m := findRESubmatch (printf "%s data-piratify=\"(%s)([^\"]*?)\"" $attr $baseURLpath) $c }}
|
||||
{{- range $m }}
|
||||
{{- $r := printf "%s=\"%s\"" $attr (index . 2) }}
|
||||
{{- $u := urls.Parse (index . 2) }}
|
||||
{{- if and (not $u.IsAbs) $u.Path }}
|
||||
{{- $r = printf "%s=\"%s%s/%s\"" $attr $baseURLpath $langtrg (index . 2) }}
|
||||
{{- end }}
|
||||
{{- $c = replace $c (index . 0) $r }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- range $from, $to := $fix }}
|
||||
{{- $c = replace $c $from $to }}
|
||||
{{- end }}
|
||||
{{- if $srcPage }}
|
||||
{{- range $page.Site.Params.relearn.dependencies }}
|
||||
{{- $has := printf "has%s" .name }}
|
||||
{{- $page.Store.Set $has (or ($page.Store.Get $has) ($srcPage.Store.Get $has)) }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- $c | safeHTML }}
|
4
exampleSite/layouts/partials/toc.html
Normal file
4
exampleSite/layouts/partials/toc.html
Normal file
|
@ -0,0 +1,4 @@
|
|||
{{- partial "shortcodes/piratify.html" (dict
|
||||
"page" .
|
||||
"pagefield" "TableOfContents"
|
||||
) }}
|
5
exampleSite/layouts/shortcodes/piratify.html
Normal file
5
exampleSite/layouts/shortcodes/piratify.html
Normal file
|
@ -0,0 +1,5 @@
|
|||
{{- partial "shortcodes/piratify.html" (dict
|
||||
"page" .Page
|
||||
"pagefield" "Content"
|
||||
"writenotice" (.Get "writenotice" | default (.Get 0))
|
||||
) }}
|
|
@ -1 +1 @@
|
|||
7.3.2+cd4a8363be3170bf6931bbe8abd29b0ece2548fc
|
||||
7.3.2+1eaa287faa456be277e6b65f40b08b821ac02fff
|
Loading…
Add table
Reference in a new issue