Restored to 'eede1dca5c3b2cb640881195fc428ec171b5dce3'
Replit-Restored-To: eede1dca5c
This commit is contained in:
@@ -1,17 +0,0 @@
|
||||
import { useEffect } from "react";
|
||||
|
||||
export function usePageMeta(title: string, description?: string) {
|
||||
useEffect(() => {
|
||||
const suffix = " | Folx Music Television";
|
||||
document.title = title + suffix;
|
||||
if (description) {
|
||||
let meta = document.querySelector('meta[name="description"]') as HTMLMetaElement;
|
||||
if (meta) meta.content = description;
|
||||
}
|
||||
return () => {
|
||||
document.title = "Folx Music Television - Volksmusik & Schlager TV Sender | folx.tv";
|
||||
let meta = document.querySelector('meta[name="description"]') as HTMLMetaElement;
|
||||
if (meta) meta.content = "FOLX TV – Ihr Fernsehsender für Volksmusik und Schlager. Musikvideos, Live-Shows, Interviews und aktuelle Nachrichten aus der Welt der volkstümlichen Musik. Jetzt einschalten!";
|
||||
};
|
||||
}, [title, description]);
|
||||
}
|
||||
Reference in New Issue
Block a user