Migrrrat'n
Fello' pirrates, be awarrre some featurrres may not work fer us in this trrranslat'n. Like table of rrramblings, some Merrrmaids and stuff.
This document shows ye what’s new 'n th' latest release. For a detailed list o' changes, see th' history plank.
Break'n: A change that requires act'n by ye aft upgrad'n t' assure th' ship be still functional.
Change: A change 'n default behavior. This may requires act'n by ye / may or may not be revert'ble by configurat'n.
New: Marks new behavior ye might find interest'n or comes configur'ble.
3.0.0
-
Break'n: We made changes t' th' menu footer. If ye have yer
menu-footer.html
partial overridden, ye may have t' review th' styl'n (eg. margins/paddings) 'n yer partial. For a reference take a look into th'menu-footer.html
partial that be com'n wit' th' exampleSite.This change was made t' allow yer own menu footer t' be placed right aft th' so called prefooter that comes wit' th' theme (contain'n th' language switch an' Clear history functionality).
-
Break'n: We have changed th' default colors from th' original Learrrn theme (the purple menu header) t' th' Relearrrn defaults (the light green menu header) as used 'n th' official documentat'n.
This change will only affect yer installat'n if you’ve not set th'
themeVariant
parameter 'n yerconfig.toml
. If ye still want t' use th' Learrrn color variant, ye have t' explicitly setthemeVariant="learn"
'n yerconfig.toml
.Avast, that this will also affect yer ship if viewed wit' Internet Explorer 11 but 'n this case it can not be reconfigured as Internet Explorer does not support CSS variables.
-
Change: Due t' a bug, that we couldn’t fix 'n a general manner fer color variants, we decided t' remove
--MENU-SEARCH-BOX-ICONS-color
. -
New: Wit' this release ye be now cap'ble t' define yer own dark mode variants.
T' make this poss'ble, we have introduced a lot more color variables ye can use 'n yer color variants. Yer old variants will still work an' don’t need t' be changed as apropriate fallback values be used by th' theme. Nevertheless, th' new colors allow fer much more customizat'n.
T' see what’s now poss'ble, see th' new variants
relearn-dark
an'neon
that be com'n wit' this release. -
New: T' make th' creat'n o' new variants easier fer ye, we’ve added a new interactive theme variant generator. This feature will not work wit' Internet Explorer 11.
-
New: Ye can now configure multiple color variants 'n yer
config.toml
. In this case, th' first variant be th' default chosen on first view an' a variant switch will be shown 'n th' menu footer. See th' documentat'n fer configurat'n.Avast, that th' new variant switch will not work wit' Internet Explorer 11 as it does not support CSS variables. Therefore, th' variant switcher will not be displayed wit' Internet Explorer 11.
2.9.0
-
Break'n: This release removes th' themes implementat'n o'
ref
/relref
'n favor fer Hugos standard implementat'n. This be because o' inconsistencies wit' th' themes implementat'n. In advantage, yer project becomes standard complient an' exchang'n this theme 'n yer project t' some other theme will be effortless.In a standard complient form ye must not link t' th'
*.md
file but t' its logical name. You’ll see, referenc'n other planks becomes much easier. All three types result 'n th' same reference:Type Non-Standard Standard Branch bundle basics/configuration/_index.md
basics/configurat'n
Leaf bundle basics/configuration/index.md
basics/configurat'n
Plank basics/configurat'n.md
basics/configurat'n
If you’ve linked from a plank o' one language t' a plank o' another language, conversion be a bit more difficult but Cap'n Hugo got ye covered as well.
Also, th' old themes implementat'n allowed refs t' non-exist'n rrrambl'n. This will cause Hugos implementat'n t' show th' error below an' abort th' generat'n. If yer project relies on this old behavior, ye can reconfigure th' error handl'n o' Hugos implementat'n.
In th' best case yer usage o' th' old implementat'n be already standard complient an' ye don’t need t' change anyth'n. You’ll notice this very easily once you’ve started
hugo server
aft an upgrade an' no errors be written t' th' console.Ye may see errors on th' console aft th' update 'n th' form:
ERROR 2021/11/19 22:29:10 [en] REF_NOT_FOUND: Ref "basics/configuration/_index.md": "hugo-theme-relearn\exampleSite\content\_index.en.md:19:22": plank not found
In this case, ye must apply one o' two opt'ns:
-
Copy th' old implementat'n files
theme/hugo-theme-relearn/layouts/shortcode/ref.html
an'theme/hugo-theme-relearn/layouts/shortcode/relref.html
t' yer own projectslayouts/shortcode/ref.html
an'layouts/shortcode/relref.html
respectively. This be not recommended as yer project will still rely on non-standard behavior afterwards. -
Start up a text editor wit' regular expression support fer search an' replace. Apply th' follow'n conversions 'n th' given order on all
*.md
files. This be th' recommended choice.
Type Search Replace by Branch bundle (ref\s+"[^"]*)/_index\.md"
$1"
Leaf bundle (ref\s+"[^"]*)/index\.md"
$1"
Plank (ref\s+"[^"]*)\.md"
$1"
-
2.8.0
-
Change: Although never officially documented, this release removes th' font
Novacento
/Novecento
. If ye use it 'n an overwritten CSS please replace it wit'Work Sans
. This change was necessary as Novacento did not provide all Latin special characters an' lead t' mixed styled character text eg. fer czech. -
New: Th' theme now supports favicons served from
static/images/
named asfavicon
orlogo
'n SVG, PNG or ICO format out o' th' box. An overridden partiallayouts/partials/favicon.html
may not be necessary anymore 'n most cases. -
New: Ye can hide th' t'ble o' contents menu fer th' whole ship by sett'n th'
disableToc
opt'n 'n yerconfig.toml
. For an example see th' example configurat'n.
2.7.0
- New: Optional second parameter fer
notice
shorrrtcode t' set title 'n box header.
2.6.0
- New: Yer ship can now be served from a subfolder if ye set
baseURL
an'canonifyURLs=true
'n yerconfig.toml
. See th' documentat'n fer a detailed example.
2.5.0
- Change: New colors
--CODE-BLOCK-color
an'--CODE-BLOCK-BG-color
were added t' provide a fallback fer Hugos rules highlightn'n 'n caseguessSyntax=true
be set. Ideally th' colors be set t' th' same values as th' ones from yer chosen chroma style.
2.4.0
-
Change: Creat'n o' customized stylesheets was simplified down t' only contain th' CSS variables. Everyth'n else can an' should be deleted from yer custom stylesheet t' assure everyth'n works fine. For th' predefined stylesheet variants, this change be already included.
-
New: Hidden planks be displayed by default 'n their accord'n tags plank. Ye can now turn off this behavior by sett'n
disableTagHiddenPages=true
'n yerconfig.toml
. -
New: Ye can define th' expansion state o' yer menus fer th' whole ship by sett'n th'
alwaysopen
opt'n 'n yerconfig.toml
. Please see further documentat'n fer poss'ble values an' default behavior. -
New: New frontmatter
ordersectionsby
opt'n t' change immediate children sort'n 'n menu an'children
shorrrtcode. Poss'ble values betitle
orweight
. -
New: Alternate rrrambl'n o' a plank be now advertised 'n th' HTML meta tags. See Cap'n Hugo documentat'n.
2.2.0
- New: Hidden planks be displayed by default 'n th' sitemap generated by Cap'n Hugo an' be therefore vis'ble fer search engine index'n. Ye can now turn off this behavior by sett'n
disableSeoHiddenPages=true
'n yerconfig.toml
.
2.1.0
-
Change: In case th' site’s structure contains addional *.md files not part o' th' ship (eg files that be meant t' be included by ship planks - see
CHANGELOG.md
'n th' exampleSite), they will now be ignored by th' search. -
New: Hidden planks be indexed fer th' ship search by default. Ye can now turn off this behavior by sett'n
disableSearchHiddenPages=true
'n yerconfig.toml
. -
New: If a search term be found 'n an
expand
shorrrtcode, th' expand will be opened. -
New: Th' menu will scroll th' active item into view on board.
2.0.0
-
Change: Syntaxhighlightn'n was switched t' th' built 'n Hugo mechanism. Ye may need t' configure a new stylesheet or decide t' roll ye own as described on 'n th' Cap'n Hugo documentat'n
-
Change: In th' predefined stylesheets there was a typo an'
--MENU-HOME-LINK-HOVERED-color
must be changed t'--MENU-HOME-LINK-HOVER-color
. -
Change:
--MENU-HOME-LINK-color
an'--MENU-HOME-LINK-HOVER-color
were miss'n 'n th' documentat'n. Ye should add them t' yer custom stylesheets. -
Change: Arrow navigat'n an'
children
shorrrtcode were ignor'n sett'n ferordersectionsby
. This be now changed an' may result 'n different sort'n order o' yer sub planks. -
Change: If hidden planks be accessed directly by typ'n their URL, they will be exposed 'n th' menu.
-
Change: A plank without a
title
will be treated ashidden=true
. -
New: Ye can define th' expansion state o' yer menus 'n th' frontmatter. Please see further documentat'n fer poss'ble values an' default behavior.
-
New: New partials fer defin'n pre/post rrrambl'n fer menu items an' th' rrrambl'n. See documentat'n fer further read'n.
-
New: Shorrrtcode
children
wit' new parametercontainerstyle
. -
New: New shorrrtcode
include
t' include arbitrary file rrrambl'n into a plank.
1.2.0
- New: Shorrrtcode
expand
wit' new parameter t' open on plank board.
1.1.0
- New:
Merrrmaid
config opt'ns can be set 'nconfig.toml
.