docs: change anchor naming scheme #917

This commit is contained in:
Sören Weber 2024-09-18 20:47:07 +02:00
parent 8ee5bee30f
commit 7e28003401
No known key found for this signature in database
GPG key ID: BEC6D55545451B6D
89 changed files with 240 additions and 240 deletions

View file

@ -45,6 +45,6 @@ module.exports = {
onlyMilestones: true,
template: {
group: "\n### {{heading}}\n",
release: ({ body, date, release }) => `## ${release} (` + date.replace( /(\d+)\/(\d+)\/(\d+)/, '$3-$2-$1' ) + `)\n\n[★ What's new in this version ★](https://mcshelby.github.io/hugo-theme-relearn/basics/releasenotes/` + release.replace( /(\d+)\.(\d+)\.(\d+)/, '$1' ) + `.x/#` + release.replace( /(\d+)\.(\d+)\.(\d+)/, '$1$2' ) + `0)\n${body}`,
release: ({ body, date, release }) => `## ${release} (` + date.replace( /(\d+)\/(\d+)\/(\d+)/, '$3-$2-$1' ) + `)\n\n[★ What's new in this version ★](https://mcshelby.github.io/hugo-theme-relearn/basics/releasenotes/` + release.replace( /(\d+)\.(\d+)\.(\d+)/, '$1' ) + `/#` + release.replace( /(\d+)\.(\d+)\.(\d+)/, '$1-$2-0' ) + `)\n${body}`,
},
};

File diff suppressed because it is too large Load diff

View file

@ -6,7 +6,7 @@ type = "releasenotes"
weight = -0
+++
## 1.0.0 (2021-07-01) {#100}
## 1.0.0 (2021-07-01) {#1-0-0}
### Hugo 0.65.0

View file

@ -6,7 +6,7 @@ type = "releasenotes"
weight = -1
+++
## 1.1.0 (2021-07-02) {#110}
## 1.1.0 (2021-07-02) {#1-1-0}
### Breaking

View file

@ -6,7 +6,7 @@ type = "releasenotes"
weight = -2
+++
## 1.2.0 (2021-07-26) {#120}
## 1.2.0 (2021-07-26) {#1-2-0}
### New

View file

@ -6,7 +6,7 @@ type = "releasenotes"
weight = -0
+++
## 2.0.0 (2021-08-28) {#200}
## 2.0.0 (2021-08-28) {#2-0-0}
### Change

View file

@ -6,7 +6,7 @@ type = "releasenotes"
weight = -1
+++
## 2.1.0 (2021-09-07) {#210}
## 2.1.0 (2021-09-07) {#2-1-0}
### Hugo 0.69.0

View file

@ -6,7 +6,7 @@ type = "releasenotes"
weight = -2
+++
## 2.2.0 (2021-09-09) {#220}
## 2.2.0 (2021-09-09) {#2-2-0}
### New

View file

@ -6,7 +6,7 @@ type = "releasenotes"
weight = -3
+++
## 2.3.0 (2021-09-13) {#230}
## 2.3.0 (2021-09-13) {#2-3-0}
### Hugo 0.81.0

View file

@ -6,7 +6,7 @@ type = "releasenotes"
weight = -4
+++
## 2.4.0 (2021-10-07) {#240}
## 2.4.0 (2021-10-07) {#2-4-0}
### Change

View file

@ -6,7 +6,7 @@ type = "releasenotes"
weight = -5
+++
## 2.5.0 (2021-10-08) {#250}
## 2.5.0 (2021-10-08) {#2-5-0}
### Change

View file

@ -6,7 +6,7 @@ type = "releasenotes"
weight = -6
+++
## 2.6.0 (2021-10-21) {#260}
## 2.6.0 (2021-10-21) {#2-6-0}
### New

View file

@ -6,7 +6,7 @@ type = "releasenotes"
weight = -7
+++
## 2.7.0 (2021-10-24) {#270}
## 2.7.0 (2021-10-24) {#2-7-0}
### New

View file

@ -6,7 +6,7 @@ type = "releasenotes"
weight = -8
+++
## 2.8.0 (2021-11-03) {#280}
## 2.8.0 (2021-11-03) {#2-8-0}
### Change

View file

@ -6,7 +6,7 @@ type = "releasenotes"
weight = -9
+++
## 2.9.0 (2021-11-19) {#290}
## 2.9.0 (2021-11-19) {#2-9-0}
### Breaking

View file

@ -6,7 +6,7 @@ type = "releasenotes"
weight = -0
+++
## 3.0.0 (2022-02-22) {#300}
## 3.0.0 (2022-02-22) {#3-0-0}
### Breaking

View file

@ -6,7 +6,7 @@ type = "releasenotes"
weight = -1
+++
## 3.1.0 (2022-03-15) {#310}
## 3.1.0 (2022-03-15) {#3-1-0}
### New

View file

@ -6,7 +6,7 @@ type = "releasenotes"
weight = -2
+++
## 3.2.0 (2022-03-19) {#320}
## 3.2.0 (2022-03-19) {#3-2-0}
### Hugo 0.93.0

View file

@ -6,7 +6,7 @@ type = "releasenotes"
weight = -3
+++
## 3.3.0 (2022-03-28) {#330}
## 3.3.0 (2022-03-28) {#3-3-0}
### New

View file

@ -6,7 +6,7 @@ type = "releasenotes"
weight = -4
+++
## 3.4.0 (2022-04-03) {#340}
## 3.4.0 (2022-04-03) {#3-4-0}
### Breaking

View file

@ -6,7 +6,7 @@ type = "releasenotes"
weight = -0
+++
## 4.0.0 (2022-06-05) {#400}
## 4.0.0 (2022-06-05) {#4-0-0}
### Breaking

View file

@ -6,7 +6,7 @@ type = "releasenotes"
weight = -1
+++
## 4.1.0 (2022-06-12) {#410}
## 4.1.0 (2022-06-12) {#4-1-0}
### New

View file

@ -6,7 +6,7 @@ type = "releasenotes"
weight = -2
+++
## 4.2.0 (2022-06-23) {#420}
## 4.2.0 (2022-06-23) {#4-2-0}
### Breaking

View file

@ -6,7 +6,7 @@ type = "releasenotes"
weight = -0
+++
## 5.0.0 (2022-07-05) {#500}
## 5.0.0 (2022-07-05) {#5-0-0}
### Breaking

View file

@ -6,7 +6,7 @@ type = "releasenotes"
weight = -1
+++
## 5.1.0 (2022-07-15) {#510}
## 5.1.0 (2022-07-15) {#5-1-0}
### Hugo 0.95.0

View file

@ -6,7 +6,7 @@ type = "releasenotes"
weight = -10
+++
## 5.10.0 (2023-01-25) {#5100}
## 5.10.0 (2023-01-25) {#5-10-0}
### New

View file

@ -6,7 +6,7 @@ type = "releasenotes"
weight = -11
+++
## 5.11.0 (2023-02-07) {#5110}
## 5.11.0 (2023-02-07) {#5-11-0}
### Change

View file

@ -6,7 +6,7 @@ type = "releasenotes"
weight = -12
+++
## 5.12.0 (2023-05-04) {#5120}
## 5.12.0 (2023-05-04) {#5-12-0}
### Change

View file

@ -6,7 +6,7 @@ type = "releasenotes"
weight = -13
+++
## 5.13.0 (2023-05-17) {#5130}
## 5.13.0 (2023-05-17) {#5-13-0}
### Change

View file

@ -6,7 +6,7 @@ type = "releasenotes"
weight = -14
+++
## 5.14.0 (2023-05-20) {#5140}
## 5.14.0 (2023-05-20) {#5-14-0}
### New

View file

@ -6,7 +6,7 @@ type = "releasenotes"
weight = -15
+++
## 5.15.0 (2023-05-29) {#5150}
## 5.15.0 (2023-05-29) {#5-15-0}
### Change

View file

@ -6,7 +6,7 @@ type = "releasenotes"
weight = -16
+++
## 5.16.0 (2023-06-10) {#5160}
## 5.16.0 (2023-06-10) {#5-16-0}
### Change

View file

@ -6,7 +6,7 @@ type = "releasenotes"
weight = -17
+++
## 5.17.0 (2023-06-22) {#5170}
## 5.17.0 (2023-06-22) {#5-17-0}
### Change

View file

@ -6,7 +6,7 @@ type = "releasenotes"
weight = -18
+++
## 5.18.0 (2023-07-27) {#5180}
## 5.18.0 (2023-07-27) {#5-18-0}
### Change

View file

@ -6,7 +6,7 @@ type = "releasenotes"
weight = -19
+++
## 5.19.0 (2023-08-12) {#5190}
## 5.19.0 (2023-08-12) {#5-19-0}
### New

View file

@ -6,7 +6,7 @@ type = "releasenotes"
weight = -2
+++
## 5.2.0 (2022-08-03) {#520}
## 5.2.0 (2022-08-03) {#5-2-0}
### Change

View file

@ -6,7 +6,7 @@ type = "releasenotes"
weight = -20
+++
## 5.20.0 (2023-08-26) {#5200}
## 5.20.0 (2023-08-26) {#5-20-0}
### Change

View file

@ -6,7 +6,7 @@ type = "releasenotes"
weight = -21
+++
## 5.21.0 (2023-09-18) {#5210}
## 5.21.0 (2023-09-18) {#5-21-0}
### Change

View file

@ -6,7 +6,7 @@ type = "releasenotes"
weight = -22
+++
## 5.22.0 (2023-10-02) {#5220}
## 5.22.0 (2023-10-02) {#5-22-0}
### Change

View file

@ -6,7 +6,7 @@ type = "releasenotes"
weight = -23
+++
## 5.23.0 (2023-11-03) {#5230}
## 5.23.0 (2023-11-03) {#5-23-0}
### Change

View file

@ -6,7 +6,7 @@ type = "releasenotes"
weight = -24
+++
## 5.24.0 (2024-02-28) {#5240}
## 5.24.0 (2024-02-28) {#5-24-0}
### Hugo 0.112.4

View file

@ -6,7 +6,7 @@ type = "releasenotes"
weight = -25
+++
## 5.25.0 (2024-02-29) {#5250}
## 5.25.0 (2024-02-29) {#5-25-0}
### Change

View file

@ -6,7 +6,7 @@ type = "releasenotes"
weight = -26
+++
## 5.26.0 (2024-03-18) {#5260}
## 5.26.0 (2024-03-18) {#5-26-0}
### New

View file

@ -6,7 +6,7 @@ type = "releasenotes"
weight = -27
+++
## 5.27.0 (2024-04-07) {#5270}
## 5.27.0 (2024-04-07) {#5-27-0}
### Hugo 0.121.0

View file

@ -6,7 +6,7 @@ type = "releasenotes"
weight = -3
+++
## 5.3.0 (2022-10-07) {#530}
## 5.3.0 (2022-10-07) {#5-3-0}
### Change

View file

@ -6,7 +6,7 @@ type = "releasenotes"
weight = -4
+++
## 5.4.0 (2022-11-01) {#540}
## 5.4.0 (2022-11-01) {#5-4-0}
### Change

View file

@ -6,7 +6,7 @@ type = "releasenotes"
weight = -5
+++
## 5.5.0 (2022-11-06) {#550}
## 5.5.0 (2022-11-06) {#5-5-0}
### Change

View file

@ -6,7 +6,7 @@ type = "releasenotes"
weight = -6
+++
## 5.6.0 (2022-11-18) {#560}
## 5.6.0 (2022-11-18) {#5-6-0}
### New

View file

@ -6,7 +6,7 @@ type = "releasenotes"
weight = -7
+++
## 5.7.0 (2022-11-29) {#570}
## 5.7.0 (2022-11-29) {#5-7-0}
### Change

View file

@ -6,7 +6,7 @@ type = "releasenotes"
weight = -8
+++
## 5.8.0 (2022-12-08) {#580}
## 5.8.0 (2022-12-08) {#5-8-0}
### New

View file

@ -6,7 +6,7 @@ type = "releasenotes"
weight = -9
+++
## 5.9.0 (2022-12-23) {#590}
## 5.9.0 (2022-12-23) {#5-9-0}
### Breaking

View file

@ -6,7 +6,7 @@ type = "releasenotes"
weight = -0
+++
## 6.0.0 (2024-04-27) {#600}
## 6.0.0 (2024-04-27) {#6-0-0}
### Breaking
@ -28,15 +28,15 @@ weight = -0
For migration, move the `description` parameter of your `hugo.toml` into the frontmatter section of your home page.
- {{% badge style="warning" title=" " %}}Breaking{{% /badge %}} Search support for the `json` outputformat [deprecated in 5.4.0](basics/releasenotes/5/#540) was removed.
- {{% 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).
- {{% badge style="warning" title=" " %}}Breaking{{% /badge %}} The frontmatter option `menuTitle` [deprecated in 5.24.0](basics/releasenotes/5/#5240) was removed in favor for Hugos own `linkTitle`.
- {{% 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 Hugos own `linkTitle`.
Additionally, if set, `linkTitle` will now be used instead of `title` to generate the breadcrumb.
- {{% badge style="warning" title=" " %}}Breaking{{% /badge %}} The `swagger` shortcode [deprecated in 5.13.0](basics/releasenotes/5/#5130) was removed in favor for the [`openapi` shortcode](shortcodes/openapi) with the same set of parameter.
- {{% badge style="warning" title=" " %}}Breaking{{% /badge %}} The `swagger` shortcode [deprecated in 5.13.0](basics/releasenotes/5/#5-13-0) was removed in favor for the [`openapi` shortcode](shortcodes/openapi) with the same set of parameter.
- {{% badge style="warning" title=" " %}}Breaking{{% /badge %}} Support for Internet Explorer 11 was finally dropped.

View file

@ -6,7 +6,7 @@ type = "releasenotes"
weight = -1
+++
## 6.1.0 (2024-08-02) {#610}
## 6.1.0 (2024-08-02) {#6-1-0}
### Change

View file

@ -6,7 +6,7 @@ type = "releasenotes"
weight = -2
+++
## 6.2.0 (2024-08-26) {#620}
## 6.2.0 (2024-08-26) {#6-2-0}
### Change

View file

@ -6,7 +6,7 @@ type = "releasenotes"
weight = -3
+++
## 6.3.0 (2024-09-03) {#630}
## 6.3.0 (2024-09-03) {#6-3-0}
### Change

View file

@ -6,7 +6,7 @@ type = "releasenotes"
weight = -4
+++
## 6.4.0 (2024-09-12) {#640}
## 6.4.0 (2024-09-12) {#6-4-0}
### Change

View file

@ -6,7 +6,7 @@ type = "releasenotes"
weight = -0
+++
## 7.0.0 (XXXX-XX-XX) {#700}
## 7.0.0 (XXXX-XX-XX) {#7-0-0}
> [!secondary]
> {{% icon fire-flame-curved %}} The release you didn't know you want! {{% icon fire-flame-curved %}}

View file

@ -1,7 +1,7 @@
{{- $page := .page }}
{{- if and (not $page) .context }}
{{- $page = .context }}
{{- warnf "%q: DEPRECATED parameter 'context' for shortcode 'piratify' found, use 'page' instead; see https://mcshelby.github.io/hugo-theme-relearn/basics/releasenotes/5/#5180" $page.File.Filename }}
{{- warnf "%q: DEPRECATED parameter 'context' for shortcode 'piratify' found, use 'page' instead; see https://mcshelby.github.io/hugo-theme-relearn/basics/releasenotes/5/#5-18-0" $page.File.Filename }}
{{- end }}
{{- $content := .content }}
{{- $pagefield := cond (ne $content nil) nil (.pagefield | default "Content") }}

View file

@ -7,7 +7,7 @@
{{- end }}
{{- end }}
{{- if .Site.Params.description }}
{{- warnf "UNSUPPORTED usage of 'params.description' config parameter found, move it to the frontmatter of your home page; see https://mcshelby.github.io/hugo-theme-relearn/basics/releasenotes/6/#600" }}
{{- warnf "UNSUPPORTED usage of 'params.description' config parameter found, move it to the frontmatter of your home page; see https://mcshelby.github.io/hugo-theme-relearn/basics/releasenotes/6/#6-0-0" }}
{{- end }}
<html lang="{{ .Page.Language.LanguageCode }}" dir="{{ .Page.Language.LanguageDirection | default (T "Reading-direction") | default "ltr" }}" itemscope itemtype="http://schema.org/Article">
<head>

View file

@ -5,7 +5,7 @@
{{- $authorName = . }}
{{- end }}
{{- else }}
{{- warnf "DEPRECATED usage of 'params.author' config parameter found, replace it with `params.author.name` in your hugo.toml; see https://mcshelby.github.io/hugo-theme-relearn/basics/releasenotes/5/#5230" }}
{{- warnf "DEPRECATED usage of 'params.author' config parameter found, replace it with `params.author.name` in your hugo.toml; see https://mcshelby.github.io/hugo-theme-relearn/basics/releasenotes/5/#5-23-0" }}
{{- $authorName = .Site.Params.author }}
{{- end }}
{{- else }}

View file

@ -170,7 +170,7 @@ Chroma auto run:
{{- $chroma := "" }}
{{- range findRESubmatch `[ \t]*@import\s+[^$]*?chroma-([^.]*?)\.css` $themecontent }}
{{- $chroma = index . 1 }}
{{- errorf "\"theme-%s.css\": UNSUPPORTED use of @import for chroma stylesheet, instead use '--CODE-theme: %s;'; see https://mcshelby.github.io/hugo-theme-relearn/basics/releasenotes/6/#600" $identifier $chroma }}
{{- errorf "\"theme-%s.css\": UNSUPPORTED use of @import for chroma stylesheet, instead use '--CODE-theme: %s;'; see https://mcshelby.github.io/hugo-theme-relearn/basics/releasenotes/6/#6-0-0" $identifier $chroma }}
{{- end }}
{{- range findRESubmatch `[ \t]*@import\s+[^$]*?theme-([^.]*?)\.css` $themecontent }}
{{- $subidentifier := index . 1 }}

View file

@ -1,2 +1,2 @@
{{- warnf "DEPRECATED partial 'assetbusting.hugo' used, use 'assetbusting.gotmpl' instead; see https://mcshelby.github.io/hugo-theme-relearn/basics/releasenotes/7/#700" }}
{{- warnf "DEPRECATED partial 'assetbusting.hugo' used, use 'assetbusting.gotmpl' instead; see https://mcshelby.github.io/hugo-theme-relearn/basics/releasenotes/7/#7-0-0" }}
{{- partial "assetbusting.gotmpl" . }}

View file

@ -7,7 +7,7 @@
{{- $wants := or ($page.Page.Store.Get $has) (and ($page.Page.Store.Get "relearnIsNested") ($page.Page.Store.Get $hasnested)) }}
{{- if and $wants }}
{{- if $v.location }}
{{- warnf "DEPRECATED parameter 'location' for dependency '%s' configured in your hugo.toml, query the 'location' parameter inside your dependency loader instead; see https://mcshelby.github.io/hugo-theme-relearn/basics/releasenotes/5/#5270" $k}}
{{- warnf "DEPRECATED parameter 'location' for dependency '%s' configured in your hugo.toml, query the 'location' parameter inside your dependency loader instead; see https://mcshelby.github.io/hugo-theme-relearn/basics/releasenotes/5/#5-27-0" $k}}
{{- end }}
{{- if or (not $v.location) (eq $location $v.location) }}
{{- $dep := printf "dependencies/%s.html" $k }}

View file

@ -11,7 +11,7 @@
<div id="R-homelinks" class="default-animation{{ if not .Site.Params.disableLandingPageButton }} homelinks{{ end }}">
{{- if not .Site.Params.disableLandingPageButton }}
{{- if (ne .Site.Params.landingPageURL nil) }}
{{- warnf "UNSUPPORTED usage of 'landingPageURL' config parameter found, remove it and optionally overwrite the `logo.html` partial to provide a link if it should not point to the project's home page; see https://mcshelby.github.io/hugo-theme-relearn/basics/releasenotes/4/#420" }}
{{- warnf "UNSUPPORTED usage of 'landingPageURL' config parameter found, remove it and optionally overwrite the `logo.html` partial to provide a link if it should not point to the project's home page; see https://mcshelby.github.io/hugo-theme-relearn/basics/releasenotes/4/#4-2-0" }}
{{- end }}
<ul>
<li><a class="padding" href="{{ partial "permalink.gotmpl" (dict "to" .Site.Home) }}">{{ .Site.Params.landingPageName | default `<i class="fa-fw fas fa-home"></i> Home` | safeHTML }}</a></li>

View file

@ -1 +1 @@
{{- warnf "DEPRECATED partial 'page-meta.hugo' used, delete it from your templates; see https://mcshelby.github.io/hugo-theme-relearn/basics/releasenotes/7/#700" }}
{{- warnf "DEPRECATED partial 'page-meta.hugo' used, delete it from your templates; see https://mcshelby.github.io/hugo-theme-relearn/basics/releasenotes/7/#7-0-0" }}

View file

@ -1,2 +1,2 @@
{{- warnf "DEPRECATED partial 'pageHelper/title.hugo' used, use 'title.gotmpl' instead; see https://mcshelby.github.io/hugo-theme-relearn/basics/releasenotes/7/#700" }}
{{- warnf "DEPRECATED partial 'pageHelper/title.hugo' used, use 'title.gotmpl' instead; see https://mcshelby.github.io/hugo-theme-relearn/basics/releasenotes/7/#7-0-0" }}
{{- partial "title.gotmpl" . }}

View file

@ -1,2 +1,2 @@
{{- warnf "DEPRECATED partial 'relLangPrettyUglyURL.hugo' used, use 'permalink.gotmpl' instead; see https://mcshelby.github.io/hugo-theme-relearn/basics/releasenotes/7/#700" }}
{{- warnf "DEPRECATED partial 'relLangPrettyUglyURL.hugo' used, use 'permalink.gotmpl' instead; see https://mcshelby.github.io/hugo-theme-relearn/basics/releasenotes/7/#7-0-0" }}
{{- partial "permalink.gotmpl" . }}

View file

@ -2,10 +2,10 @@
{{- $assetBusting := partialCached "assetbusting.gotmpl" . }}
{{- $link := "" }}
{{- with .Site.Home.OutputFormats.Get "json" }}
{{- warnf "UNSUPPORTED usage of 'json' output format found, use 'search' instead; see https://mcshelby.github.io/hugo-theme-relearn/basics/releasenotes/6/#600" }}
{{- warnf "UNSUPPORTED usage of 'json' output format found, use 'search' instead; see https://mcshelby.github.io/hugo-theme-relearn/basics/releasenotes/6/#6-0-0" }}
{{- end }}
{{- with .Site.Home.OutputFormats.Get "searchpage" }}
{{- warnf "UNSUPPORTED usage of 'searchpage' output format found, remove it from your config; see https://mcshelby.github.io/hugo-theme-relearn/basics/releasenotes/7/#700" }}
{{- warnf "UNSUPPORTED usage of 'searchpage' output format found, remove it from your config; see https://mcshelby.github.io/hugo-theme-relearn/basics/releasenotes/7/#7-0-0" }}
{{- end }}
{{- if not .Site.Params.disableSearchIndex }}
{{- $url := path.Join .Site.LanguagePrefix (trim (or .Site.Params.searchIndexURL "searchindex.js") "/") }}

View file

@ -2,7 +2,7 @@
{{- warnf "%q: DEPRECATED shortcode `attachments` found, use `resources` instead; see https://mcshelby.github.io/hugo-theme-relearn/shortcodes/attachments#migration" $page.File.Filename }}
{{- if and (not $page) .context }}
{{- $page = .context }}
{{- warnf "%q: DEPRECATED parameter 'context' for shortcode 'attachments' found, use 'page' instead; see https://mcshelby.github.io/hugo-theme-relearn/basics/releasenotes/5/#5180" $page.File.Filename }}
{{- warnf "%q: DEPRECATED parameter 'context' for shortcode 'attachments' found, use 'page' instead; see https://mcshelby.github.io/hugo-theme-relearn/basics/releasenotes/5/#5-18-0" $page.File.Filename }}
{{- end }}
{{- $color := .color | default "" }}
{{- $style := .style | default "default" }}

View file

@ -1,7 +1,7 @@
{{- $page := .page }}
{{- if and (not $page) .context }}
{{- $page = .context }}
{{- warnf "%q: DEPRECATED parameter 'context' for shortcode 'badge' found, use 'page' instead; see https://mcshelby.github.io/hugo-theme-relearn/basics/releasenotes/5/#5180" $page.File.Filename }}
{{- warnf "%q: DEPRECATED parameter 'context' for shortcode 'badge' found, use 'page' instead; see https://mcshelby.github.io/hugo-theme-relearn/basics/releasenotes/5/#5-18-0" $page.File.Filename }}
{{- end }}
{{- $color := .color | default "" }}
{{- $content := .content }}

View file

@ -1,7 +1,7 @@
{{- $page := .page }}
{{- if and (not $page) .context }}
{{- $page = .context }}
{{- warnf "%q: DEPRECATED parameter 'context' for shortcode 'button' found, use 'page' instead; see https://mcshelby.github.io/hugo-theme-relearn/basics/releasenotes/5/#5180" $page.File.Filename }}
{{- warnf "%q: DEPRECATED parameter 'context' for shortcode 'button' found, use 'page' instead; see https://mcshelby.github.io/hugo-theme-relearn/basics/releasenotes/5/#5-18-0" $page.File.Filename }}
{{- end }}
{{- $color := .color | default "" }}
{{- $content := .content }}

View file

@ -1,7 +1,7 @@
{{- $page := .page }}
{{- if and (not $page) .context }}
{{- $page = .context }}
{{- warnf "%q: DEPRECATED parameter 'context' for shortcode 'children' found, use 'page' instead; see https://mcshelby.github.io/hugo-theme-relearn/basics/releasenotes/5/#5180" $page.File.Filename }}
{{- warnf "%q: DEPRECATED parameter 'context' for shortcode 'children' found, use 'page' instead; see https://mcshelby.github.io/hugo-theme-relearn/basics/releasenotes/5/#5-18-0" $page.File.Filename }}
{{- end }}
{{- $showhidden := .showhidden | default false }}
{{- if eq (printf "%T" $showhidden) "string" }}

View file

@ -1,7 +1,7 @@
{{- $page := .page }}
{{- if and (not $page) .context }}
{{- $page = .context }}
{{- warnf "%q: DEPRECATED parameter 'context' for shortcode 'expand' found, use 'page' instead; see https://mcshelby.github.io/hugo-theme-relearn/basics/releasenotes/5/#5180" $page.File.Filename }}
{{- warnf "%q: DEPRECATED parameter 'context' for shortcode 'expand' found, use 'page' instead; see https://mcshelby.github.io/hugo-theme-relearn/basics/releasenotes/5/#5-18-0" $page.File.Filename }}
{{- end }}
{{- $content := trim .content "\n\r\t " }}
{{- $hasContent := ne (strings.TrimLeft "<p>" $content) "" }}
@ -12,7 +12,7 @@
{{- $title = trim $title " " }}
{{- $expanded := .expanded | default false }}
{{- if and (isset . "open") (or (ne (printf "%T" .open) "string") (ne (trim .open " " ) "")) }}
{{- warnf "%q: DEPRECATED parameter 'open' for shortcode 'expand' found, use 'expanded' instead; see https://mcshelby.github.io/hugo-theme-relearn/basics/releasenotes/6/#630" $page.File.Filename }}
{{- warnf "%q: DEPRECATED parameter 'open' for shortcode 'expand' found, use 'expanded' instead; see https://mcshelby.github.io/hugo-theme-relearn/basics/releasenotes/6/#6-3-0" $page.File.Filename }}
{{- $expanded = .open }}
{{- end }}
{{- if eq (printf "%T" $expanded) "string" }}

View file

@ -1,7 +1,7 @@
{{- $page := .page }}
{{- if and (not $page) .context }}
{{- $page = .context }}
{{- warnf "%q: DEPRECATED parameter 'context' for shortcode 'highlight' found, use 'page' instead; see https://mcshelby.github.io/hugo-theme-relearn/basics/releasenotes/5/#5180" $page.File.Filename }}
{{- warnf "%q: DEPRECATED parameter 'context' for shortcode 'highlight' found, use 'page' instead; see https://mcshelby.github.io/hugo-theme-relearn/basics/releasenotes/5/#5-18-0" $page.File.Filename }}
{{- end }}
{{- $attributes := dict }}
{{- $otherAttributes := dict }}

View file

@ -1,7 +1,7 @@
{{- $page := .page }}
{{- if and (not $page) .context }}
{{- $page = .context }}
{{- warnf "%q: DEPRECATED parameter 'context' for shortcode 'icon' found, use 'page' instead; see https://mcshelby.github.io/hugo-theme-relearn/basics/releasenotes/5/#5180" $page.File.Filename }}
{{- warnf "%q: DEPRECATED parameter 'context' for shortcode 'icon' found, use 'page' instead; see https://mcshelby.github.io/hugo-theme-relearn/basics/releasenotes/5/#5-18-0" $page.File.Filename }}
{{- end }}
{{- $icon := .icon | default "" }}
{{- $icon = trim $icon " " }}

View file

@ -2,7 +2,7 @@
{{- $page := .page }}
{{- if and (not $page) .context }}
{{- $page = .context }}
{{- warnf "%q: DEPRECATED parameter 'context' for shortcode 'image' found, use 'page' instead; see https://mcshelby.github.io/hugo-theme-relearn/basics/releasenotes/5/#5180" $page.File.Filename }}
{{- warnf "%q: DEPRECATED parameter 'context' for shortcode 'image' found, use 'page' instead; see https://mcshelby.github.io/hugo-theme-relearn/basics/releasenotes/5/#5-18-0" $page.File.Filename }}
{{- end }}
{{- $title := .title }}
{{- $alt := .alt }}
@ -54,7 +54,7 @@
{{- end }}
{{- end }}
{{- if $u.Query.Has "featherlight" }}
{{- warnf "%q: DEPRECATED usage of 'featherlight' image CSS class found, use 'lightbox' instead; see https://mcshelby.github.io/hugo-theme-relearn/basics/releasenotes/5/#5110" $page.File.Filename }}
{{- warnf "%q: DEPRECATED usage of 'featherlight' image CSS class found, use 'lightbox' instead; see https://mcshelby.github.io/hugo-theme-relearn/basics/releasenotes/5/#5-11-0" $page.File.Filename }}
{{- $effects = merge $effects (dict "lightbox" (ne ($u.Query.Get "featherlight") "false")) }}
{{- end }}
{{- range $k, $v := $effects }}

View file

@ -1,7 +1,7 @@
{{- $page := .page }}
{{- if and (not $page) .context }}
{{- $page = .context }}
{{- warnf "%q: DEPRECATED parameter 'context' for shortcode 'include' found, use 'page' instead; see https://mcshelby.github.io/hugo-theme-relearn/basics/releasenotes/5/#5180" $page.File.Filename }}
{{- warnf "%q: DEPRECATED parameter 'context' for shortcode 'include' found, use 'page' instead; see https://mcshelby.github.io/hugo-theme-relearn/basics/releasenotes/5/#5-18-0" $page.File.Filename }}
{{- end }}
{{- $u := urls.Parse .file }}
{{- $path := strings.TrimPrefix "./" $u.Path }}

View file

@ -2,7 +2,7 @@
{{- $page := .page }}
{{- if and (not $page) .context }}
{{- $page = .context }}
{{- warnf "%q: DEPRECATED parameter 'context' for shortcode 'link' found, use 'page' instead; see https://mcshelby.github.io/hugo-theme-relearn/basics/releasenotes/5/#5180" $page.File.Filename }}
{{- warnf "%q: DEPRECATED parameter 'context' for shortcode 'link' found, use 'page' instead; see https://mcshelby.github.io/hugo-theme-relearn/basics/releasenotes/5/#5-18-0" $page.File.Filename }}
{{- end }}
{{- if strings.HasPrefix .url "HAHAHUGOSHORTCODE" }}
{{- warnf "%q: WARNING you must call the ref / relref shortcode with '%% %%' instead of '< >' to work correctly for the anchor target attribute" $page.File.Filename }}

View file

@ -1,7 +1,7 @@
{{- $page := .page }}
{{- if and (not $page) .context }}
{{- $page = .context }}
{{- warnf "%q: DEPRECATED parameter 'context' for shortcode 'math' found, use 'page' instead; see https://mcshelby.github.io/hugo-theme-relearn/basics/releasenotes/5/#5180" $page.File.Filename }}
{{- warnf "%q: DEPRECATED parameter 'context' for shortcode 'math' found, use 'page' instead; see https://mcshelby.github.io/hugo-theme-relearn/basics/releasenotes/5/#5-18-0" $page.File.Filename }}
{{- end }}
{{- $content := .content }}
{{- $align := .align | default "center" }}

View file

@ -1,7 +1,7 @@
{{- $page := .page }}
{{- if and (not $page) .context }}
{{- $page = .context }}
{{- warnf "%q: DEPRECATED parameter 'context' for shortcode 'mermaid' found, use 'page' instead; see https://mcshelby.github.io/hugo-theme-relearn/basics/releasenotes/5/#5180" $page.File.Filename }}
{{- warnf "%q: DEPRECATED parameter 'context' for shortcode 'mermaid' found, use 'page' instead; see https://mcshelby.github.io/hugo-theme-relearn/basics/releasenotes/5/#5-18-0" $page.File.Filename }}
{{- end }}
{{- $content := .content }}
{{- $align := .align | default "center" }}

View file

@ -1,7 +1,7 @@
{{- $page := .page }}
{{- if and (not $page) .context }}
{{- $page = .context }}
{{- warnf "%q: DEPRECATED parameter 'context' for shortcode 'notice' found, use 'page' instead; see https://mcshelby.github.io/hugo-theme-relearn/basics/releasenotes/5/#5180" $page.File.Filename }}
{{- warnf "%q: DEPRECATED parameter 'context' for shortcode 'notice' found, use 'page' instead; see https://mcshelby.github.io/hugo-theme-relearn/basics/releasenotes/5/#5-18-0" $page.File.Filename }}
{{- end }}
{{- $class := .class | default "notices" }}
{{- $containerstyle := .containerstyle | default "div" }}

View file

@ -1,7 +1,7 @@
{{- $page := .page }}
{{- if and (not $page) .context }}
{{- $page = .context }}
{{- warnf "%q: DEPRECATED parameter 'context' for shortcode 'openapi' found, use 'page' instead; see https://mcshelby.github.io/hugo-theme-relearn/basics/releasenotes/5/#5180" $page.File.Filename }}
{{- warnf "%q: DEPRECATED parameter 'context' for shortcode 'openapi' found, use 'page' instead; see https://mcshelby.github.io/hugo-theme-relearn/basics/releasenotes/5/#5-18-0" $page.File.Filename }}
{{- end }}
{{- $u := urls.Parse .src }}
{{- $src := $u.String }}

View file

@ -1,7 +1,7 @@
{{- $page := .page }}
{{- if and (not $page) .context }}
{{- $page = .context }}
{{- warnf "%q: DEPRECATED parameter 'context' for shortcode 'resources' found, use 'page' instead; see https://mcshelby.github.io/hugo-theme-relearn/basics/releasenotes/5/#5180" $page.File.Filename }}
{{- warnf "%q: DEPRECATED parameter 'context' for shortcode 'resources' found, use 'page' instead; see https://mcshelby.github.io/hugo-theme-relearn/basics/releasenotes/5/#5-18-0" $page.File.Filename }}
{{- end }}
{{- $color := .color | default "" }}
{{- $style := .style | default "default" }}

View file

@ -1,7 +1,7 @@
{{- $page := .page }}
{{- if and (not $page) .context }}
{{- $page = .context }}
{{- warnf "%q: DEPRECATED parameter 'context' for shortcode 'siteparam' found, use 'page' instead; see https://mcshelby.github.io/hugo-theme-relearn/basics/releasenotes/5/#5180" $page.File.Filename }}
{{- warnf "%q: DEPRECATED parameter 'context' for shortcode 'siteparam' found, use 'page' instead; see https://mcshelby.github.io/hugo-theme-relearn/basics/releasenotes/5/#5-18-0" $page.File.Filename }}
{{- end }}
{{- $paramNames := split .name "." }}
{{- with $page }}

View file

@ -1,7 +1,7 @@
{{- $page := .page }}
{{- if and (not $page) .context }}
{{- $page = .context }}
{{- warnf "%q: DEPRECATED parameter 'context' for shortcode 'tab' found, use 'page' instead; see https://mcshelby.github.io/hugo-theme-relearn/basics/releasenotes/5/#5180" $page.File.Filename }}
{{- warnf "%q: DEPRECATED parameter 'context' for shortcode 'tab' found, use 'page' instead; see https://mcshelby.github.io/hugo-theme-relearn/basics/releasenotes/5/#5-18-0" $page.File.Filename }}
{{- end }}
{{- $tabs := (slice | append (dict
"color" .color

View file

@ -1,7 +1,7 @@
{{- $page := .page }}
{{- if and (not $page) .context }}
{{- $page = .context }}
{{- warnf "%q: DEPRECATED parameter 'context' for shortcode 'tabs' found, use 'page' instead; see https://mcshelby.github.io/hugo-theme-relearn/basics/releasenotes/5/#5180" $page.File.Filename }}
{{- warnf "%q: DEPRECATED parameter 'context' for shortcode 'tabs' found, use 'page' instead; see https://mcshelby.github.io/hugo-theme-relearn/basics/releasenotes/5/#5-18-0" $page.File.Filename }}
{{- end }}
{{- $groupid := .groupid | default (partial "_relearn/makeRandomMd5.gotmpl" $page) | plainify | anchorize }}
{{- $color := .color }}
@ -11,7 +11,7 @@
{{- $tabs := slice }}
{{- range $tab := (.content | default slice) }}
{{- if and (not $tab.title) $tab.name }}
{{- warnf "%q: DEPRECATED parameter 'name' for shortcode 'tab' found, use 'title' instead; see https://mcshelby.github.io/hugo-theme-relearn/basics/releasenotes/5/#5160" $page.File.Filename }}
{{- warnf "%q: DEPRECATED parameter 'name' for shortcode 'tab' found, use 'title' instead; see https://mcshelby.github.io/hugo-theme-relearn/basics/releasenotes/5/#5-16-0" $page.File.Filename }}
{{- $tab = merge $tab (dict "title" .name) }}
{{- end }}
{{- with $tab }}

View file

@ -2,7 +2,7 @@
{{- with .Store.Get "relearnOutputFormat" }}
{{- $outputFormat = . }}
{{- else }}
{{- warnf "WARNING no key `relearnOutputFormat` found in page store, set one by providing the file `layouts/_default/view/storeOutputFormat.<MYOUTPUTFORMAT>.html` for your self-defined output format; see https://mcshelby.github.io/hugo-theme-relearn/basics/releasenotes/6/#600" }}
{{- warnf "WARNING no key `relearnOutputFormat` found in page store, set one by providing the file `layouts/_default/view/storeOutputFormat.<MYOUTPUTFORMAT>.html` for your self-defined output format; see https://mcshelby.github.io/hugo-theme-relearn/basics/releasenotes/6/#6-0-0" }}
{{- end }}
{{- $assetBusting := partialCached "assetbusting.gotmpl" . }}
{{- /* https://github.com/filamentgroup/loadCSS/blob/master/README.md#how-to-use */}}

View file

@ -1,7 +1,7 @@
{{- $title := "" }}
{{- with .page }}
{{- if .Params.menuTitle }}
{{- warnf "%q: UNSUPPORTED frontmatter 'menutitle' found, use 'linktitle' instead; see https://mcshelby.github.io/hugo-theme-relearn/basics/releasenotes/6/#600" $.File.Filename }}
{{- warnf "%q: UNSUPPORTED frontmatter 'menutitle' found, use 'linktitle' instead; see https://mcshelby.github.io/hugo-theme-relearn/basics/releasenotes/6/#6-0-0" $.File.Filename }}
{{- end }}
{{- $siteTitle := site.Title }}
{{- $title = .Title }}

View file

@ -1,5 +1,5 @@
{{- if (.Get "showfirstheading") }}
{{- warnf "%q: UNSUPPORTED parameter 'showfirstheading' for shortcode 'include' found, use 'hidefirstheading' instead; see https://mcshelby.github.io/hugo-theme-relearn/basics/releasenotes/4/#420" .Page.File.Filename }}
{{- warnf "%q: UNSUPPORTED parameter 'showfirstheading' for shortcode 'include' found, use 'hidefirstheading' instead; see https://mcshelby.github.io/hugo-theme-relearn/basics/releasenotes/4/#4-2-0" .Page.File.Filename }}
{{- end }}
{{- partial "shortcodes/include.html" (dict
"page" .Page