diff --git a/assets/images/version.template.svg b/assets/images/version.template.svg
index f0e9b640..239e0d74 100644
--- a/assets/images/version.template.svg
+++ b/assets/images/version.template.svg
@@ -16,7 +16,7 @@
-
+
diff --git a/assets/scss/core/_rtl.scss b/assets/scss/core/_rtl.scss
index 3885a242..6353aa30 100644
--- a/assets/scss/core/_rtl.scss
+++ b/assets/scss/core/_rtl.scss
@@ -25,6 +25,7 @@
.fa-pen-to-square,
.fa-pen-clip,
.fa-square-pen,
+ .fa-feather,
.fa-list-ul,
.fa-list-check,
.fa-clipboard-list,
diff --git a/hugo.toml b/hugo.toml
index c4882639..e8974b85 100644
--- a/hugo.toml
+++ b/hugo.toml
@@ -728,7 +728,7 @@ end_level = 6
# Whether to decrease the H1 heading level in content.
decrease_h1 = false
-# Post disclaimer/declaration.
+# {{< version 1.0.0 >}} Post disclaimer/declaration.
[params.disclaimer]
# Whether to enable the disclaimer.
enable = false
diff --git a/layouts/_shortcodes/version.html b/layouts/_shortcodes/version.html
index ec31e3d3..69e78d9c 100644
--- a/layouts/_shortcodes/version.html
+++ b/layouts/_shortcodes/version.html
@@ -2,14 +2,14 @@
Version badge shortcode.
Renders an inline SVG version badge linking to the repository release/tag.
- @param {String} 0 - The version string (e.g., "v1.0.0")
+ @param {String} 0 - The version string (e.g., "1.0.0")
@param {String} [1="new"] - The type: "new", "changed", "deleted", "deprecated"
@param {String} [2] - Custom URL override (defaults to repo_version.url)
@param {String} [3] - Custom repo name override (defaults to repo_version.name)
@example
- {{< version "v1.0.0" >}}
- {{< version "v0.4.5" "deprecated" >}}
+ {{< version 1.0.0 >}}
+ {{< version 0.4.5 deprecated >}}
*/ -}}
{{- $rvc := dict "Page" .Page "Key" "repo_version" | partial "function/param.html" | default dict -}}
{{- $version := .Get 0 -}}
@@ -18,10 +18,10 @@
{{- $isCJK := partial "function/is-cjk.html" . -}}
{{- $url := printf "%v%v" (.Get 2 | default $rvc.url) $version -}}
{{- $colorMap := dict
- "new" "00b1ff"
- "changed" "81bd65"
- "deleted" "ff5252"
- "deprecated" "ff9101"
+ "new" "#00b1ff"
+ "changed" "#81bd65"
+ "deleted" "#ff5252"
+ "deprecated" "#ff9101"
-}}
{{- $color := index $colorMap $type | default (index $colorMap "new") -}}
{{- $repoName := .Get 3 | default $rvc.name -}}