aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMantas Vilčinskas <hi@mnts.lt>2020-08-12 20:34:44 +0300
committerMantas Vilčinskas <hi@mnts.lt>2020-10-27 21:27:08 +0200
commit4e5ba51a3fa929d01307a685a9c7338ff89a4b70 (patch)
tree841ba30c0c1794b459fa7fecf6215b816ff2232d
parent1428e835a78d08799257c2c59e66e5f4e8c4334e (diff)
Relative URLs for /affected/ done #126
-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, 5 insertions, 3 deletions
diff --git a/layouts/issues/issue.html b/layouts/issues/issue.html
index 08a6b92..e2d283e 100644
--- a/layouts/issues/issue.html
+++ b/layouts/issues/issue.html
@@ -20,7 +20,7 @@
<p><small>
{{ range .Params.Affected }}
- <a href="affected/{{ . | urlize }}/" 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 060c049..25a1719 100644
--- a/layouts/partials/index/announcements.html
+++ b/layouts/partials/index/announcements.html
@@ -11,7 +11,9 @@
<p><small>
{{ range .Params.Affected }}
- <a href="affected/{{ . | urlize }}/" 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 ff5174f..82964fe 100644
--- a/layouts/partials/index/components.html
+++ b/layouts/partials/index/components.html
@@ -59,7 +59,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="affected/{{ .name | urlize }}/" class="no-underline">
+ <a href="{{ printf "/affected/%s/" (.name | urlize) | relURL }}" class="no-underline">
{{ default .name .displayName }}
</a>