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.
Ryusuke SUZUKI <[email protected]>
| Newsgroups | gmane.os.freebsd.devel.cvs.doc |
|---|---|
| Message-ID | <[email protected]> |
The branch main has been updated by ryusuke: URL: https://cgit.FreeBSD.org/doc/commit/?id=bdb3189d381db12d99cc3a653b7c5c0a009f22f7 commit bdb3189d381db12d99cc3a653b7c5c0a009f22f7 Author: Ryusuke SUZUKI <[email protected]> AuthorDate: 2021-02-21 03:12:55 +0000 Commit: Ryusuke SUZUKI <[email protected]> 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}} _______________________________________________ [email protected] mailing list https://lists.freebsd.org/mailman/listinfo/dev-commits-doc-all To unsubscribe, send any mail to "[email protected]"