[deploy] Fix erb output on sitemaps (#7009)

This commit is contained in:
Ben Halpern 2020-04-01 14:24:12 -04:00 committed by GitHub
parent 6ce09c2c87
commit be63775a46
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<%= @articles.each do |path, last_comment_at| %>
<% @articles.each do |path, last_comment_at| %>
<url>
<loc><%= ApplicationConfig['APP_PROTOCOL'] %><%= ApplicationConfig['APP_DOMAIN'] %><%= path %></loc>
<lastmod><%= last_comment_at.strftime("%F") %></lastmod>