diff --git a/layouts/partials/shortcodes/openapi.html b/layouts/partials/shortcodes/openapi.html
index 7fc7edd4cd..7d10a8d108 100644
--- a/layouts/partials/shortcodes/openapi.html
+++ b/layouts/partials/shortcodes/openapi.html
@@ -1,7 +1,11 @@
-{{- $context := .context }}
+{{- $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/migration/#5180-2023-07-27" $page.File.Path }}
+{{- end }}
{{- $src := .src }}
-{{- $id := cond (or (eq .id nil) (eq .id "")) (partial "make-random-md5.hugo" $context) .id }}
-{{- with $context }}
+{{- $id := cond (or (eq .id nil) (eq .id "")) (partial "make-random-md5.hugo" $page) .id }}
+{{- with $page }}
{{- with .Resources.Match $src }}
{{- range . }}
{{- $src = .RelPermalink }}
diff --git a/layouts/partials/shortcodes/siteparam.html b/layouts/partials/shortcodes/siteparam.html
index fb78381b3a..51b2599750 100644
--- a/layouts/partials/shortcodes/siteparam.html
+++ b/layouts/partials/shortcodes/siteparam.html
@@ -1,6 +1,10 @@
-{{- $context := .context }}
+{{- $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/migration/#5180-2023-07-27" $page.File.Path }}
+{{- end }}
{{- $paramNames := split .name "." }}
-{{- with $context }}
+{{- with $page }}
{{- $params := .Site.Params }}
{{- range $paramName := $paramNames }}
{{- with $params }}
diff --git a/layouts/partials/shortcodes/swagger.html b/layouts/partials/shortcodes/swagger.html
index fb33e17abc..8696d8c929 100644
--- a/layouts/partials/shortcodes/swagger.html
+++ b/layouts/partials/shortcodes/swagger.html
@@ -1,6 +1,11 @@
{{ warnf "%q: DEPRECATED shortcode `swagger`found, use `openapi` instead; see https://mcshelby.github.io/hugo-theme-relearn/basics/migration/#5130-2023-05-17" .context.File.Path }}
+{{- $page := .page }}
+{{- if and (not $page) .context }}
+ {{- $page = .context }}
+ {{- warnf "%q: DEPRECATED parameter 'context' for shortcode 'swagger' found, use 'page' instead; see https://mcshelby.github.io/hugo-theme-relearn/basics/migration/#5180-2023-07-27" $page.File.Path }}
+{{- end }}
{{- partial "shortcodes/openapi.html" (dict
- "context" .context
+ "page" $page
"src" .src
"id" .id
) }}
\ No newline at end of file
diff --git a/layouts/partials/shortcodes/tab.html b/layouts/partials/shortcodes/tab.html
index 20d4b334e9..e6959e2c2c 100644
--- a/layouts/partials/shortcodes/tab.html
+++ b/layouts/partials/shortcodes/tab.html
@@ -1,3 +1,8 @@
+{{- $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/migration/#5180-2023-07-27" $page.File.Path }}
+{{- end }}
{{- $tabs := (slice | append (dict
"color" .color
"content" .content
@@ -7,7 +12,7 @@
"title" .title
)) }}
{{- partial "shortcodes/tabs.html" (dict
- "context" .context
+ "page" $page
"color" ""
"content" $tabs
"groupid" ""
diff --git a/layouts/partials/shortcodes/tabs.html b/layouts/partials/shortcodes/tabs.html
index f607976aa3..7ac6efd855 100644
--- a/layouts/partials/shortcodes/tabs.html
+++ b/layouts/partials/shortcodes/tabs.html
@@ -1,5 +1,9 @@
-{{- $context := .context }}
-{{- $groupid := .groupid | default (partial "make-random-md5.hugo" $context) }}
+{{- $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/migration/#5180-2023-07-27" $page.File.Path }}
+{{- end }}
+{{- $groupid := .groupid | default (partial "make-random-md5.hugo" $page) }}
{{- $color := .color }}
{{- $style := .style }}
{{- $title := .title }}
@@ -7,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/migration/#5160-2023-06-08" $context.File.Path }}
+ {{- warnf "%q: DEPRECATED parameter 'name' for shortcode 'tab' found, use 'title' instead; see https://mcshelby.github.io/hugo-theme-relearn/basics/migration/#5160-2023-06-08" $page.File.Path }}
{{- $tab = merge $tab (dict "title" .name) }}
{{- end }}
{{- with $tab }}
@@ -30,7 +34,7 @@
"color" $color
"content" .content
"icon" $icon
- "itemid" (printf "%s%s" ($title | $context.RenderString | plainify) ($icon | plainify))
+ "itemid" (printf "%s%s" ($title | $page.RenderString | plainify) ($icon | plainify))
"style" $style
"title" $title
) }}
@@ -51,10 +55,10 @@
{{- if and $icon (not (findRE ".*?\\bfa-\\w.*?" $icon)) }}
{{- $icon = printf "fa-fw fas fa-%s" $icon }}
{{- end }}
-{{- with $context }}
+{{- with $page }}
-
{{ if $icon }}{{ end }}{{ if and $icon $title }} {{ end }}{{ $title | $context.RenderString }}{{ if (not $title) }}{{ end }}
+
{{ if $icon }}{{ end }}{{ if and $icon $title }} {{ end }}{{ $title | $page.RenderString }}{{ if (not $title) }}{{ end }}
{{- range $idx, $tab := $tabs }}
{{- end }}
diff --git a/layouts/shortcodes/attachments.html b/layouts/shortcodes/attachments.html
index 34a7ee7157..d44408b575 100644
--- a/layouts/shortcodes/attachments.html
+++ b/layouts/shortcodes/attachments.html
@@ -1,6 +1,6 @@
{{- $_hugo_config := `{ "version": 1 }` }}
{{- partial "shortcodes/attachments.html" (dict
- "context" .Page
+ "page" .Page
"color" (.Get "color")
"content" .Inner
"icon" (.Get "icon")
diff --git a/layouts/shortcodes/badge.html b/layouts/shortcodes/badge.html
index b3c4163c03..939d87ab64 100644
--- a/layouts/shortcodes/badge.html
+++ b/layouts/shortcodes/badge.html
@@ -1,6 +1,6 @@
{{- $_hugo_config := `{ "version": 1 }` }}
{{- partial "shortcodes/badge.html" (dict
- "context" .Page
+ "page" .Page
"color" (.Get "color")
"content" .Inner
"icon" (.Get "icon")
diff --git a/layouts/shortcodes/button.html b/layouts/shortcodes/button.html
index 1e9941d1ab..70500aa65a 100644
--- a/layouts/shortcodes/button.html
+++ b/layouts/shortcodes/button.html
@@ -1,6 +1,6 @@
{{- $_hugo_config := `{ "version": 1 }` }}
{{- partial "shortcodes/button.html" (dict
- "context" .Page
+ "page" .Page
"color" (.Get "color")
"content" .Inner
"href" (.Get "href")
diff --git a/layouts/shortcodes/children.html b/layouts/shortcodes/children.html
index d000514859..cd52aebe91 100644
--- a/layouts/shortcodes/children.html
+++ b/layouts/shortcodes/children.html
@@ -1,6 +1,6 @@
{{- $_hugo_config := `{ "version": 1 }` }}
{{- partial "shortcodes/children.html" (dict
- "context" .Page
+ "page" .Page
"containerstyle" (.Get "containerstyle")
"description" (.Get "description")
"depth" (.Get "depth")
diff --git a/layouts/shortcodes/expand.html b/layouts/shortcodes/expand.html
index caa3d9561f..9dd972e58d 100644
--- a/layouts/shortcodes/expand.html
+++ b/layouts/shortcodes/expand.html
@@ -7,7 +7,7 @@
{{- $id = "" }}
{{- end }}
{{- partial "shortcodes/expand.html" (dict
- "context" .Page
+ "page" .Page
"content" .Inner
"open" (.Get "open" | default (.Get 1))
"title" (.Get "title" | default (.Get 0))
diff --git a/layouts/shortcodes/highlight.html b/layouts/shortcodes/highlight.html
index 2b10b91214..b46f1181d1 100644
--- a/layouts/shortcodes/highlight.html
+++ b/layouts/shortcodes/highlight.html
@@ -24,7 +24,7 @@
{{- end }}
{{- end }}
{{- partial "shortcodes/highlight.html" (dict
- "context" .Page
+ "page" .Page
"attributes" $attributes
"content" $content
"options" $options
diff --git a/layouts/shortcodes/icon.html b/layouts/shortcodes/icon.html
index 80e60fd99a..a0e422addc 100644
--- a/layouts/shortcodes/icon.html
+++ b/layouts/shortcodes/icon.html
@@ -1,5 +1,5 @@
{{- $_hugo_config := `{ "version": 1 }` }}
{{- partial "shortcodes/icon.html" (dict
- "context" .Page
+ "page" .Page
"icon" (.Get "icon" | default (.Get 0))
) }}
\ No newline at end of file
diff --git a/layouts/shortcodes/include.html b/layouts/shortcodes/include.html
index c9901a5cd6..9782b54346 100644
--- a/layouts/shortcodes/include.html
+++ b/layouts/shortcodes/include.html
@@ -1,5 +1,5 @@
{{- partial "shortcodes/include.html" (dict
- "context" .Page
+ "page" .Page
"file" (.Get "file" | default (.Get 0))
"hidefirstheading" (.Get "hidefirstheading" | default (.Get 1))
) }}
\ No newline at end of file
diff --git a/layouts/shortcodes/math.html b/layouts/shortcodes/math.html
index 1e037bac43..5c7ae6d9d2 100644
--- a/layouts/shortcodes/math.html
+++ b/layouts/shortcodes/math.html
@@ -1,6 +1,6 @@
{{- $_hugo_config := `{ "version": 1 }` }}
{{- partial "shortcodes/math.html" (dict
- "context" .Page
+ "page" .Page
"content" .Inner
"align" (.Get "align")
) }}
\ No newline at end of file
diff --git a/layouts/shortcodes/mermaid.html b/layouts/shortcodes/mermaid.html
index 1ff05523e3..e0c8820578 100644
--- a/layouts/shortcodes/mermaid.html
+++ b/layouts/shortcodes/mermaid.html
@@ -1,6 +1,6 @@
{{- $_hugo_config := `{ "version": 1 }` }}
{{- partial "shortcodes/mermaid.html" (dict
- "context" .Page
+ "page" .Page
"content" .Inner
"align" (.Get "align")
"zoom" (.Get "zoom")
diff --git a/layouts/shortcodes/notice.html b/layouts/shortcodes/notice.html
index e65d9be16f..83c4decd23 100644
--- a/layouts/shortcodes/notice.html
+++ b/layouts/shortcodes/notice.html
@@ -1,6 +1,6 @@
{{- $_hugo_config := `{ "version": 1 }` }}
{{- partial "shortcodes/notice.html" (dict
- "context" .Page
+ "page" .Page
"color" (.Get "color")
"content" .Inner
"icon" (.Get "icon" | default (.Get 2))
diff --git a/layouts/shortcodes/openapi.html b/layouts/shortcodes/openapi.html
index 69a529bef4..82f03ac231 100644
--- a/layouts/shortcodes/openapi.html
+++ b/layouts/shortcodes/openapi.html
@@ -6,7 +6,7 @@
{{- $id = "" }}
{{- end }}
{{- partial "shortcodes/openapi.html" (dict
- "context" .Page
+ "page" .Page
"src" (.Get "src")
"id" $id
) }}
\ No newline at end of file
diff --git a/layouts/shortcodes/siteparam.html b/layouts/shortcodes/siteparam.html
index 8aa20b1fe2..3e48ba34a3 100644
--- a/layouts/shortcodes/siteparam.html
+++ b/layouts/shortcodes/siteparam.html
@@ -1,4 +1,4 @@
{{- partial "shortcodes/siteparam.html" (dict
- "context" .Page
+ "page" .Page
"name" (.Get "name" | default (.Get 0))
) }}
\ No newline at end of file
diff --git a/layouts/shortcodes/swagger.html b/layouts/shortcodes/swagger.html
index 7d06c9065e..38ca409a42 100644
--- a/layouts/shortcodes/swagger.html
+++ b/layouts/shortcodes/swagger.html
@@ -6,7 +6,7 @@
{{- $id = "" }}
{{- end }}
{{- partial "shortcodes/swagger.html" (dict
- "context" .Page
+ "page" .Page
"src" (.Get "src")
"id" $id
) }}
\ No newline at end of file
diff --git a/layouts/shortcodes/tab.html b/layouts/shortcodes/tab.html
index 89c3f296e9..1f8dcc0690 100644
--- a/layouts/shortcodes/tab.html
+++ b/layouts/shortcodes/tab.html
@@ -22,7 +22,7 @@
{{- else }}
{{- $c:=""}}{{/* if no containing tabs shortcode is present, we display this tab as single */}}
{{- partial "shortcodes/tabs.html" (dict
- "context" .Page
+ "page" .Page
"color" ""
"content" $tabs
"groupid" ""
diff --git a/layouts/shortcodes/tabs.html b/layouts/shortcodes/tabs.html
index a6770dedab..5a64f099df 100644
--- a/layouts/shortcodes/tabs.html
+++ b/layouts/shortcodes/tabs.html
@@ -9,7 +9,7 @@
{{- $title := (.Get "title") }}
{{- $tabs := (.Scratch.Get "tabs") }}
{{- partial "shortcodes/tabs.html" (dict
- "context" .Page
+ "page" .Page
"color" $color
"content" $tabs
"groupid" $groupid