From 065d27f8a2eb3def33f9324be3f658fdbed52204 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6ren=20Weber?= Date: Thu, 22 Feb 2024 20:15:34 +0100 Subject: [PATCH] docs: even more piratify fixes using Hugo 0.123.0 --- exampleSite/content/_index.en.md | 2 +- exampleSite/content/basics/topbar/_index.en.md | 4 ++-- exampleSite/content/dev/screenshots/_index.en.md | 4 ++-- exampleSite/layouts/partials/shortcodes/piratify.html | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/exampleSite/content/_index.en.md b/exampleSite/content/_index.en.md index b7d50ab09d..db11233e9c 100644 --- a/exampleSite/content/_index.en.md +++ b/exampleSite/content/_index.en.md @@ -7,7 +7,7 @@ A theme for [Hugo](https://gohugo.io/) designed for documentation. [★ What's new in the latest release ★](basics/migration) -![Image of the Relearn theme in light and dark mode on phone, tablet and desktop](/images/hero.png?width=100%&height=100%) +![Image of the Relearn theme in light and dark mode on phone, tablet and desktop](images/hero.png?width=100%&height=100%) ## Motivation diff --git a/exampleSite/content/basics/topbar/_index.en.md b/exampleSite/content/basics/topbar/_index.en.md index c0de913c34..f10b5bc43d 100644 --- a/exampleSite/content/basics/topbar/_index.en.md +++ b/exampleSite/content/basics/topbar/_index.en.md @@ -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](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="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/dev/screenshots/_index.en.md b/exampleSite/content/dev/screenshots/_index.en.md index 31444900cd..37ab3e7145 100644 --- a/exampleSite/content/dev/screenshots/_index.en.md +++ b/exampleSite/content/dev/screenshots/_index.en.md @@ -31,7 +31,7 @@ The content should be: - Hugo Themes info: https://themes.gohugo.io/themes/hugo-theme-relearn/ _1000 x 1500 @ 1_ -**Page URL**: [Screenshot Link](/shortcodes/notice) +**Page URL**: [Screenshot Link](shortcodes/notice) **Creation**: @@ -63,7 +63,7 @@ The content should be: - GitHub project site: https://github.com/McShelby/hugo-theme-relearn _1280 x 640_ - GitHub social media preview: https://github.com/McShelby/hugo-theme-relearn/settings _1280 x 640_ -**Page URL**: [Hero Image Link](/shortcodes/notice) +**Page URL**: [Hero Image Link](shortcodes/notice) **Creation**: diff --git a/exampleSite/layouts/partials/shortcodes/piratify.html b/exampleSite/layouts/partials/shortcodes/piratify.html index 67780e95ce..3a6771cc92 100644 --- a/exampleSite/layouts/partials/shortcodes/piratify.html +++ b/exampleSite/layouts/partials/shortcodes/piratify.html @@ -111,7 +111,7 @@ "(\\w)(?:[aeiou])mizes([\\s\\n<.,;?!:])" "'mizes" "(\\w)(?:[aeiou])nize([\\s\\n<.,;?!:])" "'nize" "(\\w)(?:[aeiou])nizes([\\s\\n<.,;?!:])" "'nizes" - (printf "(.)=\"%s([^\"]*?\")" $baseURLpath) (printf "=\"%s%s/" $baseURLpath $langtrg) + (printf "(href)=\"%s([^\"]*?\")" $baseURLpath) (printf "=\"%s%s/" $baseURLpath $langtrg) -}} {{- $fix := dict "warn'n" "warning"