Skip to content

Commit ad538ac

Browse files
Allow noindex to be set from a page attribute (#166)
* allow the noindex page attribute to switch on noindex for a page * correct metadata formatting and noindex formatting on page
1 parent 773b37e commit ad538ac

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

docs/contributors/modules/docs-style/pages/formatting.adoc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
= Formatting
2+
:page-noindex: true
23
:experimental:
34

45
[#styling-text]

ui/src/partials/head-meta.hbs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
1-
{{!-- Add additional meta tags here --}}
1+
{{#if page.attributes.noindex}}
2+
<meta name="robots" content="noindex">
3+
{{/if}}
4+
{{!-- Add additional meta tags here --}}

0 commit comments

Comments
 (0)