From bb35b026d89422021f8d24cd329411c7e3aed4f4 Mon Sep 17 00:00:00 2001 From: Ardis Lu Date: Wed, 2 Aug 2023 23:48:19 -0700 Subject: [PATCH] Add OpenSearch --- functions/atom.xml.js | 3 ++- index.html | 1 + opensearch.osdx | 12 ++++++++++++ 3 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 opensearch.osdx diff --git a/functions/atom.xml.js b/functions/atom.xml.js index 2bb6134..4e1af29 100644 --- a/functions/atom.xml.js +++ b/functions/atom.xml.js @@ -22,7 +22,7 @@ export async function onRequestGet({ env }) { }); const feed = ` - + https://ardislu.dev/ ardislu.dev @@ -32,6 +32,7 @@ export async function onRequestGet({ env }) { + ${new Date(Math.max(...updatedDates)).toISOString()} ${entries.join('\n ')} diff --git a/index.html b/index.html index 3d4bf28..26d8247 100644 --- a/index.html +++ b/index.html @@ -17,6 +17,7 @@ +