diff options
author | Mantas Vilčinskas <hi@mnts.lt> | 2020-08-11 13:17:05 +0300 |
---|---|---|
committer | Mantas Vilčinskas <hi@mnts.lt> | 2020-10-27 21:27:08 +0200 |
commit | 288fd4215a072f952f51e8dd6973484fb5ed1273 (patch) | |
tree | aaf970e1c82ff51bb8f90f35763bc7ef5d7354e2 /layouts/partials/index | |
parent | 30dbc121b522bb9626f730b2e351c46e6750f02c (diff) |
Fix #126 - support for non-root dir
Diffstat (limited to 'layouts/partials/index')
-rw-r--r-- | layouts/partials/index/announcements.html | 4 | ||||
-rw-r--r-- | layouts/partials/index/components.html | 2 | ||||
-rw-r--r-- | layouts/partials/index/tabs.html | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/layouts/partials/index/announcements.html b/layouts/partials/index/announcements.html index b629655..060c049 100644 --- a/layouts/partials/index/announcements.html +++ b/layouts/partials/index/announcements.html @@ -6,12 +6,12 @@ {{ range $active }} <div class="padding"> <p> - <a href="{{ .Permalink }}"><strong class="bold">{{ .Title }} →</strong></a> + <a href="{{ .RelPermalink }}"><strong class="bold">{{ .Title }} →</strong></a> </p> <p><small> {{ range .Params.Affected }} - <a href="/affected/{{ . | urlize }}/" class="tag no-underline">{{ . }}</a> + <a href="affected/{{ . | urlize }}/" class="tag no-underline">{{ . }}</a> {{ end }} </small></p> diff --git a/layouts/partials/index/components.html b/layouts/partials/index/components.html index c45cee2..ff5174f 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="affected/{{ .name | urlize }}/" class="no-underline"> {{ default .name .displayName }} </a> diff --git a/layouts/partials/index/tabs.html b/layouts/partials/index/tabs.html index 9544890..477cacb 100644 --- a/layouts/partials/index/tabs.html +++ b/layouts/partials/index/tabs.html @@ -1,7 +1,7 @@ {{ if .Site.Params.customTabs }} <div class="tabs"> <div class="contain tabs--inner"> - <a href="/#incidents" class="tab tab--current"> + <a href="#incidents" class="tab tab--current"> {{ T "incidents" }} </a> |