set up dynamic title
for website
This commit is contained in:
parent
55b4f08c90
commit
dea0ed1c2c
@ -20,7 +20,7 @@
|
|||||||
content="https://refine.dev/img/refine_social.png"
|
content="https://refine.dev/img/refine_social.png"
|
||||||
/>
|
/>
|
||||||
<title>
|
<title>
|
||||||
Refine - Build your React-based CRUD applications, without constraints.
|
Белые ночи
|
||||||
</title>
|
</title>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
@ -258,7 +258,12 @@ function App() {
|
|||||||
|
|
||||||
<RefineKbar />
|
<RefineKbar />
|
||||||
<UnsavedChangesNotifier />
|
<UnsavedChangesNotifier />
|
||||||
<DocumentTitleHandler />
|
<DocumentTitleHandler
|
||||||
|
handler={(title) => {
|
||||||
|
const cleanedTitle = title.autoGeneratedTitle.split('|')[0].trim()
|
||||||
|
return `${cleanedTitle} — Белые ночи`
|
||||||
|
}}
|
||||||
|
/>
|
||||||
</Refine>
|
</Refine>
|
||||||
<DevtoolsPanel />
|
<DevtoolsPanel />
|
||||||
</DevtoolsProvider>
|
</DevtoolsProvider>
|
||||||
|
Loading…
Reference in New Issue
Block a user