From be4957a05dfc36f870e608f119a878f911a4d48c Mon Sep 17 00:00:00 2001 From: Serghei Iakovlev Date: Sun, 17 Jul 2022 12:32:24 +0200 Subject: Set up the pipeline for indexing content in multiple languages --- layouts/index.json | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'layouts/index.json') 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 -}} -- cgit v1.2.3