Skip to content

Commit dceb73f

Browse files
committed
feat: add configurable robots meta tag
Following prior art, enable config-based setting of `<meta name="robots" content="{value}">` tag to allow learner record MFE to instruct search crawlers / indexers how to handle its content. - [feat: add configurable robots meta tag (frontend-app-learning)](openedx/frontend-app-learning#1520) - [feat: allow setting robots content attribute through config frontend-build#611](openedx/frontend-build#611) FIXES: APER-4231
1 parent 0516d32 commit dceb73f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

public/index.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55
<meta charset="utf-8">
66
<meta name="viewport" content="width=device-width, initial-scale=1.0">
77
<link rel="shortcut icon" href="<%=htmlWebpackPlugin.options.FAVICON_URL%>" type="image/x-icon" />
8+
<% if (htmlWebpackPlugin.options.META_TAG_ROBOTS_CONTENT_ATTR) { %>
9+
<meta name="robots" content="<%= htmlWebpackPlugin.options.META_TAG_ROBOTS_CONTENT_ATTR %>">
10+
<% } %>
811
</head>
912
<body>
1013
<div id="root"></div>

0 commit comments

Comments
 (0)