Date: Sun, 21 Feb 2021 03:13:41 GMT From: Ryusuke SUZUKI <ryusuke@FreeBSD.org> To: doc-committers@FreeBSD.org, dev-commits-doc-all@FreeBSD.org Subject: git: bdb3189d38 - main - Fix broken links to event items on translated top page. If there is no translated event entry, these links should be to the original English entry. Message-ID: <202102210313.11L3Df37073435@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by ryusuke: URL: https://cgit.FreeBSD.org/doc/commit/?id=bdb3189d381db12d99cc3a653b7c5c0a009f22f7 commit bdb3189d381db12d99cc3a653b7c5c0a009f22f7 Author: Ryusuke SUZUKI <ryusuke@FreeBSD.org> AuthorDate: 2021-02-21 03:12:55 +0000 Commit: Ryusuke SUZUKI <ryusuke@FreeBSD.org> CommitDate: 2021-02-21 03:12:55 +0000 Fix broken links to event items on translated top page. If there is no translated event entry, these links should be to the original English entry. --- website/themes/beastie/layouts/partials/events.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/themes/beastie/layouts/partials/events.html b/website/themes/beastie/layouts/partials/events.html index f85df0d00b..0852e870cc 100644 --- a/website/themes/beastie/layouts/partials/events.html +++ b/website/themes/beastie/layouts/partials/events.html @@ -18,7 +18,7 @@ <p> <span class="txtdate">{{ dateFormat "2006-01-02" .startDate }} - {{ dateFormat "2006-01-02" .endDate }}</span> <br /> - <a href="{{.Site.BaseURL | relLangURL }}events/#{{ dateFormat "2006-01" .endDate }}:{{ $eventsCounter }}"> + <a href="{{ if (fileExists $eventsPath) -}}{{ .Site.BaseURL | relLangURL }}{{ else }}{{ $.Site.BaseURL }}{{- end }}events/#{{ dateFormat "2006-01" .endDate }}:{{ $eventsCounter }}"> {{ .name }} <br /> {{ if or (.city) (.country) }}({{end}}{{ if .city }}{{ .city }},{{ end }} {{ if .country }}{{ .country }}{{ end }}{{ if or (.city) (.country) }}){{end}}
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202102210313.11L3Df37073435>