Skip to content

Commit

Permalink
could use separate url for baidusitemap
Browse files Browse the repository at this point in the history
  • Loading branch information
hiberabyss committed May 4, 2018
1 parent d57527b commit 7b8fceb
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion baidusitemap.ejs
@@ -1,7 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<%
var url = config.url + config.root;
var baiduUrl = config.url
if (config.baidusitemap.url) {
baiduUrl = config.baidusitemap.url
}
var url = baiduUrl + config.root;
posts.forEach(function(post){
if(post.categories){
%> <url>
Expand Down

0 comments on commit 7b8fceb

Please sign in to comment.