diff options
author | Doge Gui <[email protected]> | 2022-01-15 16:33:27 +0800 |
---|---|---|
committer | Doge Gui <[email protected]> | 2022-01-15 16:33:27 +0800 |
commit | 39a9442e52a6a3b79230612071f7d7fd10533ec8 (patch) | |
tree | 4b92872f62f6d137abbe82970dac2df174bffc40 | |
parent | f897047b768de09cef73d656fa585af7ab2a4b5e (diff) | |
download | chromate-39a9442e52a6a3b79230612071f7d7fd10533ec8.tar.gz chromate-39a9442e52a6a3b79230612071f7d7fd10533ec8.tar.bz2 chromate-39a9442e52a6a3b79230612071f7d7fd10533ec8.zip |
Fix 'podcast' is not a constructor
-rw-r--r-- | scripts/feed.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/feed.js b/scripts/feed.js index e974475..edecc99 100644 --- a/scripts/feed.js +++ b/scripts/feed.js @@ -11,6 +11,8 @@ hexo.extend.generator.register("feed", (locals) => { if (!theme.rss || !theme.rss.enable) return; const podcast = require("podcast"); + if (podcast.hasOwnProperty('Podcast')) + podcast = podcast.Podcast; // Generate Podcast Categories content let categories = []; |