aboutsummaryrefslogtreecommitdiff
path: root/layouts/partials
diff options
context:
space:
mode:
authorChristian <zeezinator+github@gmail.com>2022-10-28 19:57:18 +0200
committerChristian <zeezinator+github@gmail.com>2022-10-28 19:57:18 +0200
commit0727f66268e40fdd60f9891f420a1d0a145aa6ec (patch)
tree91c350c70927665c82f644a3b8595da7ea7c9df8 /layouts/partials
parent8af8ff5df208ca77642f5a119a11301605b1ffc1 (diff)
Fix affected links in subdir to work with Hugo v0.101+
Diffstat (limited to 'layouts/partials')
-rw-r--r--layouts/partials/index/announcements.html4
-rw-r--r--layouts/partials/index/components.html2
2 files changed, 3 insertions, 3 deletions
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>