From 4bc784537bb4088d1a608ee43a47dc5f74043244 Mon Sep 17 00:00:00 2001 From: curbengh <43627182+curbengh@users.noreply.github.com> Date: Wed, 27 Nov 2019 06:58:14 +0000 Subject: [PATCH] feat: support rss2 and multi-format feed --- layout/_partial/head.ejs | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/layout/_partial/head.ejs b/layout/_partial/head.ejs index c33326d..cb83a27 100644 --- a/layout/_partial/head.ejs +++ b/layout/_partial/head.ejs @@ -20,8 +20,18 @@ <% if (title){ %><%= title %> | <% } %><%= config.title %> <%- open_graph({twitter_id: theme.twitter, google_plus: theme.google_plus, fb_admins: theme.fb_admins, fb_app_id: theme.fb_app_id}) %> - <% if (theme.rss){ %> - + <% if (config.feed) { %> + <% if (config.feed.type.length && config.feed.path.length) { %> + <% if (typeof config.feed.type === 'string' )) { %> + + <% } else { %> + <% for (const i in config.feed.type) { %> + + <% } %> + <% } %> + <% } %> + <% } else if (theme.rss) { %> + <% } %> <% if (theme.favicon){ %>