Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update robots meta tag #249

Merged
merged 1 commit into from
Mar 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<meta charset='utf-8'>
<meta name='description' content='EngineeringPaper.xyz is free and open source web app for creating shareable engineering calculations that checks/converts units, solves systems of equations, and plots.'>
<meta name='viewport' content='width=device-width,initial-scale=1'>
<meta name="googlebot" content="all" /> <!-- transformed by webworker to noindex,indexifembedded for sheet URL's-->
<meta name="robots" content="all" /> <!-- transformed by webworker to noindex,indexifembedded for sheet URL's-->
<meta name="theme-color" content="#e61f00" />

<title>EngineeringPaper.xyz</title>
Expand Down
2 changes: 1 addition & 1 deletion src/database/_worker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ export default {
});

response = new HTMLRewriter()
.on('meta[name="googlebot"]', new IndexIfEmbedded())
.on('meta[name="robots"]', new IndexIfEmbedded())
.transform(mainPage);

} else if ( (path === "/iframe_test.html" || path === "/iframe_test") &&
Expand Down
Loading