[Posts] Fix atom feed newline in link href error (#767)

This commit is contained in:
asl97 2024-10-23 01:11:46 +08:00 committed by GitHub
parent 7866c700fa
commit 50757a1e3b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -15,7 +15,9 @@
<title><%= post.presenter.humanized_essential_tag_string %></title>
<link href="<%= post_url(post) %>" rel="alternate"/>
<% if post.source =~ %r{\Ahttps?://} %>
<link href="<%= post.source %>" rel="related"/>
<% post.source.split("\n").each do |source| %>
<link href="<%= source %>" rel="related"/>
<% end %>
<% end %>
<id><%= post_url(post) %></id>
<updated><%= post.created_at.gmtime.xmlschema %></updated>