diff options
| author | Serghei Iakovlev <egrep@protonmail.ch> | 2022-07-17 12:32:24 +0200 |
|---|---|---|
| committer | Serghei Iakovlev <egrep@protonmail.ch> | 2022-07-17 12:32:24 +0200 |
| commit | be4957a05dfc36f870e608f119a878f911a4d48c (patch) | |
| tree | 84c4b0e6604c7fc2bde045070cc98acf0e105c0f /layouts/index.json | |
| parent | 581ad2adf8536d20a0a37e6b2158aa6438a1a130 (diff) | |
| download | gohugo-theme-ed-be4957a05dfc36f870e608f119a878f911a4d48c.tar.gz | |
Set up the pipeline for indexing content in multiple languages
Diffstat (limited to 'layouts/index.json')
| -rw-r--r-- | layouts/index.json | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/layouts/index.json b/layouts/index.json index 538cfcc..a71d1e6 100644 --- a/layouts/index.json +++ b/layouts/index.json @@ -21,20 +21,20 @@ {{ if .File }} {{- $pageData := (dict "objectID" $page.File.UniqueID - "date" $page.Date.UTC.Unix "publishDate" $page.PublishDate + "date" $page.Date.UTC.Unix "lastmod" $page.Lastmod.UTC.Unix - "expiryDate" $page.ExpiryDate.UTC.Unix - "lang" $page.Lang + "lang" ($page.Params.lang | default $page.Lang) "title" $page.Title "href" $page.Permalink "kind" $page.Kind "type" $page.Type "section" $page.Section - "tags" (delimit ($page.Params.tags | default slice) " ; ") - "categories" (delimit ($page.Params.categories | default slice) " ; ") "content" $page.Plain + "categories" ($page.Params.categories | default slice) + "tags" ($page.Params.tags | default slice) ) -}} + {{- $.Scratch.Add "pagesIndex" $pageData -}} {{- $.Scratch.Add "urlsAdded" $page.Permalink -}} {{- end -}} |
