aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMantas Vilčinskas <hi@mnts.lt>2022-10-29 15:09:08 +0300
committerGitHub <noreply@github.com>2022-10-29 15:09:08 +0300
commiteadc507a96d77b3995ac7d78f78e83eb1491ecb9 (patch)
tree91c350c70927665c82f644a3b8595da7ea7c9df8
parent8af8ff5df208ca77642f5a119a11301605b1ffc1 (diff)
parent0727f66268e40fdd60f9891f420a1d0a145aa6ec (diff)
Fix affected links in subdir to work with Hugo v0.101+ #252 from zeeZ/fix-relurl
Fix affected links in subdir to work with Hugo v0.101+
-rw-r--r--layouts/issues/issue.html2
-rw-r--r--layouts/partials/index/announcements.html4
-rw-r--r--layouts/partials/index/components.html2
3 files changed, 4 insertions, 4 deletions
diff --git a/layouts/issues/issue.html b/layouts/issues/issue.html
index e2d283e..71bb30a 100644
--- a/layouts/issues/issue.html
+++ b/layouts/issues/issue.html
@@ -20,7 +20,7 @@
<p><small>
{{ range .Params.Affected }}
- <a href="{{ printf "/affected/%s/" (. | urlize) | relURL }}" class="tag no-underline">{{ . }}</a>
+ <a href="{{ printf "affected/%s/" (. | urlize) | relURL }}" class="tag no-underline">{{ . }}</a>
{{ end }}
</small></p>
diff --git a/layouts/partials/index/announcements.html b/layouts/partials/index/announcements.html
index f8f7471..2bb7f08 100644
--- a/layouts/partials/index/announcements.html
+++ b/layouts/partials/index/announcements.html
@@ -16,7 +16,7 @@
<p><small>
{{ range .Params.Affected }}
- <a href="{{ printf "/affected/%s/" (. | urlize) | relURL }}" class="tag no-underline">{{ . }}</a>
+ <a href="{{ printf "affected/%s/" (. | urlize) | relURL }}" class="tag no-underline">{{ . }}</a>
{{ end }}
</small></p>
@@ -37,7 +37,7 @@
<p><small>
{{ range .Params.Affected }}
- <a href="{{ printf "/affected/%s/" (. | urlize) | relURL }}" class="tag no-underline">{{ . }}</a>
+ <a href="{{ printf "affected/%s/" (. | urlize) | relURL }}" class="tag no-underline">{{ . }}</a>
{{ end }}
</small></p>
diff --git a/layouts/partials/index/components.html b/layouts/partials/index/components.html
index e3a0d89..f9937f2 100644
--- a/layouts/partials/index/components.html
+++ b/layouts/partials/index/components.html
@@ -51,7 +51,7 @@
{{ $thisIsDown := where $activeComponentIssues "Params.severity" "=" "down" }}
<div class="component" data-status="{{ if $thisIsDown }}down{{ else }}{{ if $thisIsDisrupted }}disrupted{{ else }}{{ if $thisIsNotice }}notice{{ else }}ok{{ end }}{{ end }}{{ end }}">
- <a href="{{ printf "/affected/%s/" ($system.name | urlize) | relURL }}" class="no-underline">
+ <a href="{{ printf "affected/%s/" ($system.name | urlize) | relURL }}" class="no-underline">
{{ default $system.name $system.displayName }}
</a>