diff --git a/config.toml b/config.toml index c97c58bc4e5f03c9202643329b01a944321c60fc..b017c5d0bdab1247a246854c2a8525fb19f44bcc 100644 --- a/config.toml +++ b/config.toml @@ -255,7 +255,7 @@ paginate = 10 copyright = "Copyright (c) 2019 - 2020, openEuler; all rights reserved.
The openEuler has registered trademarks and uses trademarks. For a list of trademarks of the openEuler, please see our Trademark Usage page. Privacy Policy and Terms of Use" # Format dates with Go's time formatting - date_format = "January 2, 2019" + date_format = "2019-01-02" logo = "img/openeuler.png" logo_small = "img/openeuler.png" diff --git a/i18n/en.toml b/i18n/en.toml index ddce93740cb87888e1cb272b8254d0492545c056..af10b8b3f2c203254716ff88b817c97bb6791e4f 100644 --- a/i18n/en.toml +++ b/i18n/en.toml @@ -13,3 +13,17 @@ other = "Welcome to openEuler" [main_cards_description] other = "The openEuler Project is a community-driven free software effort focused on delivering an operation system open source ecosystem." +[main_events_title] +other = "Upcoming Events" + +[main_news_title] +other = "News" + +[main_list_more] +other = "more" + +[main_events_subtitle] +other = "EVENT" + +[main_news_subtitle] +other = "NEWS" diff --git a/i18n/zh.toml b/i18n/zh.toml index 91a2cedfe97e9f4064c581b52de8da465c0d149f..485074c2df013dd1151be6146478bd0ffec044cc 100644 --- a/i18n/zh.toml +++ b/i18n/zh.toml @@ -12,3 +12,17 @@ other = "欢迎加入openEuler社区" [main_cards_description] other = "openEuler社区致力于构建一个开放的操作系统社区" +[main_events_title] +other = "未来事件" + +[main_news_title] +other = "新闻" + +[main_list_more] +other = "更多" + +[main_events_subtitle] +other = "事件" + +[main_news_subtitle] +other = "新闻" diff --git a/themes/project/layouts/partials/events.html b/themes/project/layouts/partials/events.html index 9dfe7d030741eae77cfe6ffc0eeaf3625c6919cf..b9cf431286cd9ea82195a1626c5e14aa1b33ede6 100644 --- a/themes/project/layouts/partials/events.html +++ b/themes/project/layouts/partials/events.html @@ -2,9 +2,9 @@ {{ if .Site.Params.events.enable }}

- Upcoming Events + {{ i18n "main_events_title" }} -

more >

+

{{ i18n "main_list_more" }} >

@@ -14,7 +14,7 @@
  • - EVENTS | {{ .Date.Format .Site.Params.date_format }} + {{ i18n "main_events_subtitle" }} | {{ .Date.Format .Site.Params.date_format }}

    {{ .Title }}

    diff --git a/themes/project/layouts/partials/news.html b/themes/project/layouts/partials/news.html index 45dc1420e75ad88c2ee827c4f51494f92e6c8239..9c61e5e5659ac13cfe894a3c608773a93bc6dc16 100644 --- a/themes/project/layouts/partials/news.html +++ b/themes/project/layouts/partials/news.html @@ -3,9 +3,9 @@
  • - NEWS | {{ .Date.Format .Site.Params.date_format }} + {{ i18n "main_news_subtitle" }} | {{ .Date.Format .Site.Params.date_format }}

    {{ .Title }}