From 93d47662b2ce5a6dc4867687386c912e8cd13720 Mon Sep 17 00:00:00 2001 From: Mitja Felicijan Date: Thu, 29 Jun 2023 18:40:17 +0200 Subject: Added search option with lunr.js --- themes/simple/layouts/_default/index.xml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 themes/simple/layouts/_default/index.xml (limited to 'themes/simple/layouts/_default/index.xml') diff --git a/themes/simple/layouts/_default/index.xml b/themes/simple/layouts/_default/index.xml new file mode 100644 index 0000000..1f29133 --- /dev/null +++ b/themes/simple/layouts/_default/index.xml @@ -0,0 +1,27 @@ + + + + + {{ .Site.Author.name }}'s Blog + {{ .Permalink }} + {{ .Site.Params.description }} + en-us + + {{ range (where .Site.RegularPages "Section" "posts") }} + + + {{ .Title }} + {{ .Permalink }} + {{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }} + {{ with .Site.Author.email }}{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}{{end}} + {{ .Permalink }} + + {{ " + {{ " + + + {{end}} + + + + -- cgit v1.2.3