Skip to content

Commit

Permalink
Remove <data />
Browse files Browse the repository at this point in the history
Official site not support <data /> element anymore.
  • Loading branch information
johnwu1114 committed Sep 12, 2017
1 parent 0c7a054 commit 52e462e
Showing 1 changed file with 1 addition and 17 deletions.
18 changes: 1 addition & 17 deletions baidusitemap.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -6,22 +6,6 @@
<url>
<loc><%- encodeURI(url + post.path) %></loc>
<lastmod><%= post.updated.toDate().toISOString() || post.date.toDate().toISOString() %></lastmod>
<data>
<display>
<title><%-: post.title %></title>
<pubTime><%= post.date.toDate().toISOString() %></pubTime>
<%if(post.tags){ post.tags.toArray().forEach(function(tag){ %>
<tag><%= tag.name %></tag>
<% })}/*%>
<content><%-: post.content%></content>
<% */%>
<%if(post.tags && post.categories){ %>
<% post.categories.toArray().forEach(function(category,index){ %>
<% if(index < 3){ %>
<breadCrumb title="<%= category.name %>" url="<%- encodeURI(url + category.path) %>"/>
<%}})} %>
</display>
</data>
</url>
<%}}) %>
</urlset>
</urlset>

0 comments on commit 52e462e

Please sign in to comment.