{{ $isDocsPage := eq .Section "docs" }} {{ $app := resources.Get "js/app.js" | resources.ExecuteAsTemplate "js/app.js" . | fingerprint }} {{ if $isDocsPage }} {{ $version := index (split .File.Path "/") 1 }} {{ $apiKey := site.Params.algolia_api_key }} {{ end }}