mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-25 12:56:41 +07:00
(nextjs) added page titles everywhere
This commit is contained in:
parent
3da5aba726
commit
2ebafbad52
8 changed files with 55 additions and 4 deletions
4
src/utils/ssr/getPageTitle.ts
Normal file
4
src/utils/ssr/getPageTitle.ts
Normal file
|
@ -0,0 +1,4 @@
|
|||
/** just combinates title elements to form title of the page */
|
||||
export const getPageTitle = (...props: string[]): string => {
|
||||
return ['Убежище', ...props].filter(it => it.trim()).join(' / ');
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue