{{ define "main" }}

{{ partial "primary_top.html" . }}

<div class="search-results">
    <script>
        (function() {
            let cx;
            {{ if .Site.Data.args.preliminary }}
                cx = '{{ .Site.Data.args.preliminary_search_engine_id }}';
            {{ else if .Site.Data.args.archive }}
                cx = '{{ .Site.Data.args.archive_search_engine_id }}';
            {{ else }}
                cx = '{{ .Site.Data.args.main_search_engine_id }}';
            {{ end }}
            i