diff --git a/public/robots.txt b/public/robots.txt index 288c1d3..481213d 100644 --- a/public/robots.txt +++ b/public/robots.txt @@ -1,4 +1,6 @@ User-agent: * -Disallow: +Disallow: / +Allow: /ps7 +Allow: /pks35k Sitemap: https://kspsuti.ru/sitemap.xml \ No newline at end of file diff --git a/src/entities/last-update-at/index.tsx b/src/entities/last-update-at/index.tsx index aad2e95..c1d0f57 100644 --- a/src/entities/last-update-at/index.tsx +++ b/src/entities/last-update-at/index.tsx @@ -19,7 +19,7 @@ export function LastUpdateAt({ date }: { <>
- Последнее обновление:{'\n'}{now && formatDistanceStrict(date, now, { locale: dateFnsRuLocale, addSuffix: true })} + Последнее обновление:{'\n'}{now && date.getTime() <= now ? formatDistanceStrict(date, now, { locale: dateFnsRuLocale, addSuffix: true }) : 'только что'}
diff --git a/src/pages/index.tsx b/src/pages/index.tsx index 44b58f5..bc15884 100644 --- a/src/pages/index.tsx +++ b/src/pages/index.tsx @@ -6,7 +6,7 @@ export async function getServerSideProps(): Promise