Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/git/git-scm.com.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPedro Rijo <pedrorijo91@gmail.com>2018-01-16 11:48:16 +0300
committerGitHub <noreply@github.com>2018-01-16 11:48:16 +0300
commita9a28043439088f9af5034df34989c91086ab334 (patch)
tree3d036521ec999cf64dd13c4585eb1ac0cc0e0a8c
parent28399835a6333a9cca85f3b92280eb3849347277 (diff)
parent7654802b92b4a67333811d03c8945d28587309d9 (diff)
Merge pull request #1118 from jasonlong/dont-feed-me
Remove blog feed
-rw-r--r--app/controllers/blog_controller.rb8
-rw-r--r--app/views/blog/feed.html.erb22
-rw-r--r--app/views/layouts/application.html.erb1
-rw-r--r--config/routes.rb1
4 files changed, 0 insertions, 32 deletions
diff --git a/app/controllers/blog_controller.rb b/app/controllers/blog_controller.rb
index ad9ccae2..0f3959bf 100644
--- a/app/controllers/blog_controller.rb
+++ b/app/controllers/blog_controller.rb
@@ -17,19 +17,11 @@ class BlogController < ApplicationController
end
def index
-
- end
-
- def feed
- render :action => "feed", :layout => false
end
# for Gitscm blog
def gitscm
-
end
private
-
-
end
diff --git a/app/views/blog/feed.html.erb b/app/views/blog/feed.html.erb
deleted file mode 100644
index a4b119d6..00000000
--- a/app/views/blog/feed.html.erb
+++ /dev/null
@@ -1,22 +0,0 @@
-<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
- <channel>
- <title>Git - Blog</title>
- <link><%= request.protocol %><%= request.host_with_port %></link>
- <atom:link href='<%= request.url %>' rel='self' type='application/rss+xml' />
- <description>Git is a free and open source distributed version control system designed to handle everything from small to very large projects with speed and efficiency.</description>
-
- <% list_posts.each do |entry| %>
- <% post = preview_post(entry[:file]) %>
- <item>
- <title><%= entry[:title] %></title>
- <guid><%= format_path(entry) %></guid>
- <link><%= format_path(entry) %></link>
- <% if post.last['author'] %>
- <author><%= post.last['author'] %></author>
- <% end %>
- <pubDate><%= entry[:date_published].rfc822 %></pubDate>
- <description><%= post.first %></description>
- </item>
- <% end %>
- </channel>
-</rss>
diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb
index b126ed54..4b5c6886 100644
--- a/app/views/layouts/application.html.erb
+++ b/app/views/layouts/application.html.erb
@@ -9,7 +9,6 @@
<title><%= @page_title.present? ? @page_title : "Git" %></title>
<link href='/favicon.ico' rel='shortcut icon' type='image/x-icon'>
- <link rel="alternate" href="/blog.rss" type="application/rss+xml" title="Git - Blog">
<%= stylesheet_link_tag "git-scm.css" %>
<%= javascript_include_tag "modernizr.js", "modernizr-tests.js" %>
diff --git a/config/routes.rb b/config/routes.rb
index 67036e02..5457ac2f 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -66,7 +66,6 @@ Gitscm::Application.routes.draw do
:month => /\d{2}/,
:day => /\d{2}/
- get "/blog.rss" => "blog#feed"
get "/blog" => "blog#index"
get "/publish" => "doc#book_update"