diff --git a/src/components/RunMap/index.tsx b/src/components/RunMap/index.tsx index aebab23b42b..cbbb937aec0 100644 --- a/src/components/RunMap/index.tsx +++ b/src/components/RunMap/index.tsx @@ -62,7 +62,7 @@ const RunMap = ({ if (ref !== null) { const map = ref.getMap(); if (map && IS_CHINESE) { - map.addControl(new MapboxLanguage({defaultLanguage: 'zh-Hans'})); + map.addControl(new MapboxLanguage({defaultLanguage: 'EN'})); } // all style resources have been downloaded // and the first visually complete rendering of the base style has occurred. diff --git a/src/pages/index.tsx b/src/pages/index.tsx index 3c3fdd4512d..98e2e0115fc 100644 --- a/src/pages/index.tsx +++ b/src/pages/index.tsx @@ -27,7 +27,7 @@ import { const Index = () => { const { siteTitle } = useSiteMetadata(); const { activities, thisYear } = useActivities(); - const [year, setYear] = useState(thisYear); + const [year, setYear] = useState('Total'); const [runIndex, setRunIndex] = useState(-1); const [runs, setActivity] = useState( filterAndSortRuns(activities, year, filterYearRuns, sortDateFunc) diff --git a/src/static/site-metadata.ts b/src/static/site-metadata.ts index 27b70e5ac51..435b5e2c6d6 100644 --- a/src/static/site-metadata.ts +++ b/src/static/site-metadata.ts @@ -21,7 +21,7 @@ const data: ISiteMetadataResult = { }, { name: 'About', - url: 'https://yer1k.gitlab.io/website/', + url: 'https://yer1k.weebly.com/', }, ], }; diff --git a/src/utils/const.ts b/src/utils/const.ts index 6bf98028812..2f16e149b52 100644 --- a/src/utils/const.ts +++ b/src/utils/const.ts @@ -48,8 +48,8 @@ const CHINESE_INFO_MESSAGE = (yearLength: number, year: string): string => { return `我用 App 记录自己跑步 ${yearLength} 年了,下面列表展示的是${yearStr}的数据`; }; const ENGLISH_INFO_MESSAGE = (yearLength: number, year: string): string => - `Running Journey with ${yearLength} Years, the table shows year ${year} data. - \n One at a time. \n Time will tell.`; + `Running Journey with ${yearLength} Years. Please feel free to click each year + to view more detailed data. \n One at a time. \n Time will tell.`; // not support English for now const CHINESE_LOCATION_INFO_MESSAGE_FIRST =