git: ea762c2022 - main - Disable translation of press release items for all languages

Guangyuan Yang ygy at FreeBSD.org
Thu Aug 5 09:38:01 UTC 2021


The branch main has been updated by ygy:

URL: https://cgit.FreeBSD.org/doc/commit/?id=ea762c2022c4e7a9c55e7e57fd65312f814fc069

commit ea762c2022c4e7a9c55e7e57fd65312f814fc069
Author:     Guangyuan Yang <ygy at FreeBSD.org>
AuthorDate: 2021-08-05 09:29:44 +0000
Commit:     Guangyuan Yang <ygy at FreeBSD.org>
CommitDate: 2021-08-05 09:29:44 +0000

    Disable translation of press release items for all languages
    
    There is no activity on the translation of press release items for a
    long while for all languages. Instead of displaying obsolete items from
    2005, it seems better to just display up-to-date English ones.
    
    PR:             256020
    Reviewed by:    bcr
    Differential Revision:  https://reviews.freebsd.org/D31421
---
 website/themes/beastie/layouts/partials/press.html | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/website/themes/beastie/layouts/partials/press.html b/website/themes/beastie/layouts/partials/press.html
index 6bca5eece6..3b3b4a79a2 100644
--- a/website/themes/beastie/layouts/partials/press.html
+++ b/website/themes/beastie/layouts/partials/press.html
@@ -1,9 +1,6 @@
 {{ $pressPath := (printf "data/%s/press/press.toml" $.Language.Lang) }}
 
 {{ $translatedPressEnabled := false }}
-{{ if and (fileExists $pressPath) (ne $.Language.Lang "ja") }}
-  {{ $translatedPressEnabled = true }}
-{{ end }}
 
 {{ $pressData := "" }}
 {{ if $translatedPressEnabled -}}


More information about the dev-commits-doc-all mailing list