<script>
    // Make site parameters available to JavaScript
    window.siteParams = {
        numImages: {{ .Site.Params.numImages }}
    };
    
    window.store = {
    {{ range .Site.Pages }}
    // You can use any unique identifier here
    "{{ .Permalink }}": {
        // You can customize your searchable fields using any .Page parameters
        "title": "{{ .Title  }}",
            "tags": [{{ range .Params.Tags }} "{{ . }}", {{ end }}],
    "content": {{ .Content | plainify }}, // Convert HTML to p