Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function Head({ description, name, slug }) {
const content =
description && description.length
? renderTreeArrayAsText(description).substring(0, 200)
: `Discover expert ${name} articles from The Times and The Sunday Times.`;
return (
{({ makeTopicUrl }) => (
<title>{name} | The Times & The Sunday Times</title>
)}
);
}
function Head({ description, name }) {
const content =
description && description.length
? renderTreeArrayAsText(description).substring(0, 200)
: `Get up to date information and read all the latest articles from ${name}.`;
return (
<title>{name} | The Times & The Sunday Times</title>
);
}