diff --git a/layouts/layout/index.js b/layouts/layout/index.js
index 8002066b..5f8645ac 100644
--- a/layouts/layout/index.js
+++ b/layouts/layout/index.js
@@ -127,9 +127,27 @@ export default function Layout(props) {
return null;
};
+ const filterYoastTags = (yoastString) => {
+ let filteredText = yoastString;
+ // removing "Written By" and "Est. reading time" meta tags as requested in FLAG-977
+ const regexes = [
+ //i,
+ //i,
+ //i,
+ //i,
+ //i,
+ ];
+
+ regexes.forEach((regex) => {
+ filteredText = filteredText.replace(regex, '');
+ });
+
+ return filteredText;
+ };
+
const isProduction = process.env.NEXT_PUBLIC_FEATURE_ENV === 'production';
const canonicalLink = getCanonicalLink(yoast);
- const yoastMetaTags = ReactHtmlParser(parseYoast(yoast));
+ const yoastMetaTags = ReactHtmlParser(filterYoastTags(parseYoast(yoast)));
return (
<>