git: db31137d09 - main - website: Fix Security Advisories and Errata Notices links in translations
"Danilo G. Baio" <[email protected]>
| Newsgroups | gmane.os.freebsd.devel.cvs.doc |
|---|---|
| Message-ID | <[email protected]> |
The branch main has been updated by dbaio: URL: https://cgit.FreeBSD.org/doc/commit/?id=db31137d09b82f14f0f838c80f581a6aaa24518d commit db31137d09b82f14f0f838c80f581a6aaa24518d Author: Danilo G. Baio <[email protected]> AuthorDate: 2025-02-01 22:57:47 +0000 Commit: Danilo G. Baio <[email protected]> CommitDate: 2025-02-01 22:57:47 +0000 website: Fix Security Advisories and Errata Notices links in translations Always link the .asc files to the English version. They are not translated. PR: 277547 Reported by: Alexander Leidinger <[email protected]> --- website/themes/beastie/layouts/security/list.html | 4 ++-- website/themes/beastie/layouts/security/single.html | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/website/themes/beastie/layouts/security/list.html b/website/themes/beastie/layouts/security/list.html index 11f204d301..ffdbd8f81e 100644 --- a/website/themes/beastie/layouts/security/list.html +++ b/website/themes/beastie/layouts/security/list.html @@ -27,7 +27,7 @@ {{ range .notices }} <tr> <td class="txtdate">{{ .date }}</td> - <td><a href="{{.Site.BaseURL | absLangURL }}security/advisories/{{ .name }}.asc">{{ .name }}</a></td> + <td><a href="{{.Site.BaseURL | absURL }}security/advisories/{{ .name }}.asc">{{ .name }}</a></td> </tr> {{ end }} {{ end }} @@ -37,7 +37,7 @@ {{ range .advisories }} <tr> <td class="txtdate">{{ .date }}</td> - <td><a href="{{.Site.BaseURL | absLangURL }}security/advisories/{{ .name }}.asc">{{ .name }}</a></td> + <td><a href="{{.Site.BaseURL | absURL }}security/advisories/{{ .name }}.asc">{{ .name }}</a></td> </tr> {{ end }} {{ end }} diff --git a/website/themes/beastie/layouts/security/single.html b/website/themes/beastie/layouts/security/single.html index 11f204d301..ffdbd8f81e 100644 --- a/website/themes/beastie/layouts/security/single.html +++ b/website/themes/beastie/layouts/security/single.html @@ -27,7 +27,7 @@ {{ range .notices }} <tr> <td class="txtdate">{{ .date }}</td> - <td><a href="{{.Site.BaseURL | absLangURL }}security/advisories/{{ .name }}.asc">{{ .name }}</a></td> + <td><a href="{{.Site.BaseURL | absURL }}security/advisories/{{ .name }}.asc">{{ .name }}</a></td> </tr> {{ end }} {{ end }} @@ -37,7 +37,7 @@ {{ range .advisories }} <tr> <td class="txtdate">{{ .date }}</td> - <td><a href="{{.Site.BaseURL | absLangURL }}security/advisories/{{ .name }}.asc">{{ .name }}</a></td> + <td><a href="{{.Site.BaseURL | absURL }}security/advisories/{{ .name }}.asc">{{ .name }}</a></td> </tr> {{ end }} {{ end }}