diff options
author | Doge-GUI <[email protected]> | 2021-05-13 19:35:21 +0800 |
---|---|---|
committer | GitHub <[email protected]> | 2021-05-13 19:35:21 +0800 |
commit | c796b777150f5cd186a9017c1ffe857734b0df9c (patch) | |
tree | f21d754d3c1ad9a9747124f0d45e89438bf57307 /scripts | |
parent | 08c1c79cb6062af2e4e3095e8865282016fad1f7 (diff) | |
download | chromate-c796b777150f5cd186a9017c1ffe857734b0df9c.tar.gz chromate-c796b777150f5cd186a9017c1ffe857734b0df9c.tar.bz2 chromate-c796b777150f5cd186a9017c1ffe857734b0df9c.zip |
Remove relative links with rss feed
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/feed.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/feed.js b/scripts/feed.js index ef23998..467ac97 100644 --- a/scripts/feed.js +++ b/scripts/feed.js @@ -34,7 +34,7 @@ hexo.extend.generator.register("feed", (locals) => { locals.posts.sort('date', -1).each(function (post) { if (!post.podcast) return; let description = post.content.replace(/onclick=".*?"/gi, '') - .replace(/class=".*?"/gi, '') + .replace(/class=".*?"/gi, '').replace(/href=#".*?"/gi, '') .replace(/id=".*?"/gi, '').replace(/rel=".*?"/gi, '') .replace(/title=".*?"/gi, '').replace(/\n/g, "") .replace(/\s+/g, ' ').trim(); |