Don't show colon in feed title if tags are empty
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
|
||||||
<feed xmlns="http://www.w3.org/2005/Atom">
|
<feed xmlns="http://www.w3.org/2005/Atom">
|
||||||
<title><%= Danbooru.config.app_name %>: <%= params[:tags] %></title>
|
<title><%= Danbooru.config.app_name %><% if !params[:tags].blank? %>: <%= params[:tags] %><% end %></title>
|
||||||
<link href="http://<%= Danbooru.config.hostname %>/posts.atom?tags=<%= params[:tags] %>" rel="self"/>
|
<link href="http://<%= Danbooru.config.hostname %>/posts.atom?tags=<%= params[:tags] %>" rel="self"/>
|
||||||
<link href="http://<%= Danbooru.config.hostname %>/posts?tags=<%= params[:tags] %>" rel="alternate"/>
|
<link href="http://<%= Danbooru.config.hostname %>/posts?tags=<%= params[:tags] %>" rel="alternate"/>
|
||||||
<id>http://<%= Danbooru.config.hostname %>/posts.atom?tags=<%= params[:tags] %></id>
|
<id>http://<%= Danbooru.config.hostname %>/posts.atom?tags=<%= params[:tags] %></id>
|
||||||
|
|||||||
Reference in New Issue
Block a user