diff --git a/README.md b/README.md index 7bb4a52cfb1..ba2a1f2cd0e 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ A theme for [Hugo](https://gohugo.io/) designed for documentation. ## Motivation -The Relearn theme is a fork of the great [Learn theme](https://github.com/matcornic/hugo-theme-learn) with the aim of fixing long outstanding bugs and adapting to latest Hugo features. As far as possible this theme tries to be a drop-in replacement for the Learn theme. +The Relearn theme is a fork of the great [Learn theme](https://github.com/matcornic/hugo-theme-learn) with the aim of fixing long unresolved bugs and adapting to latest Hugo features. As far as possible this theme tries to be a drop-in replacement for the Learn theme. ## Features @@ -16,32 +16,32 @@ The Relearn theme is a fork of the great [Learn theme](https://github.com/matcor - Responsive design for mobile usage - Looks nice on paper (if it has to) - Usable offline, no external dependencies - - [Usable from your local file system via `file://` protocol](https://mcshelby.github.io/hugo-theme-relearn/basics/customization#file-system) + - [Usable from your local file system via `file://` protocol](https://mcshelby.github.io/hugo-theme-relearn/configuration/customization#file-system) - Support for the [VSCode Front Matter extension](https://github.com/estruyf/vscode-front-matter) for on-premise CMS capabilities - - [Support for Open Graph, Schema and Twitter Cards](https://mcshelby.github.io/hugo-theme-relearn/basics/customization#social-media-meta-tags) + - [Support for Open Graph, Schema and Twitter Cards](https://mcshelby.github.io/hugo-theme-relearn/configuration/customization#social-media-meta-tags) - **Configurable theming and visuals** - - [Configurable brand images](https://mcshelby.github.io/hugo-theme-relearn/basics/branding#change-the-logo) - - [Automatic switch for light/dark variant depending on your OS settings](https://mcshelby.github.io/hugo-theme-relearn/basics/branding#adjust-to-os-settings) + - [Configurable brand images](https://mcshelby.github.io/hugo-theme-relearn/configuration/branding#change-the-logo) + - [Automatic switch for light/dark variant depending on your OS settings](https://mcshelby.github.io/hugo-theme-relearn/configuration/branding#adjust-to-os-settings) - Predefined light, dark and color variants - - [User selectable variants](https://mcshelby.github.io/hugo-theme-relearn/basics/branding#multiple-variants) - - [Stylesheet generator](https://mcshelby.github.io/hugo-theme-relearn/basics/generator) + - [User selectable variants](https://mcshelby.github.io/hugo-theme-relearn/configuration/branding#multiple-variants) + - [Stylesheet generator](https://mcshelby.github.io/hugo-theme-relearn/configuration/generator) - [Configurable syntax highlighting](https://mcshelby.github.io/hugo-theme-relearn/shortcodes/highlight) - **Unique theme features** - - [Print whole chapters or even the complete site](https://mcshelby.github.io/hugo-theme-relearn/basics/customization#activate-print-support) - - [In-page search, search popup and dedicated search page](https://mcshelby.github.io/hugo-theme-relearn/basics/customization#configure-search) - - [Taxonomy support](https://mcshelby.github.io/hugo-theme-relearn/cont/taxonomy) - - [Configurable topbar buttons](https://mcshelby.github.io/hugo-theme-relearn/basics/topbar) - - [Unlimited nested menu items](https://mcshelby.github.io/hugo-theme-relearn/cont/pages) - - [Configurable shortcut links](https://mcshelby.github.io/hugo-theme-relearn/cont/menushortcuts) + - [Print whole chapters or even the complete site](https://mcshelby.github.io/hugo-theme-relearn/configuration/customization#activate-print-support) + - [In-page search, search popup and dedicated search page](https://mcshelby.github.io/hugo-theme-relearn/configuration/customization#configure-search) + - [Taxonomy support](https://mcshelby.github.io/hugo-theme-relearn/content/taxonomy) + - [Configurable topbar buttons](https://mcshelby.github.io/hugo-theme-relearn/configuration/topbar) + - [Unlimited nested menu items](https://mcshelby.github.io/hugo-theme-relearn/content/organization) + - [Configurable shortcut links](https://mcshelby.github.io/hugo-theme-relearn/configuration/menushortcuts) - Hidden pages - **Multi language support** - - [Full support for languages written right to left](https://mcshelby.github.io/hugo-theme-relearn/cont/i18n) - - [Available languages](https://mcshelby.github.io/hugo-theme-relearn/cont/i18n#basic-configuration): Arabic, Simplified Chinese, Traditional Chinese, Czech, Dutch, English, Finnish, French, German, Hindi, Hungarian, Indonesian, Italian, Japanese, Korean, Polish, Portuguese, Romanian, Russian, Spanish, Swahili, Turkish, Vietnamese - - [Search support for mixed language content](https://mcshelby.github.io/hugo-theme-relearn/cont/i18n#search) + - [Full support for languages written right to left](https://mcshelby.github.io/hugo-theme-relearn/configuration/i18n) + - [Available languages](https://mcshelby.github.io/hugo-theme-relearn/configuration/i18n#basic-configuration): Arabic, Simplified Chinese, Traditional Chinese, Czech, Dutch, English, Finnish, French, German, Hindi, Hungarian, Indonesian, Italian, Japanese, Korean, Polish, Portuguese, Romanian, Russian, Spanish, Swahili, Turkish, Vietnamese + - [Search support for mixed language content](https://mcshelby.github.io/hugo-theme-relearn/configuration/i18n#search) - **Additional Markdown features** - - [Support for GFM (GitHub Flavored Markdown)](https://mcshelby.github.io/hugo-theme-relearn/cont/markdown) - - [Image effects like sizing, shadow, border and alignment](https://mcshelby.github.io/hugo-theme-relearn/cont/markdown#image-effects) - - [Image lightbox](https://mcshelby.github.io/hugo-theme-relearn/cont/markdown#lightbox) + - [Support for GFM (GitHub Flavored Markdown)](https://mcshelby.github.io/hugo-theme-relearn/content/markdown) + - [Image effects like sizing, shadow, border and alignment](https://mcshelby.github.io/hugo-theme-relearn/content/markdown#image-effects) + - [Image lightbox](https://mcshelby.github.io/hugo-theme-relearn/content/markdown#lightbox) - **Shortcodes galore** - [Display resources contained in a page bundle](https://mcshelby.github.io/hugo-theme-relearn/shortcodes/resources) - [Marker badges](https://mcshelby.github.io/hugo-theme-relearn/shortcodes/badge) diff --git a/exampleSite/config/_default/params.toml b/exampleSite/config/_default/params.toml index cd59d03954c..1d5b9950059 100644 --- a/exampleSite/config/_default/params.toml +++ b/exampleSite/config/_default/params.toml @@ -138,6 +138,7 @@ disableNextPrev = false # in the pages frontmatter. This is useful if you want to give the opportunity # for people to create merge request for your content. editURL = "https://github.com/McShelby/hugo-theme-relearn/edit/main/exampleSite/content/${FilePath}" + #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ # Search # These options modify various aspects of the search functionality. diff --git a/exampleSite/content/basics/changelog/_index.en.md b/exampleSite/content/basics/changelog/_index.en.md index 8f73a7e47f4..fba89f88e25 100644 --- a/exampleSite/content/basics/changelog/_index.en.md +++ b/exampleSite/content/basics/changelog/_index.en.md @@ -3,7 +3,7 @@ alwaysopen = false disableToc = false title = "Changelog" type = "changelog" -weight = 30 +weight = 4 +++ {{% pages showdivider="true" showhidden="true" hidevisible="true" showtitle="true" %}} diff --git a/exampleSite/content/basics/changelog/_index.pir.md b/exampleSite/content/basics/changelog/_index.pir.md index faeb46424df..0a8eca85e57 100644 --- a/exampleSite/content/basics/changelog/_index.pir.md +++ b/exampleSite/content/basics/changelog/_index.pir.md @@ -3,6 +3,6 @@ alwaysopen = false disableToc = false title = "Changelog" type = "changelog" -weight = 30 +weight = 4 +++ {{< piratify >}} diff --git a/exampleSite/content/basics/installation/_index.en.md b/exampleSite/content/basics/installation/_index.en.md index cccfa06de01..3860925d544 100644 --- a/exampleSite/content/basics/installation/_index.en.md +++ b/exampleSite/content/basics/installation/_index.en.md @@ -1,7 +1,7 @@ +++ tags = ["documentation"] title = "Installation" -weight = 15 +weight = 2 +++ The following steps are here to help you initialize your new website. If you don't know Hugo at all, we strongly suggest you learn more about it by following this [great documentation for beginners](https://gohugo.io/overview/quickstart/). diff --git a/exampleSite/content/basics/installation/_index.pir.md b/exampleSite/content/basics/installation/_index.pir.md index a45457f7948..a6015329794 100644 --- a/exampleSite/content/basics/installation/_index.pir.md +++ b/exampleSite/content/basics/installation/_index.pir.md @@ -1,6 +1,6 @@ +++ tags = ["documentat'n"] title = "Installat'n" -weight = 15 +weight = 2 +++ {{< piratify >}} \ No newline at end of file diff --git a/exampleSite/content/basics/releasenotes/2/0.en.md b/exampleSite/content/basics/releasenotes/2/0.en.md index f7165787e77..b5f0087676e 100644 --- a/exampleSite/content/basics/releasenotes/2/0.en.md +++ b/exampleSite/content/basics/releasenotes/2/0.en.md @@ -24,9 +24,9 @@ weight = -0 ### New -- {{% badge style="info" icon="plus-circle" title=" " %}}New{{% /badge %}} You can define the expansion state of your menus in the frontmatter. Please see further [documentation](cont/frontmatter#override-expand-state-rules-for-menu-entries) for possible values and default behavior. +- {{% badge style="info" icon="plus-circle" title=" " %}}New{{% /badge %}} You can define the expansion state of your menus in the frontmatter. Please see further [documentation](content/frontmatter#override-expand-state-rules-for-menu-entries) for possible values and default behavior. -- {{% badge style="info" icon="plus-circle" title=" " %}}New{{% /badge %}} New partials for defining pre/post content for menu items and the content. See [documentation](basics/customization#partials) for further reading. +- {{% badge style="info" icon="plus-circle" title=" " %}}New{{% /badge %}} New partials for defining pre/post content for menu items and the content. See [documentation](configuration/customization#partials) for further reading. - {{% badge style="info" icon="plus-circle" title=" " %}}New{{% /badge %}} Shortcode [`children`](shortcodes/children) with new parameter `containerstyle`. diff --git a/exampleSite/content/basics/releasenotes/2/4.en.md b/exampleSite/content/basics/releasenotes/2/4.en.md index d71e90bd061..70a7c2bc40c 100644 --- a/exampleSite/content/basics/releasenotes/2/4.en.md +++ b/exampleSite/content/basics/releasenotes/2/4.en.md @@ -16,7 +16,7 @@ weight = -4 - {{% badge style="info" icon="plus-circle" title=" " %}}New{{% /badge %}} Hidden pages are displayed by default in their according tags page. You can now turn off this behavior by setting `disableTagHiddenPages=true` in your `hugo.toml`. -- {{% badge style="info" icon="plus-circle" title=" " %}}New{{% /badge %}} You can define the expansion state of your menus for the whole site by setting the `alwaysopen` option in your `hugo.toml`. Please see further [documentation](cont/frontmatter#override-expand-state-rules-for-menu-entries) for possible values and default behavior. +- {{% badge style="info" icon="plus-circle" title=" " %}}New{{% /badge %}} You can define the expansion state of your menus for the whole site by setting the `alwaysopen` option in your `hugo.toml`. Please see further [documentation](content/frontmatter#override-expand-state-rules-for-menu-entries) for possible values and default behavior. - {{% badge style="info" icon="plus-circle" title=" " %}}New{{% /badge %}} New frontmatter `ordersectionsby` option to change immediate children sorting in menu and `children` shortcode. Possible values are `title` or `weight`. diff --git a/exampleSite/content/basics/releasenotes/2/6.en.md b/exampleSite/content/basics/releasenotes/2/6.en.md index 392f2e30549..38e4383db78 100644 --- a/exampleSite/content/basics/releasenotes/2/6.en.md +++ b/exampleSite/content/basics/releasenotes/2/6.en.md @@ -10,4 +10,4 @@ weight = -6 ### New -- {{% badge style="info" icon="plus-circle" title=" " %}}New{{% /badge %}} Your site can now be served from a subfolder if you set `baseURL` in your `hugo.toml`. See the [documentation](basics/customization#public-web-server-from-subdirectory) for a detailed example. +- {{% badge style="info" icon="plus-circle" title=" " %}}New{{% /badge %}} Your site can now be served from a subfolder if you set `baseURL` in your `hugo.toml`. See the [documentation](configuration/customization#public-web-server-from-subdirectory) for a detailed example. diff --git a/exampleSite/content/basics/releasenotes/2/8.en.md b/exampleSite/content/basics/releasenotes/2/8.en.md index 10917ef209e..6171016bfcf 100644 --- a/exampleSite/content/basics/releasenotes/2/8.en.md +++ b/exampleSite/content/basics/releasenotes/2/8.en.md @@ -14,6 +14,6 @@ weight = -8 ### New -- {{% badge style="info" icon="plus-circle" title=" " %}}New{{% /badge %}} The theme now supports favicons served from `static/images/` named as `favicon` or `logo` in SVG, PNG or ICO format [out of the box](basics/branding#change-the-favicon). An overridden partial `layouts/partials/favicon.html` may not be necessary anymore in most cases. +- {{% badge style="info" icon="plus-circle" title=" " %}}New{{% /badge %}} The theme now supports favicons served from `static/images/` named as `favicon` or `logo` in SVG, PNG or ICO format [out of the box](configuration/branding#change-the-favicon). An overridden partial `layouts/partials/favicon.html` may not be necessary anymore in most cases. -- {{% badge style="info" icon="plus-circle" title=" " %}}New{{% /badge %}} You can hide the table of contents menu for the whole site by setting the `disableToc` option in your `hugo.toml`. For an example see [the example configuration](basics/configuration). +- {{% badge style="info" icon="plus-circle" title=" " %}}New{{% /badge %}} You can hide the table of contents menu for the whole site by setting the `disableToc` option in your `hugo.toml`. For an example see [the example configuration](configuration/options). diff --git a/exampleSite/content/basics/releasenotes/2/9.en.md b/exampleSite/content/basics/releasenotes/2/9.en.md index f82f4aab15e..7eb3e9a6baa 100644 --- a/exampleSite/content/basics/releasenotes/2/9.en.md +++ b/exampleSite/content/basics/releasenotes/2/9.en.md @@ -16,9 +16,9 @@ weight = -9 | Type | Non-Standard | Standard | |---------------|----------------------------------|------------------------| - | Branch bundle | `basics/configuration/_index.md` | `basics/configuration` | - | Leaf bundle | `basics/configuration/index.md` | `basics/configuration` | - | Page | `basics/configuration.md` | `basics/configuration` | + | Branch bundle | `configuration/options/_index.md` | `configuration/options` | + | Leaf bundle | `configuration/options/index.md` | `configuration/options` | + | Page | `configuration/options.md` | `configuration/options` | If you've linked from a page of one language to a page of another language, conversion is a bit more difficult but [Hugo got you covered](https://gohugo.io/content-management/cross-references/#link-to-another-language-version) as well. @@ -29,7 +29,7 @@ weight = -9 You may see errors on the console after the update in the form: ````shell - 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": page not found + ERROR 2021/11/19 22:29:10 [en] REF_NOT_FOUND: Ref "configuration/options/_index.md": "hugo-theme-relearn\exampleSite\content\_index.en.md:19:22": page not found ```` In this case, you must apply one of two options: diff --git a/exampleSite/content/basics/releasenotes/3/0.en.md b/exampleSite/content/basics/releasenotes/3/0.en.md index b87f7528aed..8fd9731110a 100644 --- a/exampleSite/content/basics/releasenotes/3/0.en.md +++ b/exampleSite/content/basics/releasenotes/3/0.en.md @@ -10,13 +10,13 @@ weight = -0 ### Breaking -- {{% badge style="warning" title=" " %}}Breaking{{% /badge %}} We made changes to the menu footer. If you have your `menu-footer.html` [partial overridden](basics/customization#partials), you may have to review the styling (eg. margins/paddings) in your partial. For a reference take a look into the `menu-footer.html` partial that is coming with the exampleSite. +- {{% badge style="warning" title=" " %}}Breaking{{% /badge %}} We made changes to the menu footer. If you have your `menu-footer.html` [partial overridden](configuration/customization#partials), you may have to review the styling (eg. margins/paddings) in your partial. For a reference take a look into the `menu-footer.html` partial that is coming with the exampleSite. This change was made to allow your own menu footer to be placed right after the so called prefooter that comes with the theme (containing the language switch and _Clear history_ functionality). - {{% badge style="warning" title=" " %}}Breaking{{% /badge %}} We have changed the default colors from the original Learn theme (the purple menu header) to the Relearn defaults (the light green menu header) as used in the official documentation. - This change will only affect your installation if you've not set the `themeVariant` parameter in your `hugo.toml`. [If you still want to use the Learn color variant](basics/branding#theme-variant), you have to explicitly set `themeVariant="learn"` in your `hugo.toml`. + This change will only affect your installation if you've not set the `themeVariant` parameter in your `hugo.toml`. [If you still want to use the Learn color variant](configuration/branding#theme-variant), you have to explicitly set `themeVariant="learn"` in your `hugo.toml`. Note, that this will also affect your site if viewed with Internet Explorer 11 but in this case it can not be reconfigured as Internet Explorer does not support CSS variables. @@ -30,12 +30,12 @@ weight = -0 - {{% badge style="info" icon="plus-circle" title=" " %}}New{{% /badge %}} With this release you are now capable to define your own _dark mode_ variants. - To make this possible, we have introduced a lot more color variables you can use in [your color variants](basics/branding#theme-variant). Your old variants will still work and don't need to be changed as appropriate fallback values are used by the theme. Nevertheless, the new colors allow for much more customization. + To make this possible, we have introduced a lot more color variables you can use in [your color variants](configuration/branding#theme-variant). Your old variants will still work and don't need to be changed as appropriate fallback values are used by the theme. Nevertheless, the new colors allow for much more customization. To see what's now possible, see the new variants `relearn-dark` and `neon` that are coming with this release. -- {{% badge style="info" icon="plus-circle" title=" " %}}New{{% /badge %}} To make the creation of new variants easier for you, we've added a new interactive [theme variant generator](basics/generator). This feature will not work with Internet Explorer 11. +- {{% badge style="info" icon="plus-circle" title=" " %}}New{{% /badge %}} To make the creation of new variants easier for you, we've added a new interactive [theme variant generator](configuration/generator). This feature will not work with Internet Explorer 11. -- {{% badge style="info" icon="plus-circle" title=" " %}}New{{% /badge %}} You can now configure multiple color variants in your `hugo.toml`. In this case, the first variant is the default chosen on first view and a variant selector will be shown in the menu footer. See the [documentation](basics/branding#multiple-variants) for configuration. +- {{% badge style="info" icon="plus-circle" title=" " %}}New{{% /badge %}} You can now configure multiple color variants in your `hugo.toml`. In this case, the first variant is the default chosen on first view and a variant selector will be shown in the menu footer. See the [documentation](configuration/branding#multiple-variants) for configuration. Note, that the new variant selector will not work with Internet Explorer 11 as it does not support CSS variables. Therefore, the variant selector will not be displayed with Internet Explorer 11. diff --git a/exampleSite/content/basics/releasenotes/3/2.en.md b/exampleSite/content/basics/releasenotes/3/2.en.md index e7a56a1755a..e32d56a4138 100644 --- a/exampleSite/content/basics/releasenotes/3/2.en.md +++ b/exampleSite/content/basics/releasenotes/3/2.en.md @@ -16,7 +16,7 @@ weight = -2 - {{% badge style="note" title=" " %}}Change{{% /badge %}} In this release the Mermaid JavaScript library will only be loaded on demand if the page contains a Mermaid shortcode or is using Markdown codefences. This changes the behavior of `disableMermaid` config option as follows: If a Mermaid shortcode or Markdown codefence is found, the option will be ignored and Mermaid will be loaded regardlessly. - The option is still useful in case you are using scripting to set up your graph. In this case no shortcode or Markdown codefence is involved and the library is not loaded by default. In this case you can set `disableMermaid=false` in your frontmatter to force the library to be loaded. See the [theme variant generator](basics/generator) of the exampleSite for an example. + The option is still useful in case you are using scripting to set up your graph. In this case no shortcode or Markdown codefence is involved and the library is not loaded by default. In this case you can set `disableMermaid=false` in your frontmatter to force the library to be loaded. See the [theme variant generator](configuration/generator) of the exampleSite for an example. ### New diff --git a/exampleSite/content/basics/releasenotes/3/3.en.md b/exampleSite/content/basics/releasenotes/3/3.en.md index e1c9568215c..6c65cbc1e30 100644 --- a/exampleSite/content/basics/releasenotes/3/3.en.md +++ b/exampleSite/content/basics/releasenotes/3/3.en.md @@ -10,6 +10,6 @@ weight = -3 ### New -- {{% badge style="info" icon="plus-circle" title=" " %}}New{{% /badge %}} Introduction of new CSS variables to set the font. The theme distinguishes between `--MAIN-font` for all content text and `--CODE-font` for inline or block code. There are additional overrides for all headings. See the [theme variant generator](basics/generator) of the exampleSite for all available variables. +- {{% badge style="info" icon="plus-circle" title=" " %}}New{{% /badge %}} Introduction of new CSS variables to set the font. The theme distinguishes between `--MAIN-font` for all content text and `--CODE-font` for inline or block code. There are additional overrides for all headings. See the [theme variant generator](configuration/generator) of the exampleSite for all available variables. - {{% badge style="info" icon="plus-circle" title=" " %}}New{{% /badge %}} The new shortcode `swagger` is available to include a UI for REST OpenAPI specifications. See the [documentation](shortcodes/openapi) for available features. This feature will not work with Internet Explorer 11. diff --git a/exampleSite/content/basics/releasenotes/3/4.en.md b/exampleSite/content/basics/releasenotes/3/4.en.md index b3e70731c32..52e27c6f674 100644 --- a/exampleSite/content/basics/releasenotes/3/4.en.md +++ b/exampleSite/content/basics/releasenotes/3/4.en.md @@ -16,6 +16,6 @@ weight = -4 - {{% badge style="info" icon="plus-circle" title=" " %}}New{{% /badge %}} If you prefer expandable/collapsible menu items, you can now set `collapsibleMenu=true` in your `hugo.toml`. This will add arrows to all menu items that contain sub menus. The menu will expand/collapse without navigation if you click on an arrow. -- {{% badge style="info" icon="plus-circle" title=" " %}}New{{% /badge %}} You can activate [print support](basics/customization#activate-print-support) in your `hugo.toml` to add the capability to print whole chapters or even the complete site. +- {{% badge style="info" icon="plus-circle" title=" " %}}New{{% /badge %}} You can activate [print support](configuration/customization#activate-print-support) in your `hugo.toml` to add the capability to print whole chapters or even the complete site. - {{% badge style="info" icon="plus-circle" title=" " %}}New{{% /badge %}} Translation into Traditional Chinese. diff --git a/exampleSite/content/basics/releasenotes/4/1.en.md b/exampleSite/content/basics/releasenotes/4/1.en.md index fee90a3b858..22aa8f52ea1 100644 --- a/exampleSite/content/basics/releasenotes/4/1.en.md +++ b/exampleSite/content/basics/releasenotes/4/1.en.md @@ -10,4 +10,4 @@ weight = -1 ### New -- {{% badge style="info" icon="plus-circle" title=" " %}}New{{% /badge %}} While fixing issues with the search functionality for non Latin languages, you can now [configure to have multiple languages on a single page](cont/i18n#search-with-mixed-language-support). +- {{% badge style="info" icon="plus-circle" title=" " %}}New{{% /badge %}} While fixing issues with the search functionality for non Latin languages, you can now [configure to have multiple languages on a single page](configuration/i18n#search-with-mixed-language-support). diff --git a/exampleSite/content/basics/releasenotes/5/0.en.md b/exampleSite/content/basics/releasenotes/5/0.en.md index 3ffd5d79e18..31b52ae6ede 100644 --- a/exampleSite/content/basics/releasenotes/5/0.en.md +++ b/exampleSite/content/basics/releasenotes/5/0.en.md @@ -18,7 +18,7 @@ weight = -0 ### Change -- {{% badge style="note" title=" " %}}Change{{% /badge %}} The way [archetypes](cont/archetypes) are used to generate output has changed. The new systems allows you, to redefine existing archetypes or even generate your own ones. +- {{% badge style="note" title=" " %}}Change{{% /badge %}} The way [archetypes](content/layouts) are used to generate output has changed. The new systems allows you, to redefine existing archetypes or even generate your own ones. Your existing markdown files will still work like before and therefore you don't need to change anything after the upgrade. Nevertheless, it is recommended to adapt your existing markdown files to the new way as follows: diff --git a/exampleSite/content/basics/releasenotes/5/11.en.md b/exampleSite/content/basics/releasenotes/5/11.en.md index 9e3fb314214..7b0f3f756c5 100644 --- a/exampleSite/content/basics/releasenotes/5/11.en.md +++ b/exampleSite/content/basics/releasenotes/5/11.en.md @@ -22,7 +22,7 @@ weight = -11 The default setting of `on`, in effect since 1.1.0, changed back to `off` as there was interference with scrolling on mobile and big pages. -- {{% badge style="note" title=" " %}}Change{{% /badge %}} The theme is now capable to visually [adapt to your OS's light/dark mode setting](basics/branding#adjust-to-os-settings). +- {{% badge style="note" title=" " %}}Change{{% /badge %}} The theme is now capable to visually [adapt to your OS's light/dark mode setting](configuration/branding#adjust-to-os-settings). This is also the new default setting if you haven't configured `themeVariant` in your `hugo.toml`. @@ -32,7 +32,7 @@ weight = -11 - {{% badge style="note" title=" " %}}Change{{% /badge %}} The JavaScript code for handling image lightboxes (provided by [Featherlight](https://noelboss.github.io/featherlight)) was replaced by a CSS-only solution. - This also changed the [lightbox effects](cont/markdown#lightbox) parameter from `featherlight=false` to `lightbox=false`. Nevertheless you don't need to change anything as the old name will be used as a fallback. + This also changed the [lightbox effects](content/markdown#lightbox) parameter from `featherlight=false` to `lightbox=false`. Nevertheless you don't need to change anything as the old name will be used as a fallback. - {{% badge style="note" title=" " %}}Change{{% /badge %}} In the effort to comply with WCAG standards, the implementation of the [`expand` shortcode](shortcodes/expand) was changed. While Internet Explorer 11 has issues in displaying it, the functionality still works. diff --git a/exampleSite/content/basics/releasenotes/5/15.en.md b/exampleSite/content/basics/releasenotes/5/15.en.md index 006ce135155..1a6e0cf066d 100644 --- a/exampleSite/content/basics/releasenotes/5/15.en.md +++ b/exampleSite/content/basics/releasenotes/5/15.en.md @@ -26,4 +26,4 @@ weight = -15 Additionally for such a use case, the whitespace between a tab outline and the code is removed if only a single code block is contained. -- {{% badge style="info" icon="plus-circle" title=" " %}}New{{% /badge %}} Besides the _tag_ [taxonomy](cont/taxonomy) the theme now also provides the _category_ taxonomy out of the box and shows them in the content footer of each page. +- {{% badge style="info" icon="plus-circle" title=" " %}}New{{% /badge %}} Besides the _tag_ [taxonomy](content/taxonomy) the theme now also provides the _category_ taxonomy out of the box and shows them in the content footer of each page. diff --git a/exampleSite/content/basics/releasenotes/5/16.en.md b/exampleSite/content/basics/releasenotes/5/16.en.md index 7bb117ff63c..6530949476d 100644 --- a/exampleSite/content/basics/releasenotes/5/16.en.md +++ b/exampleSite/content/basics/releasenotes/5/16.en.md @@ -26,4 +26,4 @@ weight = -16 Additionally the `name` parameter was renamed to `title` but you don't need to change anything yet as the old name will be used as a fallback. Nevertheless you will get deprecation warnings while executing Hugo. -- {{% badge style="info" icon="plus-circle" title=" " %}}New{{% /badge %}} The theme now optionally supports [separate favicons](basics/branding#change-the-favicon) for light & dark mode. +- {{% badge style="info" icon="plus-circle" title=" " %}}New{{% /badge %}} The theme now optionally supports [separate favicons](configuration/branding#change-the-favicon) for light & dark mode. diff --git a/exampleSite/content/basics/releasenotes/5/19.en.md b/exampleSite/content/basics/releasenotes/5/19.en.md index c4c8330e3a0..6a35915c916 100644 --- a/exampleSite/content/basics/releasenotes/5/19.en.md +++ b/exampleSite/content/basics/releasenotes/5/19.en.md @@ -14,7 +14,7 @@ weight = -19 - {{% badge style="info" icon="plus-circle" title=" " %}}New{{% /badge %}} The theme has added two new color variants `zen-light` and `zen-dark`. Check it out! -- {{% badge style="info" icon="plus-circle" title=" " %}}New{{% /badge %}} The theme now [dispatches the custom event](basics/customization#react-to-variant-switches-in-javascript) `themeVariantLoaded` on the `document` when the variant is fully loaded either initially or by switching the variant manually with the variant selector. +- {{% badge style="info" icon="plus-circle" title=" " %}}New{{% /badge %}} The theme now [dispatches the custom event](configuration/customization#react-to-variant-switches-in-javascript) `themeVariantLoaded` on the `document` when the variant is fully loaded either initially or by switching the variant manually with the variant selector. - {{% badge style="info" icon="plus-circle" title=" " %}}New{{% /badge %}} The theme has updated its Mermaid dependency to 10.3.1. This adds support for the [sankey diagram type](shortcodes/mermaid#sankey) and now comes with full support for YAML inside Mermaid graphs (previously, the theme ignored explicit Mermaid theme settings in YAML). diff --git a/exampleSite/content/basics/releasenotes/5/20.en.md b/exampleSite/content/basics/releasenotes/5/20.en.md index 62ffb64ca35..7e62948e305 100644 --- a/exampleSite/content/basics/releasenotes/5/20.en.md +++ b/exampleSite/content/basics/releasenotes/5/20.en.md @@ -33,8 +33,8 @@ weight = -20 For existing variants nothing has changed visually. -- {{% badge style="info" icon="plus-circle" title=" " %}}New{{% /badge %}} The default values for the [image effects](cont/markdown#image-effects) are [now configurable](cont/imageeffects) for your whole site via `hugo.toml` or for each page through frontmatter. +- {{% badge style="info" icon="plus-circle" title=" " %}}New{{% /badge %}} The default values for the [image effects](content/markdown#image-effects) are [now configurable](content/imageeffects) for your whole site via `hugo.toml` or for each page through frontmatter. -- {{% badge style="info" icon="plus-circle" title=" " %}}New{{% /badge %}} This release fixes a long outstanding bug where Mermaid graphs could not be displayed if they were initially hidden - like in collapsed `expand` or inactive `tabs`. +- {{% badge style="info" icon="plus-circle" title=" " %}}New{{% /badge %}} This release fixes a long unresolved bug where Mermaid graphs could not be displayed if they were initially hidden - like in collapsed `expand` or inactive `tabs`. - {{% badge style="info" icon="plus-circle" title=" " %}}New{{% /badge %}} Restored compatibility with Hugo versions lower than {{% badge color="fuchsia" icon="fa-fw fab fa-hackerrank" title=" " %}}0.111.0{{% /badge %}} for the [`highlight` shortcode](shortcodes/highlight). This does not change the minimum required Hugo version. diff --git a/exampleSite/content/basics/releasenotes/5/21.en.md b/exampleSite/content/basics/releasenotes/5/21.en.md index 160bc0923cd..deff59d66a3 100644 --- a/exampleSite/content/basics/releasenotes/5/21.en.md +++ b/exampleSite/content/basics/releasenotes/5/21.en.md @@ -10,10 +10,10 @@ weight = -21 ### Change -- {{% badge style="note" title=" " %}}Change{{% /badge %}} We made changes to the menu footer to improve alignment with the menu items in most cases. Care was taken not to break your existing overwritten footer. Anyways, if you have your `menu-footer.html` [partial overridden](basics/customization#partials), you may want to review the styling (eg. margins/paddings) of your partial. +- {{% badge style="note" title=" " %}}Change{{% /badge %}} We made changes to the menu footer to improve alignment with the menu items in most cases. Care was taken not to break your existing overwritten footer. Anyways, if you have your `menu-footer.html` [partial overridden](configuration/customization#partials), you may want to review the styling (eg. margins/paddings) of your partial. ### New -- {{% badge style="info" icon="plus-circle" title=" " %}}New{{% /badge %}} This release comes with an awesome new feature, that allows you to customize your topbar buttons, change behavior, reorder them or define entirely new ones, unique to your installation. See [the documentation](basics/topbar) for further details. +- {{% badge style="info" icon="plus-circle" title=" " %}}New{{% /badge %}} This release comes with an awesome new feature, that allows you to customize your topbar buttons, change behavior, reorder them or define entirely new ones, unique to your installation. See [the documentation](configuration/topbar) for further details. - {{% badge style="info" icon="plus-circle" title=" " %}}New{{% /badge %}} The theme has updated its Swagger dependency to 5.7.2 for the [`openapi` shortcode](shortcodes/openapi). This brings support for OpenAPI Specification 3.1. diff --git a/exampleSite/content/basics/releasenotes/5/22.en.md b/exampleSite/content/basics/releasenotes/5/22.en.md index 616faf4dc18..e7565c6860b 100644 --- a/exampleSite/content/basics/releasenotes/5/22.en.md +++ b/exampleSite/content/basics/releasenotes/5/22.en.md @@ -16,9 +16,9 @@ weight = -22 - {{% badge style="note" title=" " %}}Change{{% /badge %}} You can now have structural sections in the hierarchical menu without generating a page for it. - This can come in handy, if content for such a section page doesn't make much sense to you. See [the documentation](cont/frontmatter#disable-section-pages) for how to do this. + This can come in handy, if content for such a section page doesn't make much sense to you. See [the documentation](content/frontmatter#disable-section-pages) for how to do this. - This feature may require you to make changes to your existing installation if you are already using _[shortcuts to pages inside of your project](cont/menushortcuts#shortcuts-to-pages-inside-of-your-project)_ with a _headless branch parent_. + This feature may require you to make changes to your existing installation if you are already using _[shortcuts to pages inside of your project](configuration/menushortcuts#shortcuts-to-pages-inside-of-your-project)_ with a _headless branch parent_. In this case it is advised to remove the `title` from the headless branch parent's frontmatter, as it will otherwise appear in your breadcrumbs. diff --git a/exampleSite/content/basics/releasenotes/5/23.en.md b/exampleSite/content/basics/releasenotes/5/23.en.md index b30256076bb..645f3557f9b 100644 --- a/exampleSite/content/basics/releasenotes/5/23.en.md +++ b/exampleSite/content/basics/releasenotes/5/23.en.md @@ -32,15 +32,15 @@ weight = -23 - {{% badge style="info" icon="plus-circle" title=" " %}}New{{% /badge %}} Taxonomy and term pages are now allowed to contain content. This is added inbetween the title and the page list. -- {{% badge style="info" icon="plus-circle" title=" " %}}New{{% /badge %}} It is now possible to print custom taxonomies anywhere in your page. [See the docs](cont/taxonomy#customization). +- {{% badge style="info" icon="plus-circle" title=" " %}}New{{% /badge %}} It is now possible to print custom taxonomies anywhere in your page. [See the docs](content/taxonomy#customization). -- {{% badge style="info" icon="plus-circle" title=" " %}}New{{% /badge %}} It is now possible to adjust the menu width for your whole site. [See the docs](basics/customization#change-the-menu-width). +- {{% badge style="info" icon="plus-circle" title=" " %}}New{{% /badge %}} It is now possible to adjust the menu width for your whole site. [See the docs](configuration/customization#change-the-menu-width). -- {{% badge style="info" icon="plus-circle" title=" " %}}New{{% /badge %}} This release adds social media meta tags for the Open Graph protocol and Twitter Cards to your site. [See the docs](basics/customization#social-media-meta-tags). +- {{% badge style="info" icon="plus-circle" title=" " %}}New{{% /badge %}} This release adds social media meta tags for the Open Graph protocol and Twitter Cards to your site. [See the docs](configuration/customization#social-media-meta-tags). - {{% badge style="info" icon="plus-circle" title=" " %}}New{{% /badge %}} This release comes with additional sort options for the menu and the [`children` shortcode](shortcodes/children). Both will now accept the following values: `weight`, `title`, `linktitle`, `modifieddate`, `expirydate`, `publishdate`, `date`, `length` or `default` (adhering to Hugo's default sort order). -- {{% badge style="info" icon="plus-circle" title=" " %}}New{{% /badge %}} The theme now provides a mechanism to load further JavaScript dependencies defined by you only if it is needed. This comes in handy if you want to add own shortcodes that depend on additional JavaScript code to be loaded. [See the docs](basics/customization#own-shortcodes-with-javascript-dependencies). +- {{% badge style="info" icon="plus-circle" title=" " %}}New{{% /badge %}} The theme now provides a mechanism to load further JavaScript dependencies defined by you only if it is needed. This comes in handy if you want to add own shortcodes that depend on additional JavaScript code to be loaded. [See the docs](configuration/customization#own-shortcodes-with-javascript-dependencies). - {{% badge style="info" icon="plus-circle" title=" " %}}New{{% /badge %}} The theme has updated its Mermaid dependency to 10.6.0. This adds support for the [xychart type](shortcodes/mermaid#xychart). @@ -56,10 +56,10 @@ weight = -23 | link | description | | ---------------------------------- | ------------------------------------------- | - | `[generator](en/basics/generator)` | absolute from your project root (multilang) | - | `[generator](/en/basics/generator)`| absolute from your project root (multilang) | - | `[generator](basics/generator)` | absolute from your current language root | - | `[generator](/basics/generator)` | absolute from your current language root | + | `[generator](en/configuration/generator)` | absolute from your project root (multilang) | + | `[generator](/en/configuration/generator)`| absolute from your project root (multilang) | + | `[generator](configuration/generator)` | absolute from your current language root | + | `[generator](/configuration/generator)` | absolute from your current language root | | `[generator](./../generator)` | relative from the current page | | `[generator](../generator)` | relative from the current page | diff --git a/exampleSite/content/basics/releasenotes/5/24.en.md b/exampleSite/content/basics/releasenotes/5/24.en.md index 40e5b6a38e3..8516f640688 100644 --- a/exampleSite/content/basics/releasenotes/5/24.en.md +++ b/exampleSite/content/basics/releasenotes/5/24.en.md @@ -18,7 +18,7 @@ weight = -24 - {{% badge style="note" title=" " %}}Change{{% /badge %}} The frontmatter option `menuTitle` is now deprecated in favor for Hugo's own `linkTitle`. You don't need to change anything as the old `menuTitle` option is still supported. -- {{% badge style="note" title=" " %}}Change{{% /badge %}} The light themes have a bit more contrast for content text and headings. Also the syntaxhighlighting was changed to the more colorful MonokaiLight. This brings the syntaxhighlighting in sync with the corresponding dark theme variants, which are using Monokai. If you dislike this, you can create your own color variant file as [described here](basics/branding#modify-shipped-variants). +- {{% badge style="note" title=" " %}}Change{{% /badge %}} The light themes have a bit more contrast for content text and headings. Also the syntaxhighlighting was changed to the more colorful MonokaiLight. This brings the syntaxhighlighting in sync with the corresponding dark theme variants, which are using Monokai. If you dislike this, you can create your own color variant file as [described here](configuration/branding#modify-shipped-variants). ### New @@ -28,24 +28,24 @@ weight = -24 Please note that an image link will generate false negatives if the file resides in your `static` directory. -- {{% badge style="info" icon="plus-circle" title=" " %}}New{{% /badge %}} You now can configure additional options for every theme variant in your `hugo.toml`. This allows for optional [advanced functionality](basics/branding#theme-variant-advanced). You don't need to change anything as the old configuration options will still work (but may generate warnings now). +- {{% badge style="info" icon="plus-circle" title=" " %}}New{{% /badge %}} You now can configure additional options for every theme variant in your `hugo.toml`. This allows for optional [advanced functionality](configuration/branding#theme-variant-advanced). You don't need to change anything as the old configuration options will still work (but may generate warnings now). The advanced functionality allows you to set an explicit name for a theme variant and now allows for multiple auto mode variants that adjust to the light/dark preference of your OS settings. -- {{% badge style="info" icon="plus-circle" title=" " %}}New{{% /badge %}} New partial for defining the heading. See [documentation](basics/customization#partials) for further reading. +- {{% badge style="info" icon="plus-circle" title=" " %}}New{{% /badge %}} New partial for defining the heading. See [documentation](configuration/customization#partials) for further reading. - {{% badge style="info" icon="plus-circle" title=" " %}}New{{% /badge %}} Support for Hugo's built-in [`figure` shortcode](https://gohugo.io/content-management/shortcodes/#figure). - {{% badge style="info" icon="plus-circle" title=" " %}}New{{% /badge %}} On taxonomy and term pages you can now use prev/next navigation as within the normal page structure. -- {{% badge style="info" icon="plus-circle" title=" " %}}New{{% /badge %}} In additiion to the existing [menu width customization](basics/customization#change-the-menu-width), it is now also possible to set the width of the menu flyout for small screen sizes with the `--MENU-WIDTH-S` CSS property. +- {{% badge style="info" icon="plus-circle" title=" " %}}New{{% /badge %}} In additiion to the existing [menu width customization](configuration/customization#change-the-menu-width), it is now also possible to set the width of the menu flyout for small screen sizes with the `--MENU-WIDTH-S` CSS property. - {{% badge style="info" icon="plus-circle" title=" " %}}New{{% /badge %}} Improvements for accessibility when tabbing through the page for images, links and tab handles. -- {{% badge style="info" icon="plus-circle" title=" " %}}New{{% /badge %}} The `editURL` config parameter is now [overwritable in your pages frontmatter](cont/frontmatter). In addition it received more versatility by letting you control where to put the file path into the URL. This is achieved by replacing the variable `${FilePath}` in your URL by the pages file path. You don't need to change anything in your existing configuration as the old way without the replacement variable still works. +- {{% badge style="info" icon="plus-circle" title=" " %}}New{{% /badge %}} The `editURL` config parameter is now [overwritable in your pages frontmatter](content/frontmatter). In addition it received more versatility by letting you control where to put the file path into the URL. This is achieved by replacing the variable `${FilePath}` in your URL by the pages file path. You don't need to change anything in your existing configuration as the old way without the replacement variable still works. -- {{% badge style="info" icon="plus-circle" title=" " %}}New{{% /badge %}} The themes [config](basics/configuration) and [frontmatter](cont/frontmatter) options received a comprehensive documentation update. In addition the theme switched from `config.toml` to `hugo.toml`. +- {{% badge style="info" icon="plus-circle" title=" " %}}New{{% /badge %}} The themes [config](configuration/options) and [frontmatter](content/frontmatter) options received a comprehensive documentation update. In addition the theme switched from `config.toml` to `hugo.toml`. - {{% badge style="info" icon="plus-circle" title=" " %}}New{{% /badge %}} Restored compatibility with Hugo versions {{% badge color="fuchsia" icon="fa-fw fab fa-hackerrank" title=" " %}}0.121.0{{% /badge %}} or higher for the [`highlight` shortcode](shortcodes/highlight). This does not change the minimum required Hugo version. -- {{% badge style="info" icon="plus-circle" title=" " %}}New{{% /badge %}} Restored compatibility with Hugo versions {{% badge color="fuchsia" icon="fa-fw fab fa-hackerrank" title=" " %}}0.123.0{{% /badge %}} or higher for theme specific [output formats](basics/customization) and handling of taxonomy and term titles. This does not change the minimum required Hugo version. +- {{% badge style="info" icon="plus-circle" title=" " %}}New{{% /badge %}} Restored compatibility with Hugo versions {{% badge color="fuchsia" icon="fa-fw fab fa-hackerrank" title=" " %}}0.123.0{{% /badge %}} or higher for theme specific [output formats](configuration/customization) and handling of taxonomy and term titles. This does not change the minimum required Hugo version. diff --git a/exampleSite/content/basics/releasenotes/5/26.en.md b/exampleSite/content/basics/releasenotes/5/26.en.md index 1bd192977fe..cbc52e6611f 100644 --- a/exampleSite/content/basics/releasenotes/5/26.en.md +++ b/exampleSite/content/basics/releasenotes/5/26.en.md @@ -10,12 +10,12 @@ weight = -26 ### New -- {{% badge style="info" icon="plus-circle" title=" " %}}New{{% /badge %}} The lazy loading of images is now configurable by using the new `lazy` [image effect](cont/imageeffects). The default value hasn't changed in comparison to older versions, you don't need to change anything. +- {{% badge style="info" icon="plus-circle" title=" " %}}New{{% /badge %}} The lazy loading of images is now configurable by using the new `lazy` [image effect](content/imageeffects). The default value hasn't changed in comparison to older versions, you don't need to change anything. -- {{% badge style="info" icon="plus-circle" title=" " %}}New{{% /badge %}} It is now possible to [adjust the max width of the main area](basics/customization#change-the-main-areas-max-width), eg. in case you want to use the full page width for your content. +- {{% badge style="info" icon="plus-circle" title=" " %}}New{{% /badge %}} It is now possible to [adjust the max width of the main area](configuration/customization#change-the-main-areas-max-width), eg. in case you want to use the full page width for your content. - {{% badge style="info" icon="plus-circle" title=" " %}}New{{% /badge %}} Images and Markdown codefences are now respecting [Hugo's Markdown attributes](https://gohugo.io/content-management/markdown-attributes/). - {{% badge style="info" icon="plus-circle" title=" " %}}New{{% /badge %}} The theme has updated its Mermaid dependency to 10.6.0. This adds support for [block diagrams](shortcodes/mermaid#block-diagram). -- {{% badge style="info" icon="plus-circle" title=" " %}}New{{% /badge %}} This release fixes a long outstanding bug where the page wasn't repositioning correctly when going forward or backward in your browser history. +- {{% badge style="info" icon="plus-circle" title=" " %}}New{{% /badge %}} This release fixes a long unresolved bug where the page wasn't repositioning correctly when going forward or backward in your browser history. diff --git a/exampleSite/content/basics/releasenotes/5/27.en.md b/exampleSite/content/basics/releasenotes/5/27.en.md index 7bcbf2149db..3855b1e4fd3 100644 --- a/exampleSite/content/basics/releasenotes/5/27.en.md +++ b/exampleSite/content/basics/releasenotes/5/27.en.md @@ -16,7 +16,7 @@ weight = -27 - {{% badge style="note" title=" " %}}Change{{% /badge %}} If the theme is configured to generate warnings or errors during build by setting `image.errorlevel` to either `warning` or `error` in your `hugo.toml`, it will now also generate output if a link fragment is not found in the target page. -- {{% badge style="note" title=" " %}}Change{{% /badge %}} The [dependency loader](basics/customization#own-shortcodes-with-javascript-dependencies) was made more versatile. +- {{% badge style="note" title=" " %}}Change{{% /badge %}} The [dependency loader](configuration/customization#own-shortcodes-with-javascript-dependencies) was made more versatile. The configuration in your `hugo.toml` does not require the `location` parameter anymore. If you still use it, the theme will work as before but will generate a warning. So you don't need to change anything, yet. @@ -26,7 +26,7 @@ weight = -27 ### New -- {{% badge style="info" icon="plus-circle" title=" " %}}New{{% /badge %}} Additional styling was added for the native HTML elements `` and ``. To use them you must allow the [usage of HTML](https://gohugo.io/getting-started/configuration-markup/#rendererunsafe) in your `hugo.toml`. The [Markdown documentation](cont/markdown/#standard-and-extensions) was enhanced for this. +- {{% badge style="info" icon="plus-circle" title=" " %}}New{{% /badge %}} Additional styling was added for the native HTML elements `` and ``. To use them you must allow the [usage of HTML](https://gohugo.io/getting-started/configuration-markup/#rendererunsafe) in your `hugo.toml`. The [Markdown documentation](content/markdown/#standard-and-extensions) was enhanced for this. - {{% badge style="info" icon="plus-circle" title=" " %}}New{{% /badge %}} You now can scroll forward and backward through all headings of a page by using ALT 🡑 and ALT 🡓. This also works for the `PRINT` output format. diff --git a/exampleSite/content/basics/releasenotes/5/3.en.md b/exampleSite/content/basics/releasenotes/5/3.en.md index 6f6c11f46b4..65a801723a8 100644 --- a/exampleSite/content/basics/releasenotes/5/3.en.md +++ b/exampleSite/content/basics/releasenotes/5/3.en.md @@ -14,6 +14,6 @@ weight = -3 ### New -- {{% badge style="info" icon="plus-circle" title=" " %}}New{{% /badge %}} [Image formatting](cont/markdown#css-classes) has two new classes to align images to the `left` or `right`. Additionally, the already existing `inline` option is now documented. +- {{% badge style="info" icon="plus-circle" title=" " %}}New{{% /badge %}} [Image formatting](content/markdown#css-classes) has two new classes to align images to the `left` or `right`. Additionally, the already existing `inline` option is now documented. -- {{% badge style="info" icon="plus-circle" title=" " %}}New{{% /badge %}} Printing for the [`swagger` shortcode](shortcodes/openapi) was optimized to expand sections that are usually closed in interactive mode. This requires [print support](basics/customization#activate-print-support) to be configured. +- {{% badge style="info" icon="plus-circle" title=" " %}}New{{% /badge %}} Printing for the [`swagger` shortcode](shortcodes/openapi) was optimized to expand sections that are usually closed in interactive mode. This requires [print support](configuration/customization#activate-print-support) to be configured. diff --git a/exampleSite/content/basics/releasenotes/5/4.en.md b/exampleSite/content/basics/releasenotes/5/4.en.md index d6ef832a534..a7c78d9dce2 100644 --- a/exampleSite/content/basics/releasenotes/5/4.en.md +++ b/exampleSite/content/basics/releasenotes/5/4.en.md @@ -10,7 +10,7 @@ weight = -4 ### Change -- {{% badge style="note" title=" " %}}Change{{% /badge %}} [With the proper settings](basics/customization#file-system) in your `hugo.toml` your page is now servable from the local file system using `file://` URLs. +- {{% badge style="note" title=" " %}}Change{{% /badge %}} [With the proper settings](configuration/customization#file-system) in your `hugo.toml` your page is now servable from the local file system using `file://` URLs. Please note that the searchbox will only work for this if you reconfigure your outputformat for the homepage in your `hugo.toml` from `json` to `search`. The now deprecated `json` outputformat still works as before, so there is no need to reconfigure your installation if it is only served from `http://` or `https://`. diff --git a/exampleSite/content/basics/releasenotes/5/5.en.md b/exampleSite/content/basics/releasenotes/5/5.en.md index 919ce9ab509..03341514a96 100644 --- a/exampleSite/content/basics/releasenotes/5/5.en.md +++ b/exampleSite/content/basics/releasenotes/5/5.en.md @@ -12,7 +12,7 @@ weight = -5 - {{% badge style="note" title=" " %}}Change{{% /badge %}} The way images are processed has changed. Now images are lazy loaded by default which speeds up page load on slow networks and/or big pages and also the print preview. - For that the JavaScript code to handle the [lightbox and image effects](cont/markdown#image-effects) on the client side was removed in favour for static generation of those effects on the server. + For that the JavaScript code to handle the [lightbox and image effects](content/markdown#image-effects) on the client side was removed in favour for static generation of those effects on the server. If you have used HTML directly in your Markdown files, this now has the downside that it doesn't respect the effect query parameter anymore. In this case you have to migrate all your HTML `img` URLs manually to the respective HTML attributes. diff --git a/exampleSite/content/basics/releasenotes/5/6.en.md b/exampleSite/content/basics/releasenotes/5/6.en.md index d0fcf307276..66b40d61013 100644 --- a/exampleSite/content/basics/releasenotes/5/6.en.md +++ b/exampleSite/content/basics/releasenotes/5/6.en.md @@ -12,7 +12,7 @@ weight = -6 - {{% badge style="info" icon="plus-circle" title=" " %}}New{{% /badge %}} This release introduces an additional dedicated search page. On this page, displayed search results have more space making it easier scanning through large number of results. - To activate this feature, you need to [configure it](basics/customization#configure-search) in your `hugo.toml` as a new outputformat `searchpage` for the home page. If you don't configure it, no dedicated search page will be accessible and the theme works as before. + To activate this feature, you need to [configure it](configuration/customization#configure-search) in your `hugo.toml` as a new outputformat `searchpage` for the home page. If you don't configure it, no dedicated search page will be accessible and the theme works as before. You can access the search page by either clicking on the magnifier glass or pressing enter inside of the search box. @@ -24,7 +24,7 @@ weight = -6 - {{% badge style="info" icon="plus-circle" title=" " %}}New{{% /badge %}} You are now able to turn off the generation of generator meta tags in your HTML head to hide the used versions of Hugo and this theme. - To [configure this](basics/configuration) in your `hugo.toml` make sure to set Hugo's `disableHugoGeneratorInject=true` **and** also `[params] disableGeneratorVersion=true`, otherwise Hugo will generate a meta tag into your home page automagically. + To [configure this](configuration/options) in your `hugo.toml` make sure to set Hugo's `disableHugoGeneratorInject=true` **and** also `[params] disableGeneratorVersion=true`, otherwise Hugo will generate a meta tag into your home page automagically. - {{% badge style="info" icon="plus-circle" title=" " %}}New{{% /badge %}} Creation of your project gets a little bit faster with this release. diff --git a/exampleSite/content/basics/releasenotes/5/8.en.md b/exampleSite/content/basics/releasenotes/5/8.en.md index 2d071cda037..10f0d7ef0ca 100644 --- a/exampleSite/content/basics/releasenotes/5/8.en.md +++ b/exampleSite/content/basics/releasenotes/5/8.en.md @@ -14,6 +14,6 @@ weight = -8 - {{% badge style="info" icon="plus-circle" title=" " %}}New{{% /badge %}} The new [`icon` shortcode](shortcodes/icon) simplyfies the usage of icons. This can even be combined with also new `badge` shortcode. -- {{% badge style="info" icon="plus-circle" title=" " %}}New{{% /badge %}} The theme now supports some of GFM (GitHub Flavored Markdown) syntax and Hugo Markdown extensions, namely [task lists](cont/markdown#tasks), [defintion lists](cont/markdown#definitions) and [footnotes](cont/markdown#footnotes). +- {{% badge style="info" icon="plus-circle" title=" " %}}New{{% /badge %}} The theme now supports some of GFM (GitHub Flavored Markdown) syntax and Hugo Markdown extensions, namely [task lists](content/markdown#tasks), [defintion lists](content/markdown#definitions) and [footnotes](content/markdown#footnotes). - {{% badge style="info" icon="plus-circle" title=" " %}}New{{% /badge %}} A new color `--ACCENT-color` was introduced which is used for highlighting search results on the page. In case you simply don't care, you don't need to change anything in your variant stylesheet as the old `yellow` color is still used as default. diff --git a/exampleSite/content/basics/releasenotes/5/9.en.md b/exampleSite/content/basics/releasenotes/5/9.en.md index d2459957ffa..735582f2283 100644 --- a/exampleSite/content/basics/releasenotes/5/9.en.md +++ b/exampleSite/content/basics/releasenotes/5/9.en.md @@ -14,7 +14,7 @@ weight = -9 It was later discovered, that this causes pages only meant to be displayed in the `More` section of the menu and stored directly inside your `content` directory to now show up in the menu as well. - To [get rid](cont/menushortcuts#shortcuts-to-pages-inside-of-your-project) of this undesired behavior you have two choices: + To [get rid](configuration/menushortcuts#shortcuts-to-pages-inside-of-your-project) of this undesired behavior you have two choices: 1. Make the page file a [headless branch bundle](https://gohugo.io/content-management/page-bundles/#headless-bundle) (contained in its own subdirectory and called `_index.md`) and add the following frontmatter configuration to the file (see exampleSite's `content/showcase/_index.en.md`). This causes its content to **not** be ontained in the sitemap. diff --git a/exampleSite/content/basics/releasenotes/6/0.en.md b/exampleSite/content/basics/releasenotes/6/0.en.md index 652d75ab773..0fd51d45539 100644 --- a/exampleSite/content/basics/releasenotes/6/0.en.md +++ b/exampleSite/content/basics/releasenotes/6/0.en.md @@ -30,7 +30,7 @@ weight = -0 - {{% badge style="warning" title=" " %}}Breaking{{% /badge %}} Search support for the `json` outputformat [deprecated in 5.4.0](basics/releasenotes/5/#5-4-0) was removed. - Change it to `search` for the homepage in your `hugo.toml`. See the docs for [detailed configuration](basics/customization#configure-search). + Change it to `search` for the homepage in your `hugo.toml`. See the docs for [detailed configuration](configuration/customization#configure-search). - {{% badge style="warning" title=" " %}}Breaking{{% /badge %}} The frontmatter option `menuTitle` [deprecated in 5.24.0](basics/releasenotes/5/#5-24-0) was removed in favor for Hugo’s own `linkTitle`. diff --git a/exampleSite/content/basics/releasenotes/6/1.en.md b/exampleSite/content/basics/releasenotes/6/1.en.md index 3c8854dca6c..2e2aa4a085d 100644 --- a/exampleSite/content/basics/releasenotes/6/1.en.md +++ b/exampleSite/content/basics/releasenotes/6/1.en.md @@ -18,7 +18,7 @@ weight = -1 - {{% badge style="info" icon="plus-circle" title=" " %}}New{{% /badge %}} The [`openapi` shortcode](shortcodes/openapi) is now able to resolve links to resources as well as to files in the file system (the old behavior). You can configure to generate warnings or errors during build by setting `openapi.errorlevel` to either `warning` or `error` in your `hugo.toml` if a path can not be resolved. -- {{% badge style="info" icon="plus-circle" title=" " %}}New{{% /badge %}} Shortcodes supporting an `errorlevel` configuration can now have overridden values in the [frontmatter](cont/frontmatter/) section of each individual page. +- {{% badge style="info" icon="plus-circle" title=" " %}}New{{% /badge %}} Shortcodes supporting an `errorlevel` configuration can now have overridden values in the [frontmatter](content/frontmatter/) section of each individual page. - {{% badge style="info" icon="plus-circle" title=" " %}}New{{% /badge %}} The theme now comes with its own overridden version of the `relref` shortcode. diff --git a/exampleSite/content/basics/releasenotes/6/2.en.md b/exampleSite/content/basics/releasenotes/6/2.en.md index e902dfc37cc..fa823c9bef2 100644 --- a/exampleSite/content/basics/releasenotes/6/2.en.md +++ b/exampleSite/content/basics/releasenotes/6/2.en.md @@ -14,11 +14,11 @@ weight = -2 If you now click on it, not only is the link copied to the clipboard (previous behavior) but also the heading scrolls to the top of the page. - If you dislike the new behavior, you can deactivate it by setting `disableAnchorScrolling=true` in your `hugo.toml`. See the [docs for further options](basics/customization#change-heading-anchor-behavior). + If you dislike the new behavior, you can deactivate it by setting `disableAnchorScrolling=true` in your `hugo.toml`. See the [docs for further options](configuration/customization#change-heading-anchor-behavior). ### New -- {{% badge style="info" icon="plus-circle" title=" " %}}New{{% /badge %}} If you are running Hugo {{% badge color="fuchsia" icon="fa-fw fab fa-hackerrank" title=" " %}}0.132.0{{% /badge %}} or later, the theme is now capable to print [GitHub styled alerts](cont/markdown#github-styled-alerts). +- {{% badge style="info" icon="plus-circle" title=" " %}}New{{% /badge %}} If you are running Hugo {{% badge color="fuchsia" icon="fa-fw fab fa-hackerrank" title=" " %}}0.132.0{{% /badge %}} or later, the theme is now capable to print [GitHub styled alerts](content/markdown#github-styled-alerts). - {{% badge style="info" icon="plus-circle" title=" " %}}New{{% /badge %}} To support new severity levels for GitHub styled alerts, all shortcodes that support severity levels with their `style` parameter were expanded with the new severities `caution` and `important` and the `color` parameter was expanded with `cyan` and `magenta`. Please note, that coloring and icons of severities may defer from the [display you see on GitHub](https://docs.github.com/en/get-started/writing-on-github/getting-started-with-writing-and-formatting-on-github/basic-writing-and-formatting-syntax#alerts). diff --git a/exampleSite/content/basics/releasenotes/6/3.en.md b/exampleSite/content/basics/releasenotes/6/3.en.md index b0f5489d027..d97725456a9 100644 --- a/exampleSite/content/basics/releasenotes/6/3.en.md +++ b/exampleSite/content/basics/releasenotes/6/3.en.md @@ -18,6 +18,6 @@ weight = -3 - {{% badge style="info" icon="plus-circle" title=" " %}}New{{% /badge %}} The [`notice` shortcode](shortcodes/notice) has a new parameter `expanded` to make the content collapsible. -- {{% badge style="info" icon="plus-circle" title=" " %}}New{{% /badge %}} If you are running Hugo {{% badge color="fuchsia" icon="fa-fw fab fa-hackerrank" title=" " %}}0.134.0{{% /badge %}} or later, the theme now supports [Obsidian styled alerts](cont/markdown#obsidian-styled-alerts). +- {{% badge style="info" icon="plus-circle" title=" " %}}New{{% /badge %}} If you are running Hugo {{% badge color="fuchsia" icon="fa-fw fab fa-hackerrank" title=" " %}}0.134.0{{% /badge %}} or later, the theme now supports [Obsidian styled alerts](content/markdown#obsidian-styled-alerts). - {{% badge style="info" icon="plus-circle" title=" " %}}New{{% /badge %}} The theme has updated its Mermaid dependency to 11.1.0. This adds support for [packet](shortcodes/mermaid#packet) and [architecture](shortcodes/mermaid#architecture) diagrams. diff --git a/exampleSite/content/basics/releasenotes/7/0.en.md b/exampleSite/content/basics/releasenotes/7/0.en.md index 29035c4a2f8..7f9625666ce 100644 --- a/exampleSite/content/basics/releasenotes/7/0.en.md +++ b/exampleSite/content/basics/releasenotes/7/0.en.md @@ -50,4 +50,4 @@ weight = -0 In addition you are now able to overwrite the default file name of the search index and the default page name of the dedicated search page by changing `searchIndexURL` and `searchPageURL` respectively in your `hugo.toml`. - See the [updated documentation](basics/customization#configure-search) for reference. + See the [updated documentation](configuration/customization#configure-search) for reference. diff --git a/exampleSite/content/basics/releasenotes/_index.en.md b/exampleSite/content/basics/releasenotes/_index.en.md index f4a74eecbad..5c2ee48ffa6 100644 --- a/exampleSite/content/basics/releasenotes/_index.en.md +++ b/exampleSite/content/basics/releasenotes/_index.en.md @@ -3,7 +3,7 @@ alwaysopen = false disableToc = false title = "What's New" type = "releasenotes" -weight = 2 +weight = 3 +++ {{% pages showdivider="true" showhidden="true" hidevisible="true" showtitle="true" %}} diff --git a/exampleSite/content/basics/releasenotes/_index.pir.md b/exampleSite/content/basics/releasenotes/_index.pir.md index 4d0f746fc45..7f8cff8d072 100644 --- a/exampleSite/content/basics/releasenotes/_index.pir.md +++ b/exampleSite/content/basics/releasenotes/_index.pir.md @@ -3,6 +3,6 @@ alwaysopen = false disableToc = false title = "What's New" type = "releasenotes" -weight = 2 +weight = 3 +++ {{< piratify true >}} \ No newline at end of file diff --git a/exampleSite/content/basics/requirements/_index.en.md b/exampleSite/content/basics/requirements/_index.en.md index 47f2abd3c7a..fb25b563501 100755 --- a/exampleSite/content/basics/requirements/_index.en.md +++ b/exampleSite/content/basics/requirements/_index.en.md @@ -2,7 +2,7 @@ categories = "basic" disableToc = true title = "Requirements" -weight = 10 +weight = 1 +++ Thanks to the simplicity of Hugo, this page is as empty as this theme needs requirements. diff --git a/exampleSite/content/basics/requirements/_index.pir.md b/exampleSite/content/basics/requirements/_index.pir.md index d4f95082c4c..187b702c326 100644 --- a/exampleSite/content/basics/requirements/_index.pir.md +++ b/exampleSite/content/basics/requirements/_index.pir.md @@ -2,6 +2,6 @@ categories = "basic" disableToc = true title = "Requirrrements" -weight = 10 +weight = 1 +++ {{< piratify >}} \ No newline at end of file diff --git a/exampleSite/content/configuration/_index.en.md b/exampleSite/content/configuration/_index.en.md new file mode 100644 index 00000000000..21d905f73f3 --- /dev/null +++ b/exampleSite/content/configuration/_index.en.md @@ -0,0 +1,7 @@ ++++ +title = "Configuration" +type = "chapter" +weight = 2 ++++ + +Find out how to configure and customize the site to your liking. diff --git a/exampleSite/content/basics/configuration/_index.pir.md b/exampleSite/content/configuration/_index.pir.md similarity index 62% rename from exampleSite/content/basics/configuration/_index.pir.md rename to exampleSite/content/configuration/_index.pir.md index ba52d0fa4bf..a44f3565d08 100644 --- a/exampleSite/content/basics/configuration/_index.pir.md +++ b/exampleSite/content/configuration/_index.pir.md @@ -1,6 +1,6 @@ +++ -tags = ["config"] title = "Configurrrat'n" -weight = 20 +type = "chapter" +weight = 2 +++ {{< piratify >}} \ No newline at end of file diff --git a/exampleSite/content/basics/branding/_index.en.md b/exampleSite/content/configuration/branding/_index.en.md similarity index 99% rename from exampleSite/content/basics/branding/_index.en.md rename to exampleSite/content/configuration/branding/_index.en.md index 363fb4df58d..f5455851ade 100644 --- a/exampleSite/content/basics/branding/_index.en.md +++ b/exampleSite/content/configuration/branding/_index.en.md @@ -1,14 +1,14 @@ +++ categories = ["custom", "theming"] title = "Branding" -weight = 24 +weight = 2 +++ The Relearn theme provides configuration options to change your site's colors, favicon and logo. This allows you to easily align your site visuals to your desired style. Most of these options are exposed through so called color variants. A color variant lets you customize various visual effects of your site like almost any color, used fonts, color schemes of print, syntax highligtning, Mermaid and the OpenAPI shortcode, etc. It contains of a CSS file and optional configuration options in your `hugo.toml`. -The Relearn theme ships with a wide set of different color variants. You can use them as-is, copy them over and use them as a starting point for your customizations or just create completely new variants unique to your site. The [interactive variant generator](basics/generator) may help you with this task. +The Relearn theme ships with a wide set of different color variants. You can use them as-is, copy them over and use them as a starting point for your customizations or just create completely new variants unique to your site. The [interactive variant generator](configuration/generator) may help you with this task. Once configured in your `hugo.toml`, you can select them with the variant selector at the bottom of the menu. diff --git a/exampleSite/content/basics/branding/_index.pir.md b/exampleSite/content/configuration/branding/_index.pir.md similarity index 86% rename from exampleSite/content/basics/branding/_index.pir.md rename to exampleSite/content/configuration/branding/_index.pir.md index 080f96ad0ba..0dc90d1b7b8 100644 --- a/exampleSite/content/basics/branding/_index.pir.md +++ b/exampleSite/content/configuration/branding/_index.pir.md @@ -1,6 +1,6 @@ +++ categories = ["custom", "theming"] title = "Brrrand'n" -weight = 24 +weight = 2 +++ {{< piratify >}} \ No newline at end of file diff --git a/exampleSite/content/basics/customization/_index.en.md b/exampleSite/content/configuration/customization/_index.en.md similarity index 99% rename from exampleSite/content/basics/customization/_index.en.md rename to exampleSite/content/configuration/customization/_index.en.md index 80f7a4154ac..59c7dd511b4 100644 --- a/exampleSite/content/basics/customization/_index.en.md +++ b/exampleSite/content/configuration/customization/_index.en.md @@ -1,6 +1,6 @@ +++ title = "Customization" -weight = 25 +weight = 1 +++ ## Usage scenarios diff --git a/exampleSite/content/basics/customization/_index.pir.md b/exampleSite/content/configuration/customization/_index.pir.md similarity index 79% rename from exampleSite/content/basics/customization/_index.pir.md rename to exampleSite/content/configuration/customization/_index.pir.md index 03cd9daa5bd..c4c0478d7a4 100644 --- a/exampleSite/content/basics/customization/_index.pir.md +++ b/exampleSite/content/configuration/customization/_index.pir.md @@ -1,5 +1,5 @@ +++ title = "Customizat'n" -weight = 25 +weight = 1 +++ {{< piratify >}} \ No newline at end of file diff --git a/exampleSite/content/basics/customization/home_button_defaults.png b/exampleSite/content/configuration/customization/home_button_defaults.png similarity index 100% rename from exampleSite/content/basics/customization/home_button_defaults.png rename to exampleSite/content/configuration/customization/home_button_defaults.png diff --git a/exampleSite/content/basics/generator/_index.en.md b/exampleSite/content/configuration/generator/_index.en.md similarity index 95% rename from exampleSite/content/basics/generator/_index.en.md rename to exampleSite/content/configuration/generator/_index.en.md index be33d1c36a3..a4107f7bf9b 100644 --- a/exampleSite/content/basics/generator/_index.en.md +++ b/exampleSite/content/configuration/generator/_index.en.md @@ -1,8 +1,8 @@ +++ categories = "theming" disableMermaid = false -title = "Stylesheet generator" -weight = 26 +title = "Stylesheet Generator" +weight = 6 +++ This interactive tool may help you to generate your own color variant stylesheet. @@ -22,7 +22,7 @@ Once you are satisfied, you can download the new variants file and copy it into Eg. if your new variants file is named `theme-my-custom-variant.css`, you have to set `themeVariant='my-custom-variant'` to use it. -See the docs for [further configuration options](basics/branding) +See the docs for [further configuration options](configuration/branding) {{% /expand %}} {{% button style="secondary" icon="download" href="javascript:window.variants&&variants.getStylesheet();this.blur();" %}}Download variant{{% /button %}} diff --git a/exampleSite/content/basics/generator/_index.pir.md b/exampleSite/content/configuration/generator/_index.pir.md similarity index 51% rename from exampleSite/content/basics/generator/_index.pir.md rename to exampleSite/content/configuration/generator/_index.pir.md index 803d6ed97ce..77722c95812 100644 --- a/exampleSite/content/basics/generator/_index.pir.md +++ b/exampleSite/content/configuration/generator/_index.pir.md @@ -1,6 +1,6 @@ +++ categories = "theming" -title = "Stylesheet generrrat'r" -weight = 26 +title = "Stylesheet Generrrat'r" +weight = 6 +++ {{< piratify >}} \ No newline at end of file diff --git a/exampleSite/content/cont/i18n/_index.en.md b/exampleSite/content/configuration/i18n/_index.en.md similarity index 99% rename from exampleSite/content/cont/i18n/_index.en.md rename to exampleSite/content/configuration/i18n/_index.en.md index 6aef25cc0c0..a1ffd2d96f9 100644 --- a/exampleSite/content/cont/i18n/_index.en.md +++ b/exampleSite/content/configuration/i18n/_index.en.md @@ -1,7 +1,7 @@ +++ linktitle = "Multilingual" title = "Multilingual and i18n" -weight = 7 +weight = 4 +++ The Relearn theme is fully compatible with Hugo multilingual mode. diff --git a/exampleSite/content/cont/i18n/_index.pir.md b/exampleSite/content/configuration/i18n/_index.pir.md similarity index 88% rename from exampleSite/content/cont/i18n/_index.pir.md rename to exampleSite/content/configuration/i18n/_index.pir.md index 4f9b5aac605..343e4e69c19 100644 --- a/exampleSite/content/cont/i18n/_index.pir.md +++ b/exampleSite/content/configuration/i18n/_index.pir.md @@ -1,6 +1,6 @@ +++ linktitle = "Multilingual" title = "Multilingual an' i18n" -weight = 7 +weight = 4 +++ {{< piratify >}} \ No newline at end of file diff --git a/exampleSite/content/cont/i18n/i18n-menu.gif b/exampleSite/content/configuration/i18n/i18n-menu.gif similarity index 100% rename from exampleSite/content/cont/i18n/i18n-menu.gif rename to exampleSite/content/configuration/i18n/i18n-menu.gif diff --git a/exampleSite/content/cont/menushortcuts.en.md b/exampleSite/content/configuration/menushortcuts.en.md similarity index 99% rename from exampleSite/content/cont/menushortcuts.en.md rename to exampleSite/content/configuration/menushortcuts.en.md index 3c350c1e9ac..05c43fdba34 100644 --- a/exampleSite/content/cont/menushortcuts.en.md +++ b/exampleSite/content/configuration/menushortcuts.en.md @@ -1,6 +1,6 @@ +++ -title = "Menu extra shortcuts" -weight = 6 +title = "Menu Shortcuts" +weight = 5 +++ You can define additional menu entries or shortcuts in the navigation menu without any link to content. diff --git a/exampleSite/content/configuration/menushortcuts.pir.md b/exampleSite/content/configuration/menushortcuts.pir.md new file mode 100644 index 00000000000..88d4d0d58d0 --- /dev/null +++ b/exampleSite/content/configuration/menushortcuts.pir.md @@ -0,0 +1,5 @@ ++++ +title = "Menu Shorrrtcuts" +weight = 5 ++++ +{{< piratify >}} \ No newline at end of file diff --git a/exampleSite/content/basics/configuration/_index.en.md b/exampleSite/content/configuration/options/_index.en.md similarity index 94% rename from exampleSite/content/basics/configuration/_index.en.md rename to exampleSite/content/configuration/options/_index.en.md index b72bea7d818..b22f5d7aa30 100644 --- a/exampleSite/content/basics/configuration/_index.en.md +++ b/exampleSite/content/configuration/options/_index.en.md @@ -1,7 +1,7 @@ +++ tags = ["config"] -title = "Configuration" -weight = 20 +title = "Options Reference" +weight = 7 +++ On top of [Hugo's global configuration options](https://gohugo.io/overview/configuration/), the Relearn theme lets you define further options unique to the theme in your `hugo.toml`. diff --git a/exampleSite/content/configuration/options/_index.pir.md b/exampleSite/content/configuration/options/_index.pir.md new file mode 100644 index 00000000000..7be7e2bfa43 --- /dev/null +++ b/exampleSite/content/configuration/options/_index.pir.md @@ -0,0 +1,6 @@ ++++ +tags = ["config"] +title = "Options Reference" +weight = 7 ++++ +{{< piratify >}} \ No newline at end of file diff --git a/exampleSite/content/basics/topbar/_index.en.md b/exampleSite/content/configuration/topbar/_index.en.md similarity index 98% rename from exampleSite/content/basics/topbar/_index.en.md rename to exampleSite/content/configuration/topbar/_index.en.md index d548867653c..b8c7c08330d 100644 --- a/exampleSite/content/basics/topbar/_index.en.md +++ b/exampleSite/content/configuration/topbar/_index.en.md @@ -1,6 +1,6 @@ +++ title = "Topbar Modification" -weight = 27 +weight = 3 +++ The theme comes with a reasonably configured topbar. @@ -31,8 +31,8 @@ The theme ships with the following predefined buttons (from left to right in the - {{% button style="transparent" icon="bars" %}}{{% /button %}} [**sidebar**](https://github.com/McShelby/hugo-theme-relearn/blob/main/layouts/partials/topbar/button/sidebar.html): opens the sidebar flyout if in mobile layout - {{% button style="transparent" icon="list-alt" %}}{{% /button %}} [**toc**](https://github.com/McShelby/hugo-theme-relearn/blob/main/layouts/partials/topbar/button/toc.html): opens the table of contents in an overlay -- {{% button style="transparent" icon="pen" %}}{{% /button %}} [**edit**](https://github.com/McShelby/hugo-theme-relearn/blob/main/layouts/partials/topbar/button/edit.html): browses to the editable page if the `editURL` [parameter is set](basics/configuration) -- {{% button style="transparent" icon="print" %}}{{% /button %}} [**print**](https://github.com/McShelby/hugo-theme-relearn/blob/main/layouts/partials/topbar/button/print.html): browses to the chapters printable page if [print support](basics/customization#activate-print-support) was activated +- {{% button style="transparent" icon="pen" %}}{{% /button %}} [**edit**](https://github.com/McShelby/hugo-theme-relearn/blob/main/layouts/partials/topbar/button/edit.html): browses to the editable page if the `editURL` [parameter is set](configuration/options) +- {{% button style="transparent" icon="print" %}}{{% /button %}} [**print**](https://github.com/McShelby/hugo-theme-relearn/blob/main/layouts/partials/topbar/button/print.html): browses to the chapters printable page if [print support](configuration/customization#activate-print-support) was activated - {{% button style="transparent" icon="chevron-left" %}}{{% /button %}} [**prev**](https://github.com/McShelby/hugo-theme-relearn/blob/main/layouts/partials/topbar/button/prev.html): browses to the previous page if there is one - {{% button style="transparent" icon="chevron-right" %}}{{% /button %}} [**next**](https://github.com/McShelby/hugo-theme-relearn/blob/main/layouts/partials/topbar/button/next.html): browses to the next page if there is one - {{% button style="transparent" icon="ellipsis-v" %}}{{% /button %}} [**more**](https://github.com/McShelby/hugo-theme-relearn/blob/main/layouts/partials/topbar/button/more.html): opens the overlay for the _more_ area diff --git a/exampleSite/content/basics/topbar/_index.pir.md b/exampleSite/content/configuration/topbar/_index.pir.md similarity index 82% rename from exampleSite/content/basics/topbar/_index.pir.md rename to exampleSite/content/configuration/topbar/_index.pir.md index 048fedf7f53..703715f6878 100644 --- a/exampleSite/content/basics/topbar/_index.pir.md +++ b/exampleSite/content/configuration/topbar/_index.pir.md @@ -1,5 +1,5 @@ +++ title = "Topbarrr Modificat'n" -weight = 27 +weight = 3 +++ {{< piratify >}} \ No newline at end of file diff --git a/exampleSite/content/basics/topbar/topbar-areas.png b/exampleSite/content/configuration/topbar/topbar-areas.png similarity index 100% rename from exampleSite/content/basics/topbar/topbar-areas.png rename to exampleSite/content/configuration/topbar/topbar-areas.png diff --git a/exampleSite/content/basics/topbar/topbar-closed.png b/exampleSite/content/configuration/topbar/topbar-closed.png similarity index 100% rename from exampleSite/content/basics/topbar/topbar-closed.png rename to exampleSite/content/configuration/topbar/topbar-closed.png diff --git a/exampleSite/content/cont/_index.en.md b/exampleSite/content/cont/_index.en.md deleted file mode 100755 index 59f1e928bd2..00000000000 --- a/exampleSite/content/cont/_index.en.md +++ /dev/null @@ -1,7 +0,0 @@ -+++ -title = "Content" -type = "chapter" -weight = 2 -+++ - -Find out how to create and organize your content quickly and intuitively. diff --git a/exampleSite/content/cont/archetypes/_index.pir.md b/exampleSite/content/cont/archetypes/_index.pir.md deleted file mode 100644 index aad9a67c998..00000000000 --- a/exampleSite/content/cont/archetypes/_index.pir.md +++ /dev/null @@ -1,5 +0,0 @@ -+++ -title = "Arrrchetypes" -weight = 3 -+++ -{{< piratify >}} \ No newline at end of file diff --git a/exampleSite/content/content/_index.en.md b/exampleSite/content/content/_index.en.md new file mode 100644 index 00000000000..8d6ba39df99 --- /dev/null +++ b/exampleSite/content/content/_index.en.md @@ -0,0 +1,7 @@ ++++ +title = "Content" +type = "chapter" +weight = 3 ++++ + +Find out how to create and organize your pages quickly and intuitively. diff --git a/exampleSite/content/cont/_index.pir.md b/exampleSite/content/content/_index.pir.md similarity index 84% rename from exampleSite/content/cont/_index.pir.md rename to exampleSite/content/content/_index.pir.md index 3846243d461..70a2b5809e7 100644 --- a/exampleSite/content/cont/_index.pir.md +++ b/exampleSite/content/content/_index.pir.md @@ -1,6 +1,6 @@ +++ title = "Rambl'n" type = "chapter" -weight = 2 +weight = 3 +++ {{< piratify >}} \ No newline at end of file diff --git a/exampleSite/content/cont/frontmatter/_index.en.md b/exampleSite/content/content/frontmatter/_index.en.md similarity index 98% rename from exampleSite/content/cont/frontmatter/_index.en.md rename to exampleSite/content/content/frontmatter/_index.en.md index 0f0f56d5304..376ba347565 100644 --- a/exampleSite/content/cont/frontmatter/_index.en.md +++ b/exampleSite/content/content/frontmatter/_index.en.md @@ -1,6 +1,6 @@ +++ -title = "Frontmatter" -weight = 2 +title = "Frontmatter Reference" +weight = 6 +++ Each Hugo page **has to define** a [frontmatter](https://gohugo.io/content/front-matter/). diff --git a/exampleSite/content/cont/menushortcuts.pir.md b/exampleSite/content/content/frontmatter/_index.pir.md similarity index 50% rename from exampleSite/content/cont/menushortcuts.pir.md rename to exampleSite/content/content/frontmatter/_index.pir.md index 7ef5db3d126..fe8b6cb5a65 100644 --- a/exampleSite/content/cont/menushortcuts.pir.md +++ b/exampleSite/content/content/frontmatter/_index.pir.md @@ -1,5 +1,5 @@ +++ -title = "Menu extrrra shorrrtcuts" +title = "Frrrontmatter Reference" weight = 6 +++ {{< piratify >}} \ No newline at end of file diff --git a/exampleSite/content/cont/frontmatter/frontmatter-icon.png b/exampleSite/content/content/frontmatter/frontmatter-icon.png similarity index 100% rename from exampleSite/content/cont/frontmatter/frontmatter-icon.png rename to exampleSite/content/content/frontmatter/frontmatter-icon.png diff --git a/exampleSite/content/cont/frontmatter/frontmatter.toml b/exampleSite/content/content/frontmatter/frontmatter.toml similarity index 100% rename from exampleSite/content/cont/frontmatter/frontmatter.toml rename to exampleSite/content/content/frontmatter/frontmatter.toml diff --git a/exampleSite/content/cont/imageeffects.en.md b/exampleSite/content/content/imageeffects.en.md similarity index 89% rename from exampleSite/content/cont/imageeffects.en.md rename to exampleSite/content/content/imageeffects.en.md index 2905c3b64ac..7a664e6eed2 100644 --- a/exampleSite/content/cont/imageeffects.en.md +++ b/exampleSite/content/content/imageeffects.en.md @@ -1,9 +1,9 @@ +++ title = "Image Effects" -weight = 5 +weight = 4 +++ -The theme supports non-standard [image effects](cont/markdown#image-effects). +The theme supports non-standard [image effects](content/markdown#image-effects). | Name | Description | | -------- | ----------------------------------------------------------------- | @@ -12,7 +12,7 @@ The theme supports non-standard [image effects](cont/markdown#image-effects). | lightbox | The image will be clickable to show it enlarged | | shadow | Draws a shadow around the image to make it appear hovered/glowing | -As [described](cont/markdown#image-effects), you can add this to the URL query parameter, but this may be cumbersome to be done consistently for the whole page. +As [described](content/markdown#image-effects), you can add this to the URL query parameter, but this may be cumbersome to be done consistently for the whole page. Instead, you can configure the defaults in your `hugo.toml` as well as overriding these default in the pages frontmatter. diff --git a/exampleSite/content/cont/imageeffects.pir.md b/exampleSite/content/content/imageeffects.pir.md similarity index 81% rename from exampleSite/content/cont/imageeffects.pir.md rename to exampleSite/content/content/imageeffects.pir.md index 56ced452d48..a824ed00ed2 100644 --- a/exampleSite/content/cont/imageeffects.pir.md +++ b/exampleSite/content/content/imageeffects.pir.md @@ -1,5 +1,5 @@ +++ title = "Image Effects" -weight = 5 +weight = 4 +++ {{< piratify >}} \ No newline at end of file diff --git a/exampleSite/content/cont/archetypes/_index.en.md b/exampleSite/content/content/layouts/_index.en.md similarity index 96% rename from exampleSite/content/cont/archetypes/_index.en.md rename to exampleSite/content/content/layouts/_index.en.md index f61c96b62d3..dbc8fb59da6 100644 --- a/exampleSite/content/cont/archetypes/_index.en.md +++ b/exampleSite/content/content/layouts/_index.en.md @@ -1,9 +1,9 @@ +++ -title = "Archetypes" -weight = 3 +title = "Layouts" +weight = 2 +++ -Using the command: `hugo new [relative new content path]`, you can start a content file with the date and title automatically set. While this is a welcome feature, active writers need more: [archetypes](https://gohugo.io/content/archetypes/). These are preconfigured skeleton pages with default frontmatter. +Using the command: `hugo new [relative new content path]`, you can start a content file with the date and title automatically set. While this is a welcome feature, active writers need more: [archetypes](https://gohugo.io/content/layouts/). These are preconfigured skeleton pages with default frontmatter. The Relearn theme defines some few archetypes of pages but you are free to define new ones to your liking. All can be used at any level of the documentation, the only difference being the layout of the content. diff --git a/exampleSite/content/cont/frontmatter/_index.pir.md b/exampleSite/content/content/layouts/_index.pir.md similarity index 59% rename from exampleSite/content/cont/frontmatter/_index.pir.md rename to exampleSite/content/content/layouts/_index.pir.md index 1e6bf23a62f..7f0d9f74194 100644 --- a/exampleSite/content/cont/frontmatter/_index.pir.md +++ b/exampleSite/content/content/layouts/_index.pir.md @@ -1,5 +1,5 @@ +++ -title = "Frrrontmatter" +title = "Layouts" weight = 2 +++ {{< piratify >}} \ No newline at end of file diff --git a/exampleSite/content/cont/archetypes/pages-chapter.png b/exampleSite/content/content/layouts/pages-chapter.png similarity index 100% rename from exampleSite/content/cont/archetypes/pages-chapter.png rename to exampleSite/content/content/layouts/pages-chapter.png diff --git a/exampleSite/content/cont/archetypes/pages-default.png b/exampleSite/content/content/layouts/pages-default.png similarity index 100% rename from exampleSite/content/cont/archetypes/pages-default.png rename to exampleSite/content/content/layouts/pages-default.png diff --git a/exampleSite/content/cont/archetypes/pages-home.png b/exampleSite/content/content/layouts/pages-home.png similarity index 100% rename from exampleSite/content/cont/archetypes/pages-home.png rename to exampleSite/content/content/layouts/pages-home.png diff --git a/exampleSite/content/cont/markdown.en.md b/exampleSite/content/content/markdown.en.md similarity index 99% rename from exampleSite/content/cont/markdown.en.md rename to exampleSite/content/content/markdown.en.md index 9cfc6213d21..bdb7bec263b 100644 --- a/exampleSite/content/cont/markdown.en.md +++ b/exampleSite/content/content/markdown.en.md @@ -1,7 +1,7 @@ +++ tags = ["Content"] title = "Markdown Syntax" -weight = 4 +weight = 3 +++ Let's face it: Writing content for the web is tiresome. WYSIWYG editors help alleviate this task, but they generally result in horrible code, or worse yet, ugly web pages. @@ -722,7 +722,7 @@ Images can also be linked by reference ID to later define the URL location. This ### Image Effects -{{% badge color="#7dc903" icon="fa-fw fas fa-puzzle-piece" %}}Relearn{{% /badge %}} This theme allows additional non-standard formatting by setting query parameter at the end of the image URL. The default [behavior is configurable](cont/imageeffects) through your `hugo.toml` or frontmatter parameter. +{{% badge color="#7dc903" icon="fa-fw fas fa-puzzle-piece" %}}Relearn{{% /badge %}} This theme allows additional non-standard formatting by setting query parameter at the end of the image URL. The default [behavior is configurable](content/imageeffects) through your `hugo.toml` or frontmatter parameter. #### Resizing diff --git a/exampleSite/content/cont/markdown.pir.md b/exampleSite/content/content/markdown.pir.md similarity index 53% rename from exampleSite/content/cont/markdown.pir.md rename to exampleSite/content/content/markdown.pir.md index 1d63aa720e0..57efaccfc2e 100644 --- a/exampleSite/content/cont/markdown.pir.md +++ b/exampleSite/content/content/markdown.pir.md @@ -1,6 +1,6 @@ +++ tags = ["Content"] -title = "Marrrkdown rules" -weight = 4 +title = "Marrrkdown Rules" +weight = 3 +++ {{< piratify >}} \ No newline at end of file diff --git a/exampleSite/content/cont/pages/index.en.md b/exampleSite/content/content/organization/index.en.md similarity index 96% rename from exampleSite/content/cont/pages/index.en.md rename to exampleSite/content/content/organization/index.en.md index 44f01b4ed82..1b6c08c1719 100644 --- a/exampleSite/content/cont/pages/index.en.md +++ b/exampleSite/content/content/organization/index.en.md @@ -1,5 +1,5 @@ +++ -title = "Pages organization" +title = "Page Organization" weight = 1 +++ @@ -49,4 +49,4 @@ Hugo provides a `new` command to create a new website. hugo new site ```` -The Relearn theme provides [archetypes](cont/archetypes) to help you create this kind of pages. +The Relearn theme provides [archetypes](content/layouts) to help you create this kind of pages. diff --git a/exampleSite/content/cont/pages/index.pir.md b/exampleSite/content/content/organization/index.pir.md similarity index 53% rename from exampleSite/content/cont/pages/index.pir.md rename to exampleSite/content/content/organization/index.pir.md index 098df52a66d..47c6ae7d8de 100644 --- a/exampleSite/content/cont/pages/index.pir.md +++ b/exampleSite/content/content/organization/index.pir.md @@ -1,5 +1,5 @@ +++ -title = "planks orrrganizat'n" +title = "Plank Orrrganizat'n" weight = 1 +++ {{< piratify >}} \ No newline at end of file diff --git a/exampleSite/content/cont/taxonomy.en.md b/exampleSite/content/content/taxonomy.en.md similarity index 99% rename from exampleSite/content/cont/taxonomy.en.md rename to exampleSite/content/content/taxonomy.en.md index 759727417f6..aea28542683 100644 --- a/exampleSite/content/cont/taxonomy.en.md +++ b/exampleSite/content/content/taxonomy.en.md @@ -2,7 +2,7 @@ categories = ["taxonomy", "content"] tags = "tutorial" title = "Taxonomy" -weight = 8 +weight = 5 +++ The Relearn theme supports Hugo's default taxonomies _tag_ and _category_ out of the box. diff --git a/exampleSite/content/cont/taxonomy.pir.md b/exampleSite/content/content/taxonomy.pir.md similarity index 90% rename from exampleSite/content/cont/taxonomy.pir.md rename to exampleSite/content/content/taxonomy.pir.md index 91b305467f2..97447d293b1 100644 --- a/exampleSite/content/cont/taxonomy.pir.md +++ b/exampleSite/content/content/taxonomy.pir.md @@ -2,6 +2,6 @@ categories = ["taxonomy", "content"] tags = "tutorrrial" title = "Taxonomy" -weight = 8 +weight = 5 +++ {{< piratify >}} \ No newline at end of file diff --git a/exampleSite/content/dev/_index.en.md b/exampleSite/content/dev/_index.en.md index b59b3f543e5..a32a2604d30 100644 --- a/exampleSite/content/dev/_index.en.md +++ b/exampleSite/content/dev/_index.en.md @@ -2,7 +2,7 @@ hidden = true title = "Development" type = "chapter" -weight = 4 +weight = 5 +++ This chapter contains information only needed for development and maintaining the theme. diff --git a/exampleSite/content/dev/_index.pir.md b/exampleSite/content/dev/_index.pir.md index 980eb81bd2d..a5eaaaa44b4 100644 --- a/exampleSite/content/dev/_index.pir.md +++ b/exampleSite/content/dev/_index.pir.md @@ -2,6 +2,6 @@ hidden = true title = "Development" type = "chapter" -weight = 4 +weight = 5 +++ {{< piratify >}} \ No newline at end of file diff --git a/exampleSite/content/shortcodes/_index.en.md b/exampleSite/content/shortcodes/_index.en.md index c8c191a0d0f..62708f7180a 100644 --- a/exampleSite/content/shortcodes/_index.en.md +++ b/exampleSite/content/shortcodes/_index.en.md @@ -2,7 +2,7 @@ ordersectionsby = "title" title = "Shortcodes" type = "chapter" -weight = 3 +weight = 4 +++ Hugo uses Markdown for its simple content format. However, there are a lot of things that Markdown doesn’t support well. You could use pure HTML to expand possibilities. diff --git a/exampleSite/content/shortcodes/_index.pir.md b/exampleSite/content/shortcodes/_index.pir.md index 90f3c89184f..aaf9fe4d6de 100644 --- a/exampleSite/content/shortcodes/_index.pir.md +++ b/exampleSite/content/shortcodes/_index.pir.md @@ -2,6 +2,6 @@ ordersectionsby = "title" title = "Shorrrtcodes" type = "chapter" -weight = 3 +weight = 4 +++ {{< piratify >}} \ No newline at end of file diff --git a/exampleSite/content/shortcodes/children/_index.en.md b/exampleSite/content/shortcodes/children/_index.en.md index 020a2cce182..a8069948c9a 100644 --- a/exampleSite/content/shortcodes/children/_index.en.md +++ b/exampleSite/content/shortcodes/children/_index.en.md @@ -41,7 +41,7 @@ While the examples are using shortcodes with named parameter you are free to als | **showhidden** | `false` | When `true`, child pages hidden from the menu will be displayed as well. | | **description** | `false` | When `true` shows a short text under each page in the list. When no description or summary exists for the page, the first 70 words of the content is taken - [read more info about summaries on gohugo.io](https://gohugo.io/content/summaries/). | | **depth** | `1` | The depth of descendants to display. For example, if the value is `2`, the shortcode will display two levels of child pages. To get all descendants, set this value to a high number eg. `999`. | -| **sort** | `auto` | The sort criteria of the displayed list.

- `auto` defaults to [`ordersectionsby` of the pages frontmatter](cont/frontmatter)
    or to [`ordersectionsby` of the site configuration](basics/configuration)
    or to `weight`
- `weight`
- `title`
- `linktitle`
- `modifieddate`
- `expirydate`
- `publishdate`
- `date`
- `length`
- `default` adhering to Hugo's default sort criteria| +| **sort** | `auto` | The sort criteria of the displayed list.

- `auto` defaults to [`ordersectionsby` of the pages frontmatter](content/frontmatter)
    or to [`ordersectionsby` of the site configuration](configuration/options)
    or to `weight`
- `weight`
- `title`
- `linktitle`
- `modifieddate`
- `expirydate`
- `publishdate`
- `date`
- `length`
- `default` adhering to Hugo's default sort criteria| ## Examples diff --git a/exampleSite/content/shortcodes/highlight.en.md b/exampleSite/content/shortcodes/highlight.en.md index 214defb10eb..49c2d534a92 100644 --- a/exampleSite/content/shortcodes/highlight.en.md +++ b/exampleSite/content/shortcodes/highlight.en.md @@ -94,7 +94,7 @@ Default values for extension options can be set via params settings in your `hug ### Global Configuration File -You can configure the color style used for code blocks in your [color variants stylesheet](basics/branding#syntax-highlighting) file. +You can configure the color style used for code blocks in your [color variants stylesheet](configuration/branding#syntax-highlighting) file. #### Recommended Settings diff --git a/exampleSite/content/shortcodes/icon.en.md b/exampleSite/content/shortcodes/icon.en.md index 06411955a9c..82c66ce6345 100644 --- a/exampleSite/content/shortcodes/icon.en.md +++ b/exampleSite/content/shortcodes/icon.en.md @@ -1,5 +1,5 @@ +++ -aliases = "/cont/icons" +aliases = "/content/icons" description = "Nice icons for your page" title = "Icon" +++ diff --git a/exampleSite/content/shortcodes/icon.pir.md b/exampleSite/content/shortcodes/icon.pir.md index 168ac7a470e..0985460a58a 100644 --- a/exampleSite/content/shortcodes/icon.pir.md +++ b/exampleSite/content/shortcodes/icon.pir.md @@ -1,5 +1,5 @@ +++ -aliases = "/pir/cont/icons" +aliases = "/pir/content/icons" description = "Nice ay'cons fer yer plank" title = "Icon" +++ diff --git a/exampleSite/content/shortcodes/notice.en.md b/exampleSite/content/shortcodes/notice.en.md index ecc4cc995b0..c8933f33e31 100644 --- a/exampleSite/content/shortcodes/notice.en.md +++ b/exampleSite/content/shortcodes/notice.en.md @@ -11,7 +11,7 @@ It is all about the boxes. ## Usage -While the examples are using shortcodes with named parameter you are free to use positional as well, use it as [GitHub](/cont/markdown#github-styled-alerts) or [Obsidian](/cont/markdown#obsidian-styled-alerts) styled alerts and also call this shortcode from your own partials. +While the examples are using shortcodes with named parameter you are free to use positional as well, use it as [GitHub](/content/markdown#github-styled-alerts) or [Obsidian](/content/markdown#obsidian-styled-alerts) styled alerts and also call this shortcode from your own partials. {{< tabs groupid="shortcode-parameter">}} {{% tab title="markdown" %}} diff --git a/exampleSite/content/shortcodes/openapi/_index.en.md b/exampleSite/content/shortcodes/openapi/_index.en.md index 8d91957a028..9cffe713415 100644 --- a/exampleSite/content/shortcodes/openapi/_index.en.md +++ b/exampleSite/content/shortcodes/openapi/_index.en.md @@ -39,7 +39,7 @@ While the examples are using shortcodes with named parameter you are free to als {{% notice note %}} If you want to print out (or generate a PDF) from your OpenAPI documentation, don't initiate printing directly from the page because the elements are optimized for interactive usage in a browser. -Instead, open the [print preview](basics/customization#activate-print-support) in your browser and initiate printing from that page. This page is optimized for reading and expands most of the available sections. +Instead, open the [print preview](configuration/customization#activate-print-support) in your browser and initiate printing from that page. This page is optimized for reading and expands most of the available sections. {{% /notice %}} ## Example