aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXe Iaso <me@xeiaso.net>2024-10-15 09:59:56 -0400
committerXe Iaso <me@xeiaso.net>2024-10-15 09:59:56 -0400
commit119cf6dd8cb3702be957fb1a48d28124e9d65a6e (patch)
treea5defedd44cf10041930ade5de4ed8878f2e89a0
parent3ade9f1946d5088760e44a5459e4bf72f584042d (diff)
downloadxesite-119cf6dd8cb3702be957fb1a48d28124e9d65a6e.tar.xz
xesite-119cf6dd8cb3702be957fb1a48d28124e9d65a6e.zip
bot detection isn't perfect
Signed-off-by: Xe Iaso <me@xeiaso.net>
-rw-r--r--lume/plugins/feed.ts4
-rw-r--r--lume/src/blog/2024/aj-bot-detection-not-perfect.mdx5
2 files changed, 8 insertions, 1 deletions
diff --git a/lume/plugins/feed.ts b/lume/plugins/feed.ts
index 8214b41..47b4db5 100644
--- a/lume/plugins/feed.ts
+++ b/lume/plugins/feed.ts
@@ -155,9 +155,11 @@ export default function (userOptions?: Options) {
const pageUrl = site.url(data.url, true);
const fixedContent = fixUrls(new URL(pageUrl), content || "");
+ const link = getDataValue(data, "=redirect_to") ?? site.url(data.url, true);
+
return {
title: getDataValue(data, items.title),
- url: site.url(data.url, true),
+ url: link,
description: getDataValue(data, items.description),
published: getDataValue(data, items.published),
updated: getDataValue(data, items.updated),
diff --git a/lume/src/blog/2024/aj-bot-detection-not-perfect.mdx b/lume/src/blog/2024/aj-bot-detection-not-perfect.mdx
new file mode 100644
index 0000000..bb465b0
--- /dev/null
+++ b/lume/src/blog/2024/aj-bot-detection-not-perfect.mdx
@@ -0,0 +1,5 @@
+---
+title: "Bot detection isn't perfect"
+date: 2024-10-11
+redirect_to: "https://blog.arcjet.com/bot-detection-isnt-perfect/"
+---