diff --git a/lib/app.rb b/lib/app.rb index 662b1d86..8e1a1f87 100644 --- a/lib/app.rb +++ b/lib/app.rb @@ -435,13 +435,13 @@ class App < Sinatra::Application maker.channel.links.new_link do |link| link.rel = 'self' - link.href = 'http://devdocs.io/feed.atom' + link.href = 'https://devdocs.io/feed.atom' link.type = 'application/atom+xml' end maker.channel.links.new_link do |link| link.rel = 'alternate' - link.href = 'http://devdocs.io/' + link.href = 'https://devdocs.io/' link.type = 'text/html' end @@ -450,14 +450,14 @@ class App < Sinatra::Application item.id = "tag:devdocs.io,2014:News/#{settings.news.length - i}" item.title = news[1].split("\n").first.gsub(/<\/?[^>]*>/, '') item.description do |desc| - desc.content = news[1..-1].join.gsub("\n", '
').gsub('href="/', 'href="http://devdocs.io/') + desc.content = news[1..-1].join.gsub("\n", '
').gsub('href="/', 'href="https://devdocs.io/') desc.type = 'html' end item.updated = "#{news.first}T14:00:00Z" item.published = "#{news.first}T14:00:00Z" item.links.new_link do |link| link.rel = 'alternate' - link.href = 'http://devdocs.io/' + link.href = 'https://devdocs.io/' link.type = 'text/html' end end