aboutsummaryrefslogtreecommitdiff
path: root/themes/simple/layouts/section/section.xml
diff options
context:
space:
mode:
authorMitja Felicijan <m@mitjafelicijan.com>2023-06-29 18:40:17 +0200
committerMitja Felicijan <m@mitjafelicijan.com>2023-06-29 18:40:17 +0200
commit93d47662b2ce5a6dc4867687386c912e8cd13720 (patch)
treea609e947843bdd297121fd49a9e16e3dea2a1fd4 /themes/simple/layouts/section/section.xml
parent89f8bc803364ca52ca0dee1a429261b9f3d9ed0e (diff)
downloadmitjafelicijan.com-93d47662b2ce5a6dc4867687386c912e8cd13720.tar.gz
Added search option with lunr.js
Diffstat (limited to 'themes/simple/layouts/section/section.xml')
-rw-r--r--themes/simple/layouts/section/section.xml27
1 files changed, 27 insertions, 0 deletions
diff --git a/themes/simple/layouts/section/section.xml b/themes/simple/layouts/section/section.xml
new file mode 100644
index 0000000..889cf08
--- /dev/null
+++ b/themes/simple/layouts/section/section.xml
@@ -0,0 +1,27 @@
1<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom">
2
3 <channel>
4
5 <title>{{ .Site.Author.name }}'s Notes</title>
6 <link>{{ .Permalink }}</link>
7 <description>{{ .Site.Params.description }}</description>
8 <language>en-us</language>
9
10 {{ range (where .Site.RegularPages "Section" "notes") }}
11 <item>
12
13 <title>{{ .Title }}</title>
14 <link>{{ .Permalink }}</link>
15 <pubDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</pubDate>
16 {{ with .Site.Author.email }}<author>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</author>{{end}}
17 <guid>{{ .Permalink }}</guid>
18
19 <description>{{ "<![CDATA[" | safeHTML }} {{ .Summary }}]]></description>
20 <content:encoded>{{ "<![CDATA[" | safeHTML }} {{ .Content }}]]></content:encoded>
21
22 </item>
23 {{end}}
24
25 </channel>
26
27</rss>