Skip to content

Commit a7edfd1

Browse files
committed
add audience content to algolia indexing
1 parent 38188e1 commit a7edfd1

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<!-- Custom head -->
2-
{{ if site.Params.add_ons.docSearch -}}
2+
{{ if site.Params.add_ons.docSearch -}}
33
{{ $options := (dict "targetPath" "/css/main.min.css" "outputStyle" "compressed") }}
44
{{ $style := resources.Get "scss/app.scss" | css.Sass $options }}
5-
<link rel="stylesheet" href="{{ $style.Permalink }}">
5+
<link rel="stylesheet" href="{{ $style.Permalink }}">
66
{{ end -}}
7+
<meta name="docsearch:audience" content="{{ .Params.audience | default " public" }}">

0 commit comments

Comments
 (0)