Skip to content

Commit c684e21

Browse files
authored
Fix(WEB-9465): emit partners.json on preview builds for search indexing (#37717)
* fix(partners): emit partners.json on preview builds for search indexing * refactor(search): drop obsolete CI_JOB_NAME branch from search.json guard
1 parent 137d732 commit c684e21

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

layouts/_default/list.partners.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{{- if (or (eq hugo.Environment "live") (in (slice "typesense_sync_preview:manual") (os.Getenv "CI_JOB_NAME" | default "" ))) -}}
1+
{{- if (in (slice "live" "preview") hugo.Environment) -}}
22
{{ $.Scratch.Add "partners_collection" slice }}
33

44
{{- range where .Site.AllPages "Type" "=" "partners" -}}

layouts/_default/list.search.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{{- if (or (eq hugo.Environment "live") (eq hugo.Environment "preview") (in (slice "typesense_sync_preview:manual" "algolia_sync_preview:manual") (os.Getenv "CI_JOB_NAME" | default "" ))) -}}
1+
{{- if (in (slice "live" "preview") hugo.Environment) -}}
22
{{ $.Scratch.Add "algoliaindex" slice }}
33
{{ $section := $.Site.GetPage "section" .Section }}
44
{{ $hugo_context := . }}

0 commit comments

Comments
 (0)