Skip to content

Commit

Permalink
🔧 Add support for noindex
Browse files Browse the repository at this point in the history
  • Loading branch information
AnandChowdhary committed Jan 2, 2020
1 parent f713e17 commit 4ec21da
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .staartrc
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@
"author": "[O15Y](https://o15y.com)",
"noDelayWithoutToken": "true",
"algoliaApiKey": "e4fc84ee7abe50d5e67ce42f91235da4",
"algoliaIndex": "staart"
"algoliaIndex": "staart",
"noIndex": true
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@staart/site",
"version": "1.11.3",
"version": "1.11.4",
"module": "dist/module.js",
"main": "dist/index.js",
"bin": "./dist/index.js",
Expand Down
3 changes: 3 additions & 0 deletions src/templates/meta.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
<meta name="viewport" content="width=device-width" />
{{#if assets_icon-dark_png}}<link rel="icon" type="image/png" href="/assets/icon-dark.png" />{{/if}}
{{#if assets_icon-dark_svg}}<link rel="icon" type="image/svg+xml" href="/assets/icon-dark.svg" />{{/if}}
{{#if noindex}}
<meta name="robots" content="noindex">
{{/if}}
{{#if canonical}}
<link rel="canonical" href="{{{ canonical }}}" />
{{/if}}
Expand Down

0 comments on commit 4ec21da

Please sign in to comment.