diff options
| author | Xe Iaso <me@xeiaso.net> | 2024-10-15 09:59:56 -0400 |
|---|---|---|
| committer | Xe Iaso <me@xeiaso.net> | 2024-10-15 09:59:56 -0400 |
| commit | 119cf6dd8cb3702be957fb1a48d28124e9d65a6e (patch) | |
| tree | a5defedd44cf10041930ade5de4ed8878f2e89a0 /lume/plugins | |
| parent | 3ade9f1946d5088760e44a5459e4bf72f584042d (diff) | |
| download | xesite-119cf6dd8cb3702be957fb1a48d28124e9d65a6e.tar.xz xesite-119cf6dd8cb3702be957fb1a48d28124e9d65a6e.zip | |
bot detection isn't perfect
Signed-off-by: Xe Iaso <me@xeiaso.net>
Diffstat (limited to 'lume/plugins')
| -rw-r--r-- | lume/plugins/feed.ts | 4 |
1 files changed, 3 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), |
