{{- $index := slice -}} {{- $pages := .Site.RegularPages -}} {{- if .Site.Params.page.hiddenFromSearch -}} {{- $pages = where $pages "Params.hiddenfromsearch" false -}} {{- else -}} {{- $pages = where $pages "Params.hiddenfromsearch" "!=" true -}} {{- end -}} {{- range $pages -}} {{- $uri := .RelPermalink -}} {{- $meta := dict "uri" $uri "title" .Title "tags" .Params.tags "categories" .Params.categories -}} {{- $meta = .PublishDate.Format ($.Site.Params.dateFormat | default "2006-01-02") | dict "date" | merge $meta -}} {{- with .Description -}} {{- $index = $index | append (dict "content" . "objectID" $uri | merge $meta) -}} {{- end -}} {{- $params := .Params | merge $.Site.Params.page -}} {{- $content := dict "content" .Content "ruby" $params.ruby "fraction" $params.fraction "fontawesome" $params.fontawesome | partial "function/content.html" -}} {{- range $i, $chunked := split $content "